Script Function Cargo |
| Project: | Space Empires V |
| Version: | 1.44 |
| Component: | Code |
| Category: | support |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Description
I would like to see a script function of Sys_Give_Space_Object_Order_Load_Specific_Cargo which would use 3 variables of sobj_id, cargo_item_id, and target_sobj_id.
The 3 Uses that I have in mind for this function are:
1) Population Transports can be programed to move to a planet with different races, and load the ones that can't breathe that planets atmosphere.. Then take that population to a planet with a breathable atmosphere. Just to note, I have already written code to do such a thing, but without any current coding to select specific population to move, all it does is loads any population.
2) Colonizers can be similarly programmed to load a specific race that breathes a specific atmosphere and colonize a planet with that atmosphere....
(The above 2 could also be fixed if different races gave a different result to Sys_. Then you could still use the current Sys_Give_Space_Object_Order_Load_All_Cargo still using cargo_type set to CARGO_ITEM_TYPE_POPULATION and then use the cargo_unit_type variable which would determine which specific race to load.. if cargo_unit_type was not defined then it would just load any population.)
3) Satellite Launchers could be programed to load 1 recon satellite and a whole lot of missile satellites to drop off at warp points. Or other similliar tasks... at current you can only be set to load any satellites... you can launch specific, but the AI would obviously benifit from being able to load it before moving off and finding out it doesn't have that specific unit to launch..
Updates
Sorry. missed abit. Sys_. was meant to read Sys_Get_Space_Object_Cargo_Item_ID



