Andrewgosu
The Silent Pandaren Helper
- Reaction score
- 716
If you have ever wondered how they colour the text in-game in many different specters of colours, then you came to the right place to look for.
How can I colour the text, then?
The colour of the text is defined with a few tags and a piece of colour code. I will not go into the technicalities, as this does not matter very much right now (colouring should be easy, right?). Instead, lets get started with an example.
Lets say, you want to display "Hello, my friend!" as golden. To do that, you need to define the beginning of the coloured text with" |c" (Without the quotes).
|c
After that, you need to insert the wanted colour code, which consists of 8 letters or numbers. (The first 2 letters define the transparency, but warcraft does not use that, so, FF or 00 will almost always do. The next 2 letters define the red value, the 2 letters after that define the green value and the last 2 letters define the blue value.)
|cffffcc00
Now, it is time to enter the message you want to colour.
|cffffcc00Hello, my friend!
And finally, you need to end the colouring process, by placing "|r" behind the last letter you want to be coloured.
|cffffcc00Hello, my friend!|r
So, this should leave you with something like this:
|cffffcc00Hello, my friend!|r
It may look weird, but in-game, the "Hello, my friend!" text is only show, in a nice, golden colour.
And basically...thats it. I am not going to mumble-jumble and make it more complicated, but instead, I will just mention the frequently asked and used colours, which you certainly will need some day.
Gold&lumber colours
Gold colour - FFFFCC00
255, 204, 0 for RGB values.
100%, 80%, 20% for % RGB values.
Lumber colour - CF01BF4D
120, 204, 0 for RGB values.
48%, 81,6%, 20% for % RGB values.
Player colours
Player 1 (Red) - CFFF0202
255, 3, 3 for RGB values.
100%, 1.17%, 1.17% for % RGB values.
Player 2 (Blue) - CF0041FF
0, 66 ,255 for RGB values.
0%, 25.88%, 100% for % RGB values.
Player 3 (Teal) - CF1BE5B8
28, 230, 185 for RGB values.
10.98%, 90.20%, 72.55% for % RGB values.
Player 4 (Purple) - CF530080
80, 0, 129 for RGB values.
31.37%, 0%, 50.59% for % RGB values.
Player 5 (Yellow) - CFFFFC00
255, 255, 1 for RGB values.
100%, 100%, 0.39% for % RGB values.
Player 6 (Orange) - CFFE890D
254, 138, 14 for RGB values.
99.6%, 54.12%, 5.49% for % RGB values.
Player 7 (Green) - CF1FBF00
32, 192, 0 for RGB values.
12.55%, 75.30%, 0% for % RGB values.
Player 8 (Pink) - CFE45AAF
229, 91, 176 for RGB values.
89.80%, 35.69%, 69.02% for % RGB values.
Player 9 (Gray) - CF949596
149, 150, 151 for RGB values.
58.43%, 58.82%, 59.22% for % RGB values.
Player 10 (Light blue) - CF7DBEF1
126, 191, 241 for RGB values.
49.41%, 74.9%, 94.51% for % RGB values.
Player 11 (Dark green) - CF0F6145
16, 98, 70 for RGB values.
6.27%, 38.43%, 27.45% for % RGB values.
Player 12 (Brown) - CF4D2903
74, 42, 4 for RGB values.
29.02%, 16,47%, 1.57% for % RGB values.
Player 13-16 (Neutral ...) - CF272727
45, 45, 45 for RGB values.
17.65%, 17.65%, 17.65% for % RGB values.
And finally, a easy trigger system, which uses string arrays to hold the colour code values and displays the name of the leaving player, when someone leaves.
Initialize the colour codes.
Show the name of the left player in the same colour has he/she was in-game.
A few helping sites/link/programs:
Hexadeciaml Number System - How to convert numbers into hexadecimal and vice versa.
Chaos Spectrum - Colour code generator for Warcraft III.
Hexadecimal Colour Chart - Remember, Warcraft uses transparent values too, so, if you pick a colour from there, just add FF or 00 in front of the colour code, so it would be 8 letterts/numbers long.
How can I colour the text, then?
The colour of the text is defined with a few tags and a piece of colour code. I will not go into the technicalities, as this does not matter very much right now (colouring should be easy, right?). Instead, lets get started with an example.
Lets say, you want to display "Hello, my friend!" as golden. To do that, you need to define the beginning of the coloured text with" |c" (Without the quotes).
|c
After that, you need to insert the wanted colour code, which consists of 8 letters or numbers. (The first 2 letters define the transparency, but warcraft does not use that, so, FF or 00 will almost always do. The next 2 letters define the red value, the 2 letters after that define the green value and the last 2 letters define the blue value.)
|cffffcc00
Now, it is time to enter the message you want to colour.
|cffffcc00Hello, my friend!
And finally, you need to end the colouring process, by placing "|r" behind the last letter you want to be coloured.
|cffffcc00Hello, my friend!|r
So, this should leave you with something like this:
|cffffcc00Hello, my friend!|r
It may look weird, but in-game, the "Hello, my friend!" text is only show, in a nice, golden colour.
And basically...thats it. I am not going to mumble-jumble and make it more complicated, but instead, I will just mention the frequently asked and used colours, which you certainly will need some day.
Gold&lumber colours
255, 204, 0 for RGB values.
100%, 80%, 20% for % RGB values.
120, 204, 0 for RGB values.
48%, 81,6%, 20% for % RGB values.
Player colours
255, 3, 3 for RGB values.
100%, 1.17%, 1.17% for % RGB values.
0, 66 ,255 for RGB values.
0%, 25.88%, 100% for % RGB values.
28, 230, 185 for RGB values.
10.98%, 90.20%, 72.55% for % RGB values.
80, 0, 129 for RGB values.
31.37%, 0%, 50.59% for % RGB values.
255, 255, 1 for RGB values.
100%, 100%, 0.39% for % RGB values.
254, 138, 14 for RGB values.
99.6%, 54.12%, 5.49% for % RGB values.
32, 192, 0 for RGB values.
12.55%, 75.30%, 0% for % RGB values.
229, 91, 176 for RGB values.
89.80%, 35.69%, 69.02% for % RGB values.
149, 150, 151 for RGB values.
58.43%, 58.82%, 59.22% for % RGB values.
126, 191, 241 for RGB values.
49.41%, 74.9%, 94.51% for % RGB values.
16, 98, 70 for RGB values.
6.27%, 38.43%, 27.45% for % RGB values.
74, 42, 4 for RGB values.
29.02%, 16,47%, 1.57% for % RGB values.
45, 45, 45 for RGB values.
17.65%, 17.65%, 17.65% for % RGB values.
And finally, a easy trigger system, which uses string arrays to hold the colour code values and displays the name of the leaving player, when someone leaves.
Initialize the colour codes.
A few helping sites/link/programs:
Hexadeciaml Number System - How to convert numbers into hexadecimal and vice versa.
Chaos Spectrum - Colour code generator for Warcraft III.
Hexadecimal Colour Chart - Remember, Warcraft uses transparent values too, so, if you pick a colour from there, just add FF or 00 in front of the colour code, so it would be 8 letterts/numbers long.