I'm trying to change resupply logic to support multiple suppliers.
I find attack logic like 'origin_extract\aiscripts\fight.attack.object.bigtarget.xml' use <find_ship> to get supplier. It that action support return ship list? and how to get whole params for <find_ship> action?
Thanks for help.
Help! Where can i find 'find_ship' declaration?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 7
- Joined: Tue, 27. Sep 22, 21:00
-
- EGOSOFT
- Posts: 2164
- Joined: Mon, 23. Nov 15, 18:02
Re: Help! Where can i find 'find_ship' declaration?
documented in common.xsd, but since this particular action involves attribute groups, it would be easier to use an xml editor that's able to parse the accompanying xsd files.
for examples of script logic that looks for stations or ships that are able to supply and repair ships, you could check interrupt.restock.xml. search for the definition of $resupplystations_interrupt .
-
- Posts: 7
- Joined: Tue, 27. Sep 22, 21:00
Re: Help! Where can i find 'find_ship' declaration?
I really found these logic. Thanks very much!j.harshaw wrote: ↑Wed, 28. Sep 22, 09:37documented in common.xsd, but since this particular action involves attribute groups, it would be easier to use an xml editor that's able to parse the accompanying xsd files.
for examples of script logic that looks for stations or ships that are able to supply and repair ships, you could check interrupt.restock.xml. search for the definition of $resupplystations_interrupt .