cr4xzZz
Also known as azwraith_ftL.
- Reaction score
- 51
I've made a trigger which displays a Hero's death (just like in DotA): Player X has killed Player Y for Z gold. The problem is that when an illusion kills an enemy Hero, the kill isn't displayed. How can I fix that?
Code:
Kill Enemy
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
((Dying unit) is A Hero) Equal to True
((Killing unit) belongs to an enemy of (Owner of (Dying unit))) Equal to True
(Owner of (Killing unit)) Not equal to Neutral Hostile
Actions
Set GoldGiving = ((Random integer number between 80 and 100) + 125)
Player - Add (GoldGiving - 125) to (Owner of (Killing unit)) Current gold
Game - Display to (All players) the text: ((((Player_Colors[(Player number of (Owner of (Killing unit)))] + (Name of (Owner of (Killing unit)))) + (Player_EndTag + has just killed )) + (((Player_Colors[(Player number of (Owner of (Dying unit)))] + (Name of (Owner of (Dying unit)))) + Player_EndTag)