• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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