macro.station ?

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

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

Post Reply
User avatar
Hairless-Ape
Posts: 320
Joined: Wed, 6. Nov 02, 20:31
xr

macro.station ?

Post by Hairless-Ape » Sun, 9. Jun 19, 02:44

I'm trying to understand what this matches on. It's in a script that is looking exclusively for ship building facilities so it's confusing why landmarks are searched for?
Thoughts?

<find_station name="$Stations" multiple="true" space="player.galaxy" functional="true">
<match_any>

<match macro="macro.landmarks_tel_tradestation_01_macro"/>
<match macro="macro.landmarks_par_tradestation_01_macro"/>
</match_any>
<match owner="faction.player" negate="true"/>
</find_station>

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13291
Joined: Sun, 15. Feb 04, 20:12
x4

Re: macro.station ?

Post by euclid » Sun, 9. Jun 19, 12:39

Hi Hairless-Ape,

I'm not entirely sure what you are testing but if your script suppose to look exclusively for ship building facilities then try this:

Code: Select all

<find_station name="$Stations" multiple="true" space="player.galaxy" canbuildships="true" />
Hope that helps.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
Hairless-Ape
Posts: 320
Joined: Wed, 6. Nov 02, 20:31
xr

Re: macro.station ?

Post by Hairless-Ape » Sun, 9. Jun 19, 22:04

Thank you euclid !

Would there be a way to restrict it so it's only returning the stations for the 3 player races, and exclude bad guys like xenons?

Thanks

LegionOfOne
Posts: 122
Joined: Sun, 16. Dec 18, 13:16
x4

Re: macro.station ?

Post by LegionOfOne » Sun, 9. Jun 19, 23:36

Hairless-Ape wrote:
Sun, 9. Jun 19, 22:04
Would there be a way to restrict it so it's only returning the stations for the 3 player races, and exclude bad guys like xenons?
Something like this should work :

Code: Select all

<find_station name="$Stations" multiple="true" space="player.galaxy" canbuildships="true">
	<match owner="faction.xenon" negate="true"/>
	<match owner="faction.khaak" negate="true"/>
	<match owner="faction.scaleplate" negate="true"/>
</find_station>

Post Reply

Return to “X4: Foundations - Scripts and Modding”