Home Board Index » X Universe » X3: Reunion » Wares Script

Wares Script



Posted 9 years ago.
 avatar
bozo64r



User Badge
Ech mesh!
Question: Does anybody know a script using the 'Thereshallbewings' script editor to get wares on a ship? I bought a Terran M6 and i can't find any Alpha Electro Magnetic Plasma Cannons. Any ideas?

Posted 9 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
hi there,

do you simply want to add some Alpha Electro Magnetic Plasma Cannons to your ship? if you do, then its probably easiest to write a tiny script yourself, because it would be simply 1 line of code!

open up the script editor (pilot name: Thereshallbewings), ship, command console, script editor then pick first option on the script editor (this should help).

Once there, make a new script, call it what you want ie. give.guns then find it on the list and press enter. You should now see the script which is empty. Go down to <new line> and press enter. Another list of script commands should come up, select trade commands, then (I think) 'for ships'. You need to find the command add unit to ship and press enter. You should return to your script, now you need to fill in the details like so:

= [PLAYERSHIP] -> add 1 units of Alpha Electro Magnetic Plasma Canon

Once done, press escape and save your script. Then refind it on the list again and press 'r' (means run). Press enter a few times and you should return back to the script list. Once this has happened, should find 1 x Alpha Electro Magnetic Plasma Canon on your ship (if it has space).

Posted 9 years ago.
 avatar
bozo64r



User Badge
Ech mesh!
That's a good, thanks. I will try when i go on tonight. Smile

Posted 9 years ago.
 avatar
bozo64r



User Badge
Ech mesh!
its not their

Posted 9 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
Could you please explain a bit more? not sure what you cant find Read

Posted 9 years ago.
 avatar
bozo64r



User Badge
Ech mesh!
ok, i am trying to find a script in the script editor that will allow me to add any amount of any ware to my ships freight bay. i tried looking for the scipt you metioned earlier but had no luck.

Posted 9 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
oh, I was on about making a new script, because its only 1 line of code (ie. add ware to playership). Once you are able to make it, then you can add whatever you like to your ship Smile

Posted 9 years ago.
 avatar
bozo64r



User Badge
Ech mesh!
I can't find the scrip i went into he script editor and went Trade Commands and then for ships could not find anything there. Although there was one in which you had to enter a RetVar (i.e) if, if not, skip, skip if. I don't know which variable to put in!

Posted 9 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
You will need to find this command in the X3 script editor (its in trade commands),
Picture

Once added to your script, change it to this:

= [PLAYERSHIP] -> add 1 units of Alpha Electro Magnetic Plasma Canon

Save the script, then run it (press 'r' on your script in the list).

Posted 9 years ago.
 avatar
bozo64r



User Badge
Ech mesh!
Yep, that's perfect, although i tried it on X2, and you can't have a non-variable in the first bit (i.e in x3 it is;
=PLAYERSHIP add 5 units of Energy Cells

in x2 you can't have =. What do i put?

Posted 9 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
Dont worry about the equal sign at the start - that's something X3 puts and not you. Smile

Posted 9 years ago.
 avatar
EliteM3



Nick: EliteM3
You can make script to create ship without wares and shields,you will need to find or create scripts for equip your ship with the wares Smile

Picture
« Previous | Page: 1 | Next »


You need to log-in to post here.