• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] Conditions

Status
Not open for further replies.
Level 3
Joined
Aug 8, 2013
Messages
20
i'm doing a map and i want to do a of condition and then actions but to do that if lets say the town hall is not destroyed and that was an objective one of condition is if Townhall = Dead (then Do actions) or if TownHall = alive (then do actions) how persay i would do that i don't see an option to really do that.
 
Level 6
Joined
Oct 31, 2014
Messages
170
whazat ? Do you mean you don't know how to trigger the actions you have in mind ?
 
Level 6
Joined
Oct 31, 2014
Messages
170
you can use the action : if/then/else multiple at first and then

if: condition: "Unit" is alive egal TRUE (as Nichilus said "boolean comparaison")
then: action
else: action
 
Level 13
Joined
Dec 21, 2010
Messages
532
  • Town Hall Destroyed
  • Events
    • Unit - Dies
  • Conditions
    • Unit type of Dying unit Equal to Town Hall
  • Actions
    • -------- DO WHAT EVER YOU WANT -------
or
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Town_Hall is dead Equal to true
    • Then - Actions
      • -------- DO WHATEVER YOU WANT ---------
    • Else - Actions
 
Status
Not open for further replies.
Top