X-maul
AKA: Demtrod
- Reaction score
- 201
how do i create a timer if a hero die that will ekspire in 30 seconds??...
timer1
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title Revive in
Countdown Timer - Show (Last created timer window)
Set hero = (Triggering unit)
timer2
Events
Time - timer expires
Conditions
Actions
Hero - Instantly revive hero at (Center of (Playable map area)), Show revival graphics
Countdown Timer - Destroy (Last created timer window)
why doesnt the timers get removed when it is ekspired???
Events
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Countdown Timer - Start (Create a periodic One-shot timer lasting 30.00) as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Triggering player))
Countdown Timer - Show (Last created timer window)
Set hero = (Triggering unit)
Game - Display to (All players) the text: -------------------...
Wait 30.00 seconds
Countdown Timer - Destroy timer
Camera - Pan camera for (Owner of (Dying unit)) to (Center of Rect 010 <gen>) over 0.00 seconds
Special Effect - Create a special effect at (Center of Rect 010 <gen>) using Abilities\Spells\Other\Awaken\Awaken.mdl
Hero - Instantly revive (Dying unit) at (Center of Rect 010 <gen>), Show revival graphics
Special Effect - Create a special effect at (Center of Rect 010 <gen>) using Abilities\Spells\Demon\ReviveDemon\ReviveDemon.mdl
Events
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Countdown Timer - Start (Create a periodic One-shot timer lasting 30.00) as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Triggering player))
Countdown Timer - Show (Last created timer window)
Set hero = (Triggering unit)
Game - Display to (All players) the text: -------------------...
Wait 30.00 seconds
Countdown Timer - Destroy [B][FONT="Arial Black"]timer[/FONT][/B]
Camera - Pan camera for (Owner of (Dying unit)) to (Center of Rect 010 <gen>) over 0.00 seconds
Special Effect - Create a special effect at (Center of Rect 010 <gen>) using Abilities\Spells\Other\Awaken\Awaken.mdl
Hero - Instantly revive (Dying unit) at (Center of Rect 010 <gen>), Show revival graphics
Special Effect - Create a special effect at (Center of Rect 010 <gen>) using Abilities\Spells\Demon\ReviveDemon\ReviveDemon.mdl
the marked one
Code:Events Unit - A unit owned by Player 3 (Teal) Dies Unit - A unit owned by Player 4 (Purple) Dies Unit - A unit owned by Player 5 (Yellow) Dies Unit - A unit owned by Player 6 (Orange) Dies Unit - A unit owned by Player 7 (Green) Dies Conditions ((Triggering unit) is A Hero) Equal to True Actions Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Triggering player)) [U]Set Timer window = (last created timer window)[/U] Countdown Timer - Show (Last created timer window) Set hero = (Triggering unit) Game - Display to (All players) the text: -------------------... Wait 30.00 seconds Countdown Timer - Destroy [B][FONT="Arial Black"]timer[/FONT][/B] Camera - Pan camera for (Owner of (Dying unit)) to (Center of Rect 010 <gen>) over 0.00 seconds Special Effect - Create a special effect at (Center of Rect 010 <gen>) using Abilities\Spells\Other\Awaken\Awaken.mdl Hero - Instantly revive [B][FONT="Arial Black"]hero[/FONT][/B] at (Center of Rect 010 <gen>), Show revival graphics Special Effect - Create a special effect at (Center of Rect 010 <gen>) using Abilities\Spells\Demon\ReviveDemon\ReviveDemon.mdl
Set Timer window = (last created timer window)