- Joined
- Aug 15, 2012
- Messages
- 318
Here is my hero revival system used in my rpg I would like to make it so that it revives for more than 1 player and unit heres the trigger if anyone has any ideas on how to improve this I would like to make it as good as possible.
-
Hero Revival
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(((Dying unit) is A Hero) Equal to True) and (((Owner of (Dying unit)) is an enemy of Neutral Hostile) Equal to True)
-
-
Actions
-
Set Hero_loc = (Center of Respawn <gen>)
-
Game - Display to (All players) for 15.00 seconds the text: ((|cffff0000 + (Name of (Owner of (Dying unit)))) + (|r + ( has been killed by a + (|cffff0000 + ((Name of (Killing unit)) + |r)))))
-
Countdown Timer - Start OURTIMER as a One-shot timer that will expire in 15.00 seconds
-
Countdown Timer - Create a timer window for (Last started timer) with title Hero Revival
-
Set Timer_window = (Last created timer window)
-
Countdown Timer - Show (Last created timer window) for (Owner of (Dying unit))
-
Wait 15.00 seconds
-
Countdown Timer - Destroy Timer_window
-
Hero - Instantly revive (Dying unit) at Hero_loc, Show revival graphics
-
Camera - Pan camera for (Owner of (Dying unit)) to Hero_loc over 0.00 seconds
-
Custom script: call RemoveLocation(udg_Hero_loc)
-
-