There are two template scripts
setup.add.to.station.template
This script will run every time the game is loaded and calls plugin.add.ship.ware.to.station where the ware you want to add is handled
[ external image ]
Cycrow Installer Version
[ external image ]
----------------------------------------------------------------------------------
All you need to do to use these templates is put them in your script dir and go into the SE when you scroll through the list and come to either of these script simply press 'c' to copy and a pop up will come up to copy the script and rename it to your own definitions.
setup.add.to.station.template explained
there are two variables needed in this script
switch -> this is a numerical value that is passed to the other script, If you set it to 1 it will install the ware to the defined station. If you set it to 2 it removes the defined ware
race although you can handle the race you want to install to via the called script you can also do it via the setup
examples
Code: Select all
011 @ = [THIS] -> call script 'plugin.add.ship.ware.to.station' : switch=1 race=Argon
012
013 = [THIS] -> call script plugin.add.ship.ware.to.station : switch=1 race=Boron
Code: Select all
011 @ = [THIS] -> call script 'plugin.add.ship.ware.to.station' : switch=2 race=Argon
012
013 = [THIS] -> call script plugin.add.ship.ware.to.station : switch=2 race=Boron
simple press 'c' to copy the script call and 'v' to paste to add more races.
----------------------------------------------------------------------
plugin.add.ship.ware.to.station explained
this is the called script which handles where the ware is going
the most important part is this: -
Code: Select all
030 $stations = get station array: of race $race class/type=Big Shipyard
once you have set the class of station to install to the array in the script will handle the rest.
---------------------
I've also added at the bottom of the script code to loop through races if you want to add it to more than one (although you can simply add to more races via the setup script instructions above.
the code for looping is commented out by default.
---------------------------------------------
view the script code
http://www.arcl07.dsl.pipex.com/x3tc/pl ... mplate.xml
http://www.arcl07.dsl.pipex.com/x3tc/pl ... tation.xml