- 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?
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
-
-
-