• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger Problem

Status
Not open for further replies.
Level 2
Joined
Nov 25, 2007
Messages
16
  • Invulnerable
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Invulnerable
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of (Ability being cast) for (Triggering unit)) Equal to 1
        • Then - Actions
          • Sound - Play Invulnerable <gen>
          • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
          • Player Group - Pick every player in (All allies of (Triggering player)) and do (Actions)
            • Loop - Actions
              • Unit Group - Pick every unit in (Units owned by (Picked player) matching (((Picked unit) is A Hero) Equal to True)) and do (Unit - Make (Picked unit) Invulnerable)
          • Special Effect - Destroy (Last created special effect)
          • Wait 5.00 seconds
          • Player Group - Pick every player in (All allies of (Triggering player)) and do (Actions)
            • Loop - Actions
              • Unit Group - Pick every unit in (Units owned by (Picked player) matching (((Picked unit) is A Hero) Equal to True)) and do (Unit - Make (Picked unit) Vulnerable)
        • Else - Actions
          • Do nothing
Scope:
- Make all allies hero invulnerable within 5 seconds.
- Revert back to vulnerable after 5 seconds.

My problem is that all the allies hero isn't invulnerable when i started to use the ability. Is there any part of the trigger wrong?
 
Status
Not open for further replies.
Top