24 Player Color Strings

Status
Not open for further replies.
Level 9
Joined
Mar 27, 2009
Messages
309
Once upon a time I had all 12 color strings down to a science, and I would just make an array string variable and assign them in every map I made.

I did some quick digging and found those 12.

set str[0] = "|cffFF0202"
set str[1] = "|cff0041FF"
set str[2] = "|cff1BE5B8"
set str[3] = "|cff530080"
set str[4] = "|cffFFFC00"
set str[5] = "|cffFE890D"
set str[6] = "|cff1FBF00"
set str[7] = "|cffE45AAF"
set str[8] = "|cff949596"
set str[9] = "|cff7DBEF1"
set str[10] = "|cff0F6145"
set str[11] = "|cff4D2903"


What about the 12 new colors?

Thanks
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
Player 13: "|cff9B0000"
Player 14: "|cff0000C3"
Player 15: "|cff00EAFF"
Player 16: "|cffBE00FE"
Player 17: "|cffEBCD87"
Player 18: "|cffF8A48B"
Player 19: "|cffBFFF80"
Player 20: "|cffDCB9EB"
Player 21: "|cff282828"
Player 22: "|cffEBF0FF"
Player 23: "|cff00781E"
Player 24: "|cffA46F33"
 
Level 8
Joined
May 21, 2019
Messages
435
Once upon a time I had all 12 color strings down to a science, and I would just make an array string variable and assign them in every map I made.

I did some quick digging and found those 12.

set str[0] = "|cffFF0202"
set str[1] = "|cff0041FF"
set str[2] = "|cff1BE5B8"
set str[3] = "|cff530080"
set str[4] = "|cffFFFC00"
set str[5] = "|cffFE890D"
set str[6] = "|cff1FBF00"
set str[7] = "|cffE45AAF"
set str[8] = "|cff949596"
set str[9] = "|cff7DBEF1"
set str[10] = "|cff0F6145"
set str[11] = "|cff4D2903"


What about the 12 new colors?

Thanks
Bit of a comment. How about using the index values that corresponds to the player numbers? Like starting at 1 instead of 0.
That way, you could call upon any of the colors using the player number as the array index, without having to subtract 1 every time.
 
Level 19
Joined
Jan 1, 2018
Messages
739
Bit of a comment. How about using the index values that corresponds to the player numbers? Like starting at 1 instead of 0.
That way, you could call upon any of the colors using the player number as the array index, without having to subtract 1 every time.
I hate to tell you this, but player indices actually do start at 0. It's only when using GUI that it adds 1 every time you get the index of a player:
JASS:
function GetConvertedPlayerId takes player whichPlayer returns integer
    return GetPlayerId(whichPlayer) + 1
endfunction
 
Level 8
Joined
May 21, 2019
Messages
435
I hate to tell you this, but player indices actually do start at 0. It's only when using GUI that it adds 1 every time you get the index of a player:
JASS:
function GetConvertedPlayerId takes player whichPlayer returns integer
    return GetPlayerId(whichPlayer) + 1
endfunction
Why hate to tell me? That's useful information. :D
I only ever really use GUI anyway, so I legitimately didn't know this. :)
 
Status
Not open for further replies.
Top