Ryuu
I am back with Chocolate (:
- Reaction score
- 64
This simple snippet colors your text into player colors.
Supports neutral players.
This can be achieved by calling the function:
For example, this
will return:
Additional credits go to Darthfett for help on 'return values'.
"Do not condemn me; this is what I had made and what I plan to share. You have three choices: take it, leave it or take it and leave."
Supports neutral players.
JASS:
function PlayerColor takes player whichPlayer, string whichString returns string
local string array c
local integer i = GetConvertedPlayerId(whichPlayer)
local string s = whichString
local integer Index = 0
set c[1] = "|CFF0303"
set c[2] = "|C0042FF"
set c[3] = "|CFF1CB619"
set c[4] = "|CFF540081"
set c[5] = "|CFFFFFF01"
set c[6] = "|CFFFE8A0E"
set c[7] = "|CFF20C000"
set c[8] = "|CFFE55BB0"
set c[9] = "|CFF959697"
set c[10] = "|CFF7EBFF1"
set c[11] = "|CFF106246"
set c[12] = "|CFF4E2A04"
set c[13] = "|CFF000000"
return c<i>+s+"|r"
endfunction</i>
This can be achieved by calling the function:
For example, this
JASS:
call PlayerColor("hahahahaha!", Player(0))
will return:
hahahahaha!
Additional credits go to Darthfett for help on 'return values'.
"Do not condemn me; this is what I had made and what I plan to share. You have three choices: take it, leave it or take it and leave."