How do you add a station kit to a TL ? (resolved)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

How do you add a station kit to a TL ? (resolved)

Post by apricotslice »

How do you add a station kit to a TL ?

For the life of me, I cant figure out how to specify the station kit into a variable so you can add the variable to the ship.

Can I buy a vowel please ?
Last edited by apricotslice on Wed, 5. Aug 09, 12:01, edited 1 time in total.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Re: How do you add a station kit to a TL ?

Post by Logain Abler »

apricotslice wrote:How do you add a station kit to a TL ?

For the life of me, I cant figure out how to specify the station kit into a variable so you can add the variable to the ship.

Can I buy a vowel please ?
Hi mate, not at home to look but if you have Cycrows Cheat Script installed (for testing of course!) there is an Add Station to TL command.

LA
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Its not helpful.

I'm scripting a TL ship into a game start and want to add a station in its cargo bay.

The cheat script accepts the station type from user input, I need to select it automatically. Thats the bit I cant work out.
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

you cant just do a $var = argon complex construction kit
?

its a station type, if it matters...

Why do i feel like im saying something really stupid here >.>
7ate9tin11s
Posts: 813
Joined: Fri, 11. Nov 05, 23:18
x4

Post by 7ate9tin11s »

From what I recall you just use the standard 'MyTL -> add 1 unit of XX' command, but feed it a station type instead of a ware. You will prolly have to use a variable to get around the <Var/Ware> check.
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

apricotslice wrote:Its not helpful.

I'm scripting a TL ship into a game start and want to add a station in its cargo bay.

The cheat script accepts the station type from user input, I need to select it automatically. Thats the bit I cant work out.
I get you, will it not istall as a ware? Just been through this with the MPM rebuild, ST in the hold get returned as a ware and I just check for storade type.

Could simply be:
$ware = {station}
= $ship-> add 1 units of $ware

LA
Last edited by Logain Abler on Wed, 5. Aug 09, 12:18, edited 1 time in total.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

How do I put the station in the variable though ? Thats my problem.
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

apricotslice wrote:How do I put the station in the variable though ? Thats my problem.
the command, <retvar/if><expression>, becomes

$var = <?> ...

Then you choose the <?> and pick down somewhere near the bottom 'select station type', and choose a CCK?

edit
meh i really should stay out of these discussions, ive got no clue wtf im doing >.<
Last edited by Lancefighter on Wed, 5. Aug 09, 11:57, edited 1 time in total.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Logain Abler wrote: Could simply be:
$ware = {station}
= $ship-> add 1 units of $ware
Doesnt work.

But I'm not sure I'm using the right command.

The only one I can find is $ware = datatyp[station]

If there is another one, where the h*ll is it on the menus ?


Edit : Lancefighter, I'll try that, thanks

Edit 2 : That was it !!! :D

Typical, the totally simple command that hides in the menu as a complicated one. Couldnt see the tree for the forrest.

Thanks everyone :)
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

wait, that actually works?

I feel special now :lol:
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

That actually worked !!!!

The biggest hassel I ahve with the editor is I can never find the commands I want, and even when I do, I never remember where they were next time !

*sigh*
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

lol i know what you mean, and its the main reason i dont do scripting more

but come on, thats only the first command in the entire script editor :P
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Way too obvious !

:lol:
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

I guess being a complete and utter noob at scripting helps more than i think :wink:
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

Sorry should have been a bit clearer!

$ware = {Station} is the same as:

<retvar/if><expression>, becomes

$var = <?> ...

Glad you got it sorted :)

LA
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

:rofl:
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Me too. Its these little things that do your head in when your programming.

That completes a game start for me, for now.

Next thing I need to work out is the timing factors. As in I'm thinking of adding a job that spawns every 6 hours. If the Battlestar Galactica start is used, I'm thinking that a Cylon attack spawning every 6 game hours would be realistic :)
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

Logain Abler wrote:Sorry should have been a bit clearer!

$ware = {Station} is the same as:

<retvar/if><expression>, becomes

$var = <?> ...

Glad you got it sorted :)

LA
hah you didnt think of it properly from a noobish prospective! :p
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

"I guess our minds are too highly trained Magicthighs !" HHGTG :)
Logain Abler
Posts: 2255
Joined: Mon, 31. Oct 05, 08:44
x4

Post by Logain Abler »

apricotslice wrote:"I guess our minds are too highly trained Magicthighs !" HHGTG :)
:lol: I count myself lucky if I know what day it is :D

LA

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”