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

[Trigger] Resurrection Problem

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
133
I am trying to make a temporary resurrection spell. If the target dies within the effect of the spell, it gets resurrected. The problem is, it won't remove the ability upon death. What's wrong?
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Life Ward
  • Actions
    • Player Group - Pick every player in (All players) and do (Player - Disable Life Ward Spell Book for (Picked player))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Ward1 Equal to No unit
      • Then - Actions
        • Set Ward1 = (Target unit of ability being cast)
        • Unit - Add Life Ward Spell Book to Ward1
        • Wait 20.00 seconds
        • Unit - Remove Life Ward Spell Book from Ward1
        • Set Ward1 = No unit
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Ward1_Copy Equal to No unit
          • Then - Actions
            • Set Ward1_Copy = (Target unit of ability being cast)
            • Unit - Add Life Ward Spell Book to Ward1_Copy
            • Wait 20.00 seconds
            • Unit - Remove Life Ward Spell Book from Ward1_Copy
            • Set Ward1_Copy = No unit
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Ward1_Copy_2 Equal to No unit
              • Then - Actions
                • Set Ward1_Copy_2 = (Target unit of ability being cast)
                • Unit - Add Life Ward Spell Book to Ward1_Copy_2
                • Wait 20.00 seconds
                • Unit - Remove Life Ward Spell Book from Ward1_Copy_2
                • Set Ward1_Copy_2 = No unit
              • Else - Actions
                • Set Ward1_Copy_3 = (Target unit of ability being cast)
                • Unit - Add Life Ward Spell Book to Ward1_Copy_3
                • Wait 20.00 seconds
                • Unit - Remove Life Ward Spell Book from Ward1_Copy_3
                • Set Ward1_Copy_3 = No unit
  • Events
    • Unit - A unit Dies
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Dying unit) Equal to Ward1
      • Then - Actions
        • Unit - Remove Life Ward Spell Book from Ward1
        • Set Ward1 = No unit
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Dying unit) Equal to Ward1_Copy
          • Then - Actions
            • Unit - Remove Life Ward Spell Book from Ward1_Copy
            • Set Ward1_Copy = No unit
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Dying unit) Equal to Ward1_Copy_2
              • Then - Actions
                • Unit - Remove Life Ward Spell Book from Ward1_Copy_2
                • Set Ward1_Copy_2 = No unit
              • Else - Actions
                • Unit - Remove Life Ward Spell Book from Ward1_Copy_3
                • Set Ward1_Copy_3 = No unit
 
Status
Not open for further replies.
Top