Page 1 of 1
What I did not chose the color, it is still set black
Posted: Sun Jul 31, 2016 8:43 pm
by WIZ4
I tried to find by trial and error, the console command with the help of which could change the color of the players. And I found it:
Code: Select all
/c game.players['WIZ4'].color={pink}
but no matter what color I did not choose, it still turns black. I'm sure that you do not understand, as I was writing this text with the help of an google translate. So attached gif

- Avatar.gif (8.77 MiB) Viewed 820 times
Version 0.13.11
Re: What I did not chose the color, it is still set black
Posted: Sun Jul 31, 2016 8:57 pm
by posila
Hi, this is not a bug.
If you want to use predefined colors, use command /color:
If you want to specify exact color, you can use command that you used, but provide RGB values ...
Code: Select all
/c game.players['WIZ4'].color={r=1, g=0, b=0.73}
Now to explain "not a bug" part - command you wrote is valid LUA command, so you didn't get an error. The way we handle colors in scripts is that if any of the RGB channels is missing, default value of 0 is used for that channel. So for red you can write {r=1}, which is equivalent to {r=1, g=0, b=0}. That means {} is equivalent to {r=0, g=0, b=0}, which is black, and the same is true for {whatever}.