• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] undefend when mirror image is cast / ankh / workaround?

Status
Not open for further replies.
Level 20
Joined
Mar 16, 2008
Messages
855
This GUI trigger uses undefend as an event. The problem is when a hero casts mirror image, it runs the trigger. Can anyone help me figure out a workaround so it won't run on mirror image but will run when the hero ankhs (undefends)? Thanks for reading.

Maybe just create another trigger that will give them an ankh when they cast a problematic spell?

  • Blank Ankh Used Yellow
    • Events
      • Unit - A unit owned by Player 5 (Yellow) Is issued an order with no target
    • Conditions
      • (Player 5 (Yellow) is in Black_Group_Var.) Equal to True
      • (Issued order) Equal to (Order(undefend))
      • (Triggering unit) Equal to Yellow_Hero
      • ((Triggering unit) is alive) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order((Name of Magician's Split)))
        • Then - Actions
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is selected by Player 5 (Yellow).) Equal to True
        • Then - Actions
          • Selection - Add (Triggering unit) to selection for Player 5 (Yellow)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item: (Item carried by Yellow_Hero of type Midnight Ankh)'s Integer Field: Number of Charges ('iuse')) Equal to 1
        • Then - Actions
          • Special Effect - Create a special effect attached to the origin of Yellow_Hero using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Set life of Yellow_Hero to 100.00%
          • Countdown Timer - Start Black_Ankh_CD_Timer_Yellow as a One-shot timer that will expire in 180.00 seconds
          • Item - Remove (Item carried by Yellow_Hero of type Midnight Ankh)
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item: (Item carried by Yellow_Hero of type Midnight Ankh)'s Integer Field: Number of Charges ('iuse')) Greater than 1
        • Then - Actions
          • Item - Set charges remaining in (Item carried by Yellow_Hero of type Midnight Ankh) to ((Charges remaining in (Item carried by Yellow_Hero of type Midnight Ankh)) - 1)
          • Countdown Timer - Start Black_Ankh_CD_Timer_Yellow as a One-shot timer that will expire in 180.00 seconds
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Status
Not open for further replies.
Top