• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Fight Reset Trigger

Status
Not open for further replies.
Level 1
Joined
May 15, 2011
Messages
1
Im making a dungeon/instance map like the ones in World of Warcraft with bosses and stuff. Im trying to make a trigger where if all your heroes die then the boss will go back to full health so that you have to try again, does anyone know how to do this?
 
  • Trigger
  • Events
    • Unit - A unit enters Boss Region <gen>
  • Conditions
    • ((Triggering unit) is a Hero) Equal to True
    • ((Owner of (Triggering unit)) User) Equal to Player
    • ((Triggering unit) is in BossGroup) Equal to False
  • Actions
    • Unit Group - Add (Triggering unit) to BossGroup
  • Trigger2
  • Events
    • Unit - A unit dies
  • Conditions
    • ((Triggering unit) is in BossGroup) Equal to True
  • Actions
    • Unit Group - Remove (Triggering unit) from BossGroup
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (BossGroup is empty) Equal to True
      • Then - Actions
        • Unit - Set life of Boss to Maximum life of (Boss)
        • Unit - Set mana of Boss to Maximum mana of (Boss)
      • Else - Actions
 
Status
Not open for further replies.
Top