A bit of help with scripting please? Answered, thanks!

The place to discuss scripting and game modifications for X²: The Threat.

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

User avatar
White Tiger 30
Posts: 331
Joined: Tue, 23. Mar 04, 21:00
x3tc

A bit of help with scripting please? Answered, thanks!

Post by White Tiger 30 »

Yes, I'm too lazy to read through the entire thread on the scripting engine. I've read a bit into it, and I've read the thread on the money cheat, and was trying to use that as a basis for creating a script to put a few items onto one of my ships.

To get specific, I wanted to add a series of RIPC weapons to my newly purchased YT-1300 Freighter. (THANK YOU DEADLY!) I don't know if it was just too late for me to have been trying to script or what. I went into the trading section of the script commands. Fumbling around, I located a line that I thought might do it, but am having trouble figuring out what needs to be entered for the variables and what they all mean. (I'm not a programmer, just trying to play around with the game to see what some things can do.) I did finaly locate the "Add wares to my ship" script and that ended up as a second line in the script I was writing. (Which I'm realizing might be my problem) I specified the number I wanted, 8 and the ware, Alpha RIPC. When I go and run the script, nothing shows up on the ship. Anybody have any clue as to what I'm talking about and might be able to provide me with something a bit clearer so when I get home tonight I can add these to my ship?

Thanks in advance, for both the help and the 'lazy' flames. :) Both are welcome.
Last edited by White Tiger 30 on Fri, 5. Aug 05, 16:33, edited 1 time in total.
White Tiger

"I want to know God's thoughts, the rest are just details." - Albert Einstein
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot »

install a weapon to a ship

Code: Select all

=[THIS] -> install 1 unit of 'Gamma Pac' 
thats all .. change the number and/or weapon to your liking ..

save .. highlight the script ..
press [r] select the ship to install the weapons on ..
and press [enter] twice ..


G
User avatar
White Tiger 30
Posts: 331
Joined: Tue, 23. Mar 04, 21:00
x3tc

Post by White Tiger 30 »

Boy was I in the wrong place then.... Which 'heading' is that entry under?
White Tiger

"I want to know God's thoughts, the rest are just details." - Albert Einstein
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot »

trade commands ..

about the 6th command or so .. (just trade command .. not 'for ships, stations or ships/stations')

ps; its the same as 'add ware' (below or above it) only it doesnt 'install' the ware ..


G
User avatar
White Tiger 30
Posts: 331
Joined: Tue, 23. Mar 04, 21:00
x3tc

Post by White Tiger 30 »

Thank you very much Red, now all I have to do is wait out my work day to go home and try this. :roll: must be patient, must be patient....
White Tiger

"I want to know God's thoughts, the rest are just details." - Albert Einstein
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot »

(ps;)you could also use the 'add default ware' command
(trade commands under commands for ships about 1/2 way down the list)

but it will generally add max. shields and weapons and 1 or 2 random upgrades .. but it could also install a bit 'less' (like 2*25MW Shields and 1*5MW Shield on an Nova)


G
Spectarofdeath
Posts: 112
Joined: Wed, 19. May 04, 08:58
x2

Post by Spectarofdeath »

Can you show me exactly how it should look? I've been trying to figure this out myself and everyone I make doesn't work
Spectarofdeath
Posts: 112
Joined: Wed, 19. May 04, 08:58
x2

Post by Spectarofdeath »

Actually, nm I found out how to do it.

Return to “X²: The Threat - Scripts and Modding”