| 09-11-2003, 01:03 AM | #1 |
Hi, I use triggers in my map to announce as text messages certain events wich involve players, and I want the names of the players to be of the same color as their team colors. I already have the triggers working, but what I lack are the precise colors the game uses (in hex). I tried to guess some of them, and some look nice but other's are clearly distinguishable form the normal team colors. So it would be of great help to me if anyone around here could point me to a list of the color-codes of the team colors as they appear in the game. Thanks, Malleus |
| 09-11-2003, 01:35 AM | #2 |
Magos's Colorizer I believe can give you the Hex and War3 color code needed for each of the player colors. His webpage is http://www20.brinkster.com/magos818/ Click on "my programs" and then War3Colour I believe... EDIT: I have confirmed that you CAN get the color codes for players via said program. |
| 09-11-2003, 02:57 AM | #3 |
Hey, how'd you get the players name to be their same color? I tried looking around but in the player name part it only allows me "name of triggering player" or something like that, and once i use that it doesn't let me add colors to the value.. |
| 09-11-2003, 06:14 AM | #4 |
The easiest way would be to do a trigger (I think) that would put the players name in a string variable, then put the color code for players color in another variable, then have the trigger rename the player to be "Colorcodevar + Playernamevar" and that way their color would be actually IN their name, so You would not have to change the color of it every time. |
| 09-11-2003, 12:23 PM | #5 |
Hello, Thanks for the link. I will try these color codes right away - they seem to look a bit different in windows, however I will see in the game later if they are the proper ones. Actually, I used a 12-sized string array for the color codes. Set pl_color[1] = |c00ff0303 "..." Set pl_color[12] = |c004e2a04 And then I simply concatenate the strings to the player name, so my trigger looks like: Game - Display to (All Players) the text: ((pl_color[(Player number of (Picked Player))] + (Name of (Picked Player)) + |r has left the game. Greetings, Malleus |
