Login   ·   Register   ·   Account help   ·   Privacy policy   ·   Contact

Wares Script  


Forum Index » X Universe » X3: Reunion
« Previous | Page: -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 | Next »


 avatar
bozo64r Level badge

Posted 9 years ago.
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?
 avatar
Roguey Level badge

Posted 9 years ago.
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).

 avatar
bozo64r Level badge

Posted 9 years ago.
That's a good, thanks. I will try when i go on tonight. Smile
 avatar
bozo64r Level badge

Posted 9 years ago.
its not their
 avatar
Roguey Level badge

Posted 9 years ago.
Could you please explain a bit more? not sure what you cant find Read
 avatar
bozo64r Level badge

Posted 9 years ago.
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.
 avatar
Roguey Level badge

Posted 9 years ago.
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
 avatar
bozo64r Level badge

Posted 9 years ago.
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!
 avatar
Roguey Level badge

Posted 9 years ago.
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).

 avatar
bozo64r Level badge

Posted 9 years ago.
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?

 avatar
Roguey Level badge

Posted 9 years ago.
Dont worry about the equal sign at the start - that's something X3 puts and not you. Smile
 avatar
EliteM3 Level badge

Posted 8 years ago.
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
You need to log-in to post here.
Please log-in, then refresh this page.

« Previous | Page: -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 | Next »