[Code] Color sector and change target

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

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

Post Reply
User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

[Code] Color sector and change target

Post by Joubarbe » Fri, 6. Jun 14, 19:58

Hi,

I have two questions for you :

1/ Is it possible to temporary color a sector then set the color back to its initial color ?

2/ Is there a simple way to tell a ship to change its current target without calling an "attack" script again.

Thanks.

User avatar
JSDD
Posts: 1378
Joined: Fri, 21. Mar 14, 20:51
x3tc

Re: [Code] Color sector and change target

Post by JSDD » Fri, 6. Jun 14, 20:36

Joubarbe wrote:1/ Is it possible to temporary color a sector then set the color back to its initial color ?
... no (if you mean the "grey" color on the universe map, yes if you mean the background id)
... the only way to "mark" a specific sector is to set the "objective" of a cue (mission director) to the sector

Joubarbe wrote:2/ Is there a simple way to tell a ship to change its current target without calling an "attack" script again.
... no
... the fight script has a variable (4 the target) that cant be accessed from other scripts
... but you can (without overwriting the actually running script) "interrupt" the task by another fight script:
--> that means that as long as the interrupting script is running, the interrupted one is "waiting"
To err is human. To really foul things up you need a computer.
Irren ist menschlich. Aber wenn man richtig Fehler machen will, braucht man einen Computer.


Mission Director Beispiele

Post Reply

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