- Joined
- Mar 17, 2012
- Messages
- 582
Hi there. I have a hero respawn trigger:
-
HeroBlue
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
- ((Entering unit) is A Hero) Equal to True
- (Owner of (Entering unit)) Equal to Player 2 (Blue)
-
Actions
- Set Hero_Blue = (Entering unit)
- Multiboard - Set the text for Statistics_Blue item in column 5, row 3 to (|cff0066ff + ((Name of Hero_Blue) + |r))
-
Events
-
Die Blue
-
Events
- Unit - A unit owned by Player 2 (Blue) Dies
-
Conditions
- ((Dying unit) is A Hero) Equal to True
-
Actions
- Player - Add -250 to Player 2 (Blue) Current gold
- Game - Display to (All players) the text: (((|cff0066ff + (Name of (Triggering unit))) + |r) + погибает Рё теряет 250 золота! РРіСЂРѕРєРё команды противника получают Р·Р° это РїРѕ 100 золота!)
- Player - Add 100 to Player 8 (Pink) Current gold
- Player - Add 100 to Player 9 (Gray) Current gold
- Player - Add 100 to Player 11 (Dark Green) Current gold
- Player - Add 100 to Player 12 (Brown) Current gold
- Wait 3.00 seconds
- Game - Display to Player Group - Player 2 (Blue) the text: Your hero will resp...
- Countdown Timer - Start Death_timer_blue as a One-shot timer that will expire in (20.00 + (2.00 x (Real((Level of (Dying unit)))))) seconds
- Countdown Timer - Create a timer window for Death_timer_blue with title Respawn:
- Set Timer_window_blue = (Last created timer window)
- Countdown Timer - Change the color of the time for Timer_window_blue to (10.00%, 30.00%, 100.00%) with 0.00% transparency
- Countdown Timer - Hide Timer_window_blue
- Countdown Timer - Show Timer_window_blue for Player 2 (Blue)
- Countdown Timer - Show Timer_window_blue for Player 6 (Orange)
- Countdown Timer - Show Timer_window_blue for Player 5 (Yellow)
- Countdown Timer - Show Timer_window_blue for Player 4 (Purple)
- Wait (20.00 + (2.00 x (Real((Level of (Dying unit)))))) seconds
- Countdown Timer - Destroy Timer_window_blue
- Camera - Apply Resurection Blue Orange <gen> for Player 2 (Blue) over 0.00 seconds
- Hero - Instantly revive (Dying unit) at (Center of Blue Orange <gen>), Show revival graphics
-
Events