- Joined
- May 11, 2012
- Messages
- 2,108
I'm having trouble doing this trigger, so if there's someone who knows how to make this trigger, I would appreciate
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Start Timer

Events


Unit - A unit owned by Player 1 (red) Dies

Conditions


(Triggering unit) Equal to HERO

Actions


Countdown Timer - Create a timer window for TIMER with title Respawn in:


Set Timer_Window = (Last created timer window)


Countdown Timer - Start TIMER as a One-shot timer that will expire in [YOUR RESPAWN TIME] seconds


Countdown Timer - Mostrar Timer_Window
End Timer

Events


Time - TIMER expires

Conditions

Actions


Countdown Timer - Hide Timer_Window


Countdown Timer - Destroy Timer_Window


Set Spawn = [YOUR SPAWN LOCATION]


Hero - Instantly revive HERO at Spawn, Show revival graphics


Custom script: call RemoveLocation(udg_Spawn)
Start Timer

Events


Unit - A unit Dies

Conditions


Or - Any (Conditions) are true



Conditions




(Triggering unit) Equal to HERO[1]




(Triggering unit) Equal to HERO[2]




(Triggering unit) Equal to HERO[3]




(Triggering unit) Equal to HERO[4]




(Triggering unit) Equal to HERO[5]




(Triggering unit) Equal to HERO[6]




(Triggering unit) Equal to HERO[7]




(Triggering unit) Equal to HERO[8]

Actions


Countdown Timer - Create a timer window for TIMER[(Player number of (Owner of (Triggering unit)))] with title (( + ((String((Player number of (Owner of (Triggering unit))))) + ) Respawn in:))


Set Timer_Window[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)


Countdown Timer - Start TIMER[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in [YOUR RESPAWN TIME] seconds


Countdown Timer - Mostrar Timer_Window[(Player number of (Owner of (Triggering unit)))]
End Timer X

Events


Time - TIMER[X] expires

Conditions

Actions


Countdown Timer - Hide Timer_Window[X]


Countdown Timer - Destroy Timer_Window[X]


Set Spawn = [SPAWN LOCATION OF PLAYER X]


Hero - Instantly revive HERO[X] at Spawn, Show revival graphics


Custom script: call RemoveLocation(udg_Spawn)
Start Timer

Events


Unit - A unit Dies

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions



Then - Actions




Set HeroInteger[1] = (Team number of Player 1 (Red))




Set HeroInteger[2] = (Team number of Player 2 (Blue))




Set HeroInteger[3] = (Team number of Player 3 (Teal))




Set HeroInteger[4] = (Team number of Player 4 (Purple))




Set HeroInteger[5] = (Team number of Player 5 (Yellow))




Set HeroInteger[6] = (Team number of Player 6 (Orange))




Set HeroInteger[7] = (Team number of Player 7 (Green))




Set HeroInteger[8] = (Team number of Player 8 (Pink))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






Or - Any (Conditions) are true







Conditions








(Triggering unit) Equal to Hero[HeroInteger[1]]








(Triggering unit) Equal to Hero[HeroInteger[2]]








(Triggering unit) Equal to Hero[HeroInteger[3]]








(Triggering unit) Equal to Hero[HeroInteger[4]]








(Triggering unit) Equal to Hero[HeroInteger[5]]








(Triggering unit) Equal to Hero[HeroInteger[6]]








(Triggering unit) Equal to Hero[HeroInteger[7]]








(Triggering unit) Equal to Hero[HeroInteger[8]]





Then - Actions






Countdown Timer - Start TimerRespawn[HeroInteger[(Team number of (Owner of (Triggering unit)))]] as a One-shot timer that will expire in 120.00 seconds






Countdown Timer - Create a timer window for TimerRespawn[HeroInteger[(Team number of (Owner of (Triggering unit)))]] with title ((( + (String(HeroInteger[(Team number of (Owner of (Triggering unit)))]))) + Respawn in:)






Set TimerWindowRespawn[HeroInteger[(Team number of (Owner of (Triggering unit)))]] = (Last created timer window)






Countdown Timer - Show TimerWindowRespawn[HeroInteger[(Team number of (Owner of (Triggering unit)))]]





Else - Actions



Else - Actions