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.
HeroDeath
Events

Unit - A unit owned by Player 2 (blue) dead

Unit - A unit owned by Player 3 (teal) dead

Unit - A unit owned by Player 4 (Purple) dead

Unit - A unit owned by Player 5 (Yellow) dead

Unit - A unit owned by Player 6 (Orange) dead

Unit - A unit owned by Player 11 (Dark Green) dead
Conditions

(Triggering unit) is A heros) Equal TRUE
Actions

Custom script - local location loc = GetRectCenter(gg_rct_A_Spawn_5_WP1)

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


If - Conditions



(Level of (Triggering unit)) upper or equal to 6


Then - Actions



Custom script - call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()), 0, 0, "Your hero...")



Wait 10.00 seconds



Hero - Set (Triggering unit) Hero-level to ((Hero level of (Triggering unit)) - 2), Hide level-up graphics


Else - Actions



Custom script - call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()), 0, 0, "Your hero...")

Custom script - call ReviveHeroLoc( GetTriggerUnit(), loc, false )

Custom script - call RemoveLocation(loc)

Custom script - set loc = null