macro.station ?

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

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

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

macro.station ?

Post by Hairless-Ape »

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: 13488
Joined: Sun, 15. Feb 04, 20:12
x4

Re: macro.station ?

Post by euclid »

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: 389
Joined: Wed, 6. Nov 02, 20:31
xr

Re: macro.station ?

Post by Hairless-Ape »

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 »

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>

Return to “X4: Foundations - Scripts and Modding”