- Joined
- Jul 14, 2010
- Messages
- 235
Hello. I got two triggers Im currently working with. A simple countdown timer window that pops up when a hero dies, and only for the owner of the dying hero. I got the heroes to respawn after 30sec, but the timer window messes up when a hero from another player dies, because the timer variable gets filled eached time a hero dies. But I just don't know where to start... 
-
Revive Heroes
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
((Dying unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Dying unit)) Equal to Player 1 (Red)
-
(Owner of (Dying unit)) Equal to Player 2 (Blue)
-
(Owner of (Dying unit)) Equal to Player 3 (Teal)
-
(Owner of (Dying unit)) Equal to Player 4 (Purple)
-
-
-
-
-
-
Actions
-
Countdown Timer - Start HeroRespawn as a One-shot timer that will expire in 30.00 seconds
-
Countdown Timer - Create a timer window for (Last started timer) with title Respawn in:
-
Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
-
Wait 30.00 seconds
-
Countdown Timer - Destroy (Last created timer window)
-
Hero - Instantly revive (Dying unit) at (Center of Region 001 <gen>), Show revival graphics
-
-