• 🏆 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!

Simple Trigger Not Working ? O.o

Status
Not open for further replies.
Level 15
Joined
Nov 26, 2005
Messages
1,151
Hi guys. I was wondering why in this trigger, the sleep effect does not show at all.

Trigger:

  • Rest Loop
    • Events
      • Time - Every 1.30 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Resting_Units and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (0.04 x (Max life of (Picked unit))))
          • Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + (0.04 x (Max mana of (Picked unit))))
          • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Undead\Sleep\SleepTarget.mdl
          • Special Effect - Destroy (Last created special effect)
 
Level 14
Joined
Aug 31, 2009
Messages
775
...that's because you're instantly destroying the effect.
Instant special effect destruction only allows the effect to be visible if it has no blank death animation - which the sleep effect DOES have.

Something like Warstomp for example has no animation sets, so instantly destroying it will still allow it to appear.
 
Status
Not open for further replies.
Top