Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
That's kind of a weird comparison, but ok. To give you an in-game example: If you got you map 'split up' in 2 regions (Region1 and Region2) and you want units it Region1 to have health regeneration and unit in region 2 to have mana regeneration. Then you'll get a trigger like this:
If/Then/Else
Events
Time - Every 2.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Region1 <gen> contains (Position of YourUnit)) Equal to True
Then - Actions
Unit - Set life of YourUnit to ((Life of YourUnit) + 35.00)
Else - Actions
Unit - Set mana of YourUnit to ((Mana of YourUnit) + 1.00)
@all
IF : checks the condition. If the conditions listed in this category are true, then it triggers the THEN codes.
THEN : lists of the trigger code(s) if the condition(s) that I've mentioned is/are true.
ELSE : lists of the trigger code(s) if the condition(s) that I've mentioned is/are false.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.