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

[Spell] How can i remove special effects...

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2011
Messages
127
Hey guys i am here again anyway... here a small example of what i have made
  • Lightning Shield
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (((Attacking unit) has buff Lucky Lightning ) Equal to True) and ((Unit-type of (Attacking unit)) Equal to Gnoll Warden)
    • Actions
      • Set Lucky = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Lucky Lightning for (Attacking unit)) Equal to 1
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Lucky Less than or equal to 15
            • Then - Actions
              • Special Effect - Create a special effect attached to the origin of (Attacked unit) using Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
              • Wait 1.00 seconds
              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
              • Wait 1.00 seconds
              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
              • Wait 1.00 seconds
              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
              • Wait 1.00 seconds
              • Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 20.00 damage of attack type Normal and damage type Normal
              • Special Effect - Destroy (Last created special effect)
            • Else - Actions
        • Else - Actions
so when my hero is lucky and gets 2 times this the 1 from the 2 special effects will stay there for ever :( how can i fix it?? (sorry for bad english)
 
Level 7
Joined
Nov 13, 2011
Messages
127
ok guys i will see if it works .. if it doesn't i will post a comment :D

Edit:
It didn't work...I will try making a looping in a new trigger :/
-----------------------------------------------------------------------------
[thread]215414[/thread]
 
Status
Not open for further replies.
Top