-
ReviveHeroForest
-
Events
- Unit - A unit Dies
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Dying unit) is A Hero) Equal to True
- ((Owner of (Dying unit)) is in ForestWarriors) Equal to True
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Custom script: local unit udg_TempUnit = GetDyingUnit()
- Custom script: local integer bj_forLoopAIndex
- Custom script: local integer bj_forLoopAIndexEnd
- Set Countdown[(Player number of (Owner of TempUnit))] = ((Hero level of TempUnit) x 3)
- Player - Add (50 x (Integer((Real((Level of TempUnit)))))) to (Owner of (Killing unit)) Current gold
- Player - Add -300 to (Owner of TempUnit) Current gold
- Leaderboard - Create a leaderboard for (Player group((Owner of (Triggering unit)))) titled (<Empty String> + ((String(Countdown[(Player number of (Owner of TempUnit))])) + seconds))
- Set Coundownboard[(Player number of (Owner of (Triggering unit)))] = (Last created leaderboard)
- Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( + (killed + (Name of (Owner of (Dying unit))))))
- Player - Add 1 to (Owner of (Killing unit)) Current lumber
-
For each (Integer A) from 1 to ((Hero level of TempUnit) x 3), do (Actions)
-
Loop - Actions
- Set Countdown[(Player number of (Owner of TempUnit))] = (Countdown[(Player number of (Owner of TempUnit))] - 1)
- Leaderboard - Change the title of (Last created leaderboard) to (Reviving in + ((String(Countdown[(Player number of (Owner of TempUnit))])) + seconds))
- Wait 1.00 seconds
-
Loop - Actions
- Leaderboard - Destroy Coundownboard[(Player number of (Owner of TempUnit))]
- Camera - Pan camera for (Owner of TempUnit) to (Center of ReviveForest <gen>) over 0.00 seconds
- Wait 1.00 seconds
- Hero - Instantly revive TempUnit at (Center of ReviveForest <gen>), Show revival graphics
-
Events