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
some help needed
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 230
- Joined: Wed, 5. Oct 05, 19:54
-
- Posts: 66
- Joined: Sat, 5. Nov 05, 06:34
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!
<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!
