script help, pls

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

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

stella
Posts: 1004
Joined: Tue, 17. Feb 04, 18:41
x2

script help, pls

Post by stella »

I installed the buyresourcebest script, without (stupidly) checking to see if it conflicted with anything else I had running.

It did :o/

I've managed to get both of them going again (changed the 't' script and the script itsself), but now, my problem is this.

Both scripts function correctly, but on the properties screen, both ships show as running the same comand, even though they're not.

Ideas?

Ta.

PS. While I'm here, anyone know how you get a "buy" script to show what it's running on (eg energy cells, silicon etc).
Attack enemies in radius -here
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

That is fixed by setting the "set command" funtion in the script that starts that command. It doesn't tell it to do anything as far as action just that it sets the title of what the command is doing. There are several versions of the set command, you want the one that has something like set command: commnd/signal : target 1 : target 2...etc where taret 1 is the commands target.
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
stella
Posts: 1004
Joined: Tue, 17. Feb 04, 18:41
x2

Post by stella »

Do you mean the "init.whatever" script?
Attack enemies in radius -here
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

stella wrote:Do you mean the "init.whatever" script?
Not really, its in the scripts like the !ship.cmd.protect.std

Code: Select all

001   [THIS] -> set command: COMMAND_PROTECT  target=$target target2=null par1=null par2=null
002   
003 @ = [THIS] -> call script 'move.follow.template' :  target ship=$target  protect the ship=[TRUE]  attack same target=null  attack nearest enemy=null  stop if leader is docked at same=$stopifleaderdocked
004   return null
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
stella
Posts: 1004
Joined: Tue, 17. Feb 04, 18:41
x2

Post by stella »

Ah! found, and changed :D

Many thanks for the help.
Attack enemies in radius -here

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