| 02-22-2004, 10:35 PM | #1 |
Is there anyway to retrieve a particular player's color from the trigger editor? I'm making a multiboard that tracks player stats and I would like to be able to color each player's name with the appropraite color. But the multiboard set color function only takes RGB. Do I need a secondary array? If there is no function to retrieve the colors, does anyone know the RGB values for all of the player colors? |
| 02-23-2004, 08:05 AM | #2 |
Ah several answers to ur questions. Yes there is a function that will return player color. Then what I did was use an array of strings that had the RGB values stored using the special text |cff followed by for example ff0000 for red. There are tons of examples on this site for more on that. So at init i create another variable called playercolorname which is just that the players name preceded by the correct color index for the color that they are. Its a pain but it works. Hope that helps! Oh and FYI dont bother with RGB just use the string version above. |
| 02-23-2004, 09:13 AM | #3 |
Hey, that's pretty clever. Thanks! Sorry. I understand what you are saying, but I can't find any function in the world editor that will return a player's color. What data type does this function return the color as? I'm *this* close to just taking a screenshot from the game, opening it up in PaintShop and converting the colors to hex by hand. |
