• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] color codes?

Status
Not open for further replies.
Level 12
Joined
Feb 11, 2008
Messages
809
i have the colors codes for players 1-8:

Actions
Set Player_Colors[1] = |c00ff0000
Set Player_Colors[2] = |c000000ff
Set Player_Colors[3] = |c0000ffff
Set Player_Colors[4] = |c00800080
Set Player_Colors[5] = |c00ffff00
Set Player_Colors[6] = |c00ff8000
Set Player_Colors[7] = |c0000ff00
Set Player_Colors[8] = |c00ff00ff

But i also need players 9-10 what are their color codes?
 

Cokemonkey11

Spell Reviewer
Level 29
Joined
May 9, 2006
Messages
3,534
Better than saving bookmarks and junk is understanding how to write color codes yourself.

Colorcodes in wc3 are an 8figure hexidecimal code that represents:

Opacity, Red Hue Level, Green Hue Level, Blue Hue Level, where 00 is none, and FF is maximum.

Read here to understand A through F and their use:
Hexadecimal - Wikipedia, the free encyclopedia

basically hexidecimal is like decimal (base 10), but instead base 16, which means instead of counting:
0123456789
you count:
0123456789ABCDEF

In a normal warcraft 3 color code, the first 2 letters are always FF, because the opacity function is buggy and odd.

So, FF999900 would be a fully opaque dark yellow, while FF00FF00 would be a fully opaque bright green.


Hope this helped...
 
Status
Not open for further replies.
Top