HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Color text

12-16-2002, 04:47 PM#1
Guest
How do i make texts a different color? Seen it many times now - wanna learn it!
12-17-2002, 09:05 AM#2
Guest
Check the unit editor and look at the description for a common unit, such as the footman.
In the 'description' or somesuch field, you should see 'Attacks ground units' or somthing very much like it with a wierd kind of code around it. That is a color code. It uses RGB (#FF0000) style color codes, if I'm not mistaken. If you still don't get it after looking at the ones on the units, post again and I'll give you the exact way to write them.
12-17-2002, 09:16 AM#3
3DGuy
The colors are hexadecimal, which means blizzard uses same color codes that HTML uses, except that they attach "|c" to determine that the text after it is colored. You should also put "|r" after the colored word, if you want it to stop colorizing the following texts.

Go here for colors!

Just search google for hexadecimal colors, or use any kind of website developing software.
12-17-2002, 11:07 AM#4
Phil_123
http://www.headoffice.co.uk/ftp/spec14.exe

how wc3 colour codes work:

|cTTRRGGBBI AM SOME TEXT|r

TT = transparency, hex, set to 00 for no transparency
RR = works just like the tinting value (red) in the unit editor, the higher the value, the more red the text is
GG = works just like the tinting value (green) in the unit editor, the higher the value, the more green the text is
BB = works just like the tinting value (blue) in the unit editor, the higher the value, the more blue the text is

example:
|c00FFFFCCI AM SOME TEXT|r

result:
I AM SOME TEXT
12-17-2002, 09:37 PM#5
Draco
There's also colors already in the editor in the "Unit Editor" thingy. Just copy and paste from there for easy ones. Also, some triggers (i.e. quest triggers) already have color built in.