Hello guys! I read again many of the tutorials about reviving triggers, yet I can't make a working one. In the tutorial of the site, there's need to use many custom scripts. Other ones are for games where everyone respawns at the same point.
I have 2 regions in my map, where I want players from each team to revive. I also want to create a countdown timer. However, the timer dosen't shows up and the timer dosen't show up
Here's what I have:
I have 2 regions in my map, where I want players from each team to revive. I also want to create a countdown timer. However, the timer dosen't shows up and the timer dosen't show up
Here's what I have:
Code:
Revive Hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to (==) True
Actions
Game - Display to (All players) for 10.00 seconds the text: (((Name of (Owner of (Killing unit))) + has made the head of ) + ((Name of (Owner of (Triggering unit))) + into |c00000080TOI|r|c000000ffLET|r |c003366ffPA|r|c0000ccffPER|r|c0099ccff!!!|r))
Countdown Timer - Start Hero_ReviveTimer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in (2.40 x (Real((Level of (Triggering unit))))) seconds
Countdown Timer - Change the title of (Last created timer window) to Revival in:
Player - Add (200 + (6 x (Level of (Triggering unit)))) to (Owner of (Killing unit)) Current gold
Player - Add ((200 + (6 x (Level of (Triggering unit)))) x -1) to (Owner of (Triggering unit)) Current gold
Countdown Timer - Show (Last created timer window) for (Owner of (Triggering unit))
Set Hero_DyingHero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to (==) Player 1 (Red)
(Owner of (Triggering unit)) Equal to (==) Player 2 (Blue)
(Owner of (Triggering unit)) Equal to (==) Player 5 (Yellow)
(Owner of (Triggering unit)) Equal to (==) Player 6 (Orange)
Then - Actions
Wait (2.40 x (Real((Level of (Triggering unit))))) seconds
Hero - Instantly revive (Triggering unit) at (Center of AlyBase <gen>), Show revival graphics
Else - Actions
Wait (2.40 x (Real((Level of (Triggering unit))))) seconds
Hero - Instantly revive (Triggering unit) at (Center of ScoBase <gen>), Show revival graphics