Manix
Well-Known Member
- Reaction score
- 29
But look there is a [index] after the EndTag thing.. what must i type in there? And where should i type in the color code :? I'm really bad in Variables... sorry
But look there is a [index] after the EndTag thing.. what must i type in there? And where should i type in the color code :? I'm really bad in Variables... sorry
where is there an [index] after the EndTag? i didnt put that
@Denmax, those arent the exact colors although they're close. if you want to be EXACT youd have to look them up
Events
Map Initialization
Conditions
Actions
Set PlayerColor[1] = |cffff0000 (which is not the color for the player red by the way)
Set PlayerColor[2] = (blue's color tag)
Set PlayerColor[3] = (teal's color tag)
Set PlayerColor[4] = (yellow's color tag)
etc.
Set EndTag = |r
Event
A unit dies
Condition
(Dying unit) is a Hero equal to true
(Killing unit) is a Hero equal to true
(Owner of (Killing unit)) is an enemy of (owner of (dying unit))
actions
game - display text message to all players (PlayerColor[(player number of (owner of (dying unit)))] + player name of (owner of (dying unit)) + EndTag + has just been killed by + (PlayerColor[(player number of (owner of (killing unit)))] + player name of (owner of (killingunit)) + EndTag