- Joined
- Dec 3, 2009
- Messages
- 39
How do you make it so that a hero that has died comes back to the game but only after 3 mins (which is shown in timer window) since it had died. But if it died again the timer window becomes visible again and starts from counting down from 3 min again. Also when the hero dies its gold is set to 750. This works but when a Hero gets revived the time window stays there staying at 0 and then if the same unit dies again the same window comes up but set at 3min and the one that had finished is still there.
This is what i have
This is what i have
-
Revive
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Sea Hunter
-
-
Actions
-
Player - Set (Triggering player) Current gold to 750
-
Countdown Timer - Start Timer_2 as a One-shot timer that will expire in 180.00 seconds
-
Countdown Timer - Create a timer window for Timer_2 with title Sea Hunter
-
Countdown Timer - Show Timer_window2
-
Wait 180.00 seconds
-
Hero - Instantly revive (Dying unit) at (Center of Region 003 <gen>), Hide revival graphics
-
Countdown Timer - Destroy Timer_window2
-
-
-
Revive timer Sea Hunter
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Sea Hunter
-
-
Actions
-
Player - Set (Triggering player) Current gold to 750
-
Countdown Timer - Start Timer_2 as a One-shot timer that will expire in 180.00 seconds
-
Countdown Timer - Create a timer window for (Last started timer) with title Sea Hunter
-
Set Timer_window2 = (Last created timer window)
-
Countdown Timer - Show Timer_window2
-
Wait 180.00 seconds
-
Hero - Instantly revive (Dying unit) at (Center of Region 003 <gen>), Hide revival graphics
-
Countdown Timer - Destroy Timer_window2
-
-
Last edited: