I need some special info about scripts

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

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

hochbass
Posts: 5
Joined: Thu, 24. Nov 05, 22:26
x2

I need some special info about scripts

Post by hochbass »

1. Is there any other possibility to output a list to the (ingame) desktop, without use of the logbook. I would like to have an output of my lists in the same way like the freight list or the BestBuy listings
May be this could be a powerfull feature to give informations to the player about actual stats of his fleet and others. And another link from the output to new scripts ( like submenues) would be nice.


2. Can I hotkey scriptcalls direct from the space, without opening ship command menue?

3. If there is no other way without the messagebook, how can I send a message with more than five variables to the logbook
Please give a example of the code.

4. Is it possible to set a command without the need of a ware?

set script command upgrade: command=COMMAND_TYPE_General_21 upgrade= NULL

does not work for me.

Regards
Hochbass
User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot »

1; afaik only the log (ingame)

2; no .. nor in or outside the editor is this possible .. (as in 'not possible')

3; making a list off the message .. than sending the message ..

like .. $mess = $mess + '-' + $mess2

the middle '-' is a string .. can be text or just a space etc etc ..

4; yep sure it is .. the command 'dock at' also doesnt need any wares ..
when adding command you have to connect a 'ware' to the command for it to work .. but this ware can also be 'TRUE' incase you want it to work without any upgrades ..



G
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

1.

Code: Select all

write to log file #<Var/Number> append=<Var/Number> value=<Value>
or one of it variants, will allow you to write to a text file in your X2 directory. The file will be called logxxxxx.txt, where xxxxx is the number specified.

Logaan's stats script uses this to output your game stats then his webserver can create a signature graphic from the logfile.

...

4. TRUE = always; null = never, in this case.

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