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.
Health Show Player One

Events


Player - Player 1 (Red) Selects a unit

Conditions

Actions


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



If - Conditions




(Heart[1] is selected by Player 1 (Red)) Equal to True



Then - Actions




Set Player[1] = (Player group(Player 1 (Red)))




Game - Display to Player[1] the text: (String((Life of (Triggering unit))))




Custom script: call DestroyForce(udg_Player[1])



Else - Actions
Wait 0.1 seconds
Health Show Player One

Events


Player - Player 1 (Red) Selects a unit

Conditions

Actions


Wait 0.20 seconds


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



If - Conditions




(Heart[1] is selected by Player 1 (Red)) Equal to True



Then - Actions




Set Player[1] = (Player group(Player 1 (Red)))




Game - Display to Player[1] the text: (String((Life of (Triggering unit))))




Custom script: call DestroyForce(udg_Player[1])



Else - Actions
You know what, if you want the unit selected, you could always use custom scripts and set a unit variable to GetSelectedUnit()
Custom script: set udg_TempUnit = GetSelectedUnit()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions


Heart[1] Equal to TempUnit

Then - Actions

Else - Actions
How does everyone ignore that the unit/hero was said to have locust. No, you cannot select locusts or trigger the event.
