I got a floating text that's come over dying unit.. But if multiple units die only last texts is removed. Tried with variables but still didn't work.
can anyone help me? This is what i tried:
can anyone help me? This is what i tried:
-
Kill
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Hunter
-
Actions
- Hero - Set (Killing unit) Hero-level to ((Hero level of (Killing unit)) + 1), Hide level-up graphics
- Player - Add 1 to (Owner of (Killing unit)) Current lumber
- Player - Add 100 to (Owner of (Killing unit)) Current gold
- Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + ('s hunter was owned by + (Name of (Owner of (Killing unit)))))
- Floating Text - Create floating text that reads Ahh! above (Dying unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Set die = (Last created floating text)
- Wait 2.00 seconds
- Floating Text - Destroy die
-
Events