• 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.

Remove a tavern when it finish to ressurect

Status
Not open for further replies.
Level 8
Joined
Jan 8, 2010
Messages
493
do you have many taverns that resurrects heroes at your map? because if you have only one, you can just remove that tavern using this trigger.
  • One Tavern
    • Events
      • Unit - A unit Finishes reviving
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to (Your Hero)
    • Actions
      • Unit - Remove (Your Tavern) from the game
but if you have more than one tavern then you can issue a check to where your hero revives. something like:
  • Many Tavern
    • Events
      • Unit - A unit Finishes reviving
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to (Your Hero)
    • Actions
      • Set LocRevive = (Position of (Triggering unit))
      • Custom script: call bj_wantDestroyGroup=true
      • Unit Group - Pick every unit in (Units within 300.00 of LocRevive matching ((Unit-type of (Matching unit)) Equal to (Your Tavern))) and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call RemoveLocation(udg_LocRevive)
 
  • Like
Reactions: Yan
Status
Not open for further replies.
Top