Help! Where can i find 'find_ship' declaration?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
EGOiNahoo
Posts: 7
Joined: Tue, 27. Sep 22, 21:00

Help! Where can i find 'find_ship' declaration?

Post by EGOiNahoo » Tue, 27. Sep 22, 23:02

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.

j.harshaw
EGOSOFT
EGOSOFT
Posts: 1847
Joined: Mon, 23. Nov 15, 18:02

Re: Help! Where can i find 'find_ship' declaration?

Post by j.harshaw » Wed, 28. Sep 22, 09:37

EGOiNahoo wrote:
Tue, 27. Sep 22, 23:02
and how to get whole params for <find_ship> action?
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 .

EGOiNahoo
Posts: 7
Joined: Tue, 27. Sep 22, 21:00

Re: Help! Where can i find 'find_ship' declaration?

Post by EGOiNahoo » Fri, 30. Sep 22, 10:30

j.harshaw wrote:
Wed, 28. Sep 22, 09:37
EGOiNahoo wrote:
Tue, 27. Sep 22, 23:02
and how to get whole params for <find_ship> action?
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 .
I really found these logic. Thanks very much!

Post Reply

Return to “X4: Foundations - Scripts and Modding”