Wares Script

Home Board Index » X3: Reunion » Wares Script

bozo64r

bozo64r avatar
Level badge Miltaguey (15)
Posted 13 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?

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 13 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).

bozo64r

bozo64r avatar
Level badge Miltaguey (15)
Posted 13 years ago.

That's a good, thanks. I will try when i go on tonight. Smile

bozo64r

bozo64r avatar
Level badge Miltaguey (15)
Posted 13 years ago.

its not their

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 13 years ago.

Could you please explain a bit more? not sure what you cant find Read

bozo64r

bozo64r avatar
Level badge Miltaguey (15)
Posted 13 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.

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 13 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

bozo64r

bozo64r avatar
Level badge Miltaguey (15)
Posted 13 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!

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 13 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).

bozo64r

bozo64r avatar
Level badge Miltaguey (15)
Posted 13 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?

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 13 years ago.

Dont worry about the equal sign at the start - that's something X3 puts and not you. Smile

EliteM3

EliteM3 avatar
Level badge Skillguey (7)
Posted 13 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
1


You need to log-in to post here.