Is colouring stations names dangerous ?

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

Is colouring stations names dangerous ?

Post by Joubarbe » Mon, 16. Dec 13, 00:13

Hey,

I'm wondering if coloring a station have any impact on the game ? The problem is I made some of them yellow and can't color them back to gray.

I'm using \033X%s\033X and the sprintf:pageid command.

Guest

Post by Guest » Mon, 16. Dec 13, 01:02

... why "dangerous" ??! :P

... afaik you could try to rename those stations to their station type

Code: Select all

stationtype = station -> get ware type code of object
textID = get text id: ware= stationtype
new.name = read text pageID = 17 textID = textid
station -> set name to: new.name

User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 » Mon, 16. Dec 13, 01:42

$station->set name to: null
should revert the stations name to default
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire

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

Post by Joubarbe » Mon, 16. Dec 13, 10:50

Thanks for this Jack08, much easier :)

Dangerous because I was afraid that it could be incompatible with other mods reading objects names. But it's just a name, the game doesn't really use it.

Post Reply

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