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

[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