| 12-21-2004, 10:49 AM | #1 |
Guest | I want my units to upgrade themselves one level of both dmg and armor every, say, 15 minutes. Anyone? Oh and I also want to know how to get Text messages into color. Here's the tricky part... I want a variable string to change color... So if it says (Player name of (Owner of Triggering Unit)) or something like that, then I want the text there to be in a specific color. The upgrade issue is the most important one though. |
| 12-21-2004, 01:16 PM | #2 |
Right, well here's the first part Event Periodic Event every (15*60) seconds of game time Conditions - Actions set variable (levelOfUpgrade = levelOfUpgrade + 1) Set level of upgrade (whichever) to (levelOfUpgrade) for (desiredPlayer) And as for the second part, just make a variable that looks like this (say you wanted red) string = consecrate ((|cffff0000) + consecrate((Player Name of (whoever))) + (|r))) or in other words, make it so that its composed of a section denoting color (which can be some other variable that you change seperately) the text that u want, and a color terminator, so that the whole of the text isn't affected. Enjoy |
