[SCRIPT][STATION] - Discover all station and there module

The place to discuss scripting and game modifications for X Rebirth.

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

hephaistos01245
Posts: 3
Joined: Sun, 22. Dec 13, 21:47

[SCRIPT][STATION] - Discover all station and there module

Post by hephaistos01245 »

Hello,

I try to create script "know all station and there module".

I have tried with this script:

Code: Select all

		  
<find_station groupname="$station" space="player.galaxy" multiple="true" />
          <do_all exact="$station.count" counter="$i">
			<find_object_component name="$buildmodules" object="$station.${i}" class="class.buildmodule" multiple="true"/>
			<do_all exact="$buildmodules.count" counter="$j">
				<set_known object="$buildmodules.{$j}" known="true" />
			</do_all>
			<set_known object="$station.{$i}" known="true" />
		  </do_all>
However, It does not work. Do you have any idea ?

Tranks.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

look into my Info Broker Script and understand what it does ;) set_known only sets the fact that you know something exists, but thats it. no information is added this way.
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
hephaistos01245
Posts: 3
Joined: Sun, 22. Dec 13, 21:47

Post by hephaistos01245 »

Hello,


I have tried and adapt your script. And it's done.

Thanks a lot.

Return to “X Rebirth - Scripts and Modding”