some help needed

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

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

Xblade
Posts: 1
Joined: Sun, 27. Nov 05, 16:38

some help needed

Post by Xblade »

I am replaying x2 while my new computer is being built that can handel x3 and I am doing scripting this time around and i need some help with one of them.

I would like some help with how to get free stock in my cargo bay is it possible to have a step by step guide to aceve this goal.
and also I have heard of a mod that can change the charateristics of a given ship ( lie more cargo space and shilds ) an much more is it possible to have a link to this mod.
thanks in advance Xblade
Dragon93
Posts: 230
Joined: Wed, 5. Oct 05, 19:54
x3

Post by Dragon93 »

Hi,
I don't know about your second question but go to x2 source there are some great scripts and if you go to scripts then cheats you can find a script called cheat.add.product.v3 this is the best thing you could use for making rescoures easily and for free.
Hope it helps.
:)
baubsmyth
Posts: 66
Joined: Sat, 5. Nov 05, 06:34
x4

Post by baubsmyth »

if what you are asking is how do you get a command to return a variable that is equal to the current free cargo space of ship, then the script command you are looking for is:

<retvar>= <ship> -> get free volume of cargo bay

this script command can be found under "Trade Commands" then "For Ships" i think, within the script editor. if the <retvar> were set to the variable of $freeSpace and <ship> were directed to target your current ship, then this command would set the variable $freeSpace to the current amount of free cargo space in the ship you are flying. the question at this point would be what do you want to do with this value? write it to your logbook? am i, in fact, reading your question wrong? :)

look at the MSCI handbook which can be found here. lots of easy to read info on scripting in this thread.

you can alter a ships stats through the Tships file, but it will change all of the same type of ships as well. you can find more info on altering ships in my link above, but i think what you are looking for is here. not for the faint of heart! :twisted:

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