• 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 triggering problem

Status
Not open for further replies.
Level 2
Joined
Mar 20, 2013
Messages
12
[Solved] spell triggering problem

i was trying to make some aoe banish spell but it turns out very wrong. i test it with shadows and you see... it stacks a hundred times.

the trigger is:
  • Events
    • Unit - a unit starts the effect of an ability
  • Conditions
  • Actions
    • Unit Group - Pick every units in (Units within 400 of (target point of ability being cast) and do actions
      • Loop - Actions
        • Multiple Condition if (All conditions is true) then do (Then actions) else do (Else actions)
          • If - Conditions
            • ((Picked Unit) belongs to an enemy of (Owner of (Casting Unit))) Equal to True
          • Then - Actions
            • Unit - Create 1 Dummy for (Owner of(Casting Unit)) facing default degrees
            • Unit - Add a 1 second Generic timer to (Last Created Unit)
            • Unit - Add DummySpell to (Last Created Unit)
            • Unit - Order (Last Created Unit) to banish (Picked Unit)
            • Unit Group - Remove (Picked Unit) from (Last Created Unit Group)
          • Else - Actions
everyone who answer deserves a reputation :thumbs_up:

edit: should have condition ability being cast (so dumb of me)
 
Level 2
Joined
Mar 20, 2013
Messages
12
still like that! and i already add timer!


edit: Oh so dumb of me i forget to add ability being cast condition (facepalm!)
 
Status
Not open for further replies.
Top