I need help making this spell... It is supposed to be a windwalk that instead of dealing critical damage on attack. Does a small stun. The triggers i have at the moment aren't seeming to work. Can someone tell me what i am doing wrong? Here they are. Events: Unit - A unit Starts the effect of an ability Conditions: (Ability being cast) Equal to Confusion Actions: Unit Group - Pick every unit in (Units within ((Real((Level of Confusion for (Triggering unit)))) x 7200.00) of (Position of (Target unit of ability being cast)) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False))) and do (Actions) Loop - Actions Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing 0.00 degrees Unit - Add stunconfusion to (Last created unit) Unit - Set level of stunconfusion for (Last created unit) to (Level of Confusion for (Triggering unit)) Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit) Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Please note. Confusion is the windwalk spell. Stunconfusion is the stormbolt on the dummy for the stun.
Events Unit - A unit Is attacked Conditions ((Attacking unit) has buff Invisibility) Equal to True Actions Unit Group - Pick every unit in (Units within ((Real((Level of Confusion for (Triggering unit)))) x 7200.00) of (Position of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False))) and do (Actions) Loop - Actions Unit - Create 1 Dummy3 for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing 0.00 degrees Unit - Add stunconfusion to (Last created unit) Unit - Set level of stunconfusion for (Last created unit) to (Level of Confusion for (Triggering unit)) Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit) Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Still not working. Btw. I put the buff on Confusion spell as invisibility. Thats why it says "Attacking unit has buff invisibility equal to true"
you cant use matching unit. that is for the unit that is equal to the condition and if he is not longer invisible when he attacks then there is no longer a matching unit.
If you use "unit is attacked" event, than "triggering unit" refers to the attacked unit. Use "attacking unit" to the guy with windwalk! You mixed them up!
Unit - A unit Is attacked Conditions ((Attacking unit) has buff Invisibility) Equal to True Actions Unit Group - Pick every unit in (Units within ((Real((Level of Confusion for (Attacking unit )))) x 7200.00) of (Position of (Attacking unit )) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False))) and do (Actions) Loop - Actions Unit - Create 1 Dummy3 for (Owner of (Attacking unit )) at (Position of (Picked unit)) facing 0.00 degrees Unit - Add stunconfusion to (Last created unit) Unit - Set level of stunconfusion for (Last created unit) to (Level of Confusion for (Attacking unit )) Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit) Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
It would look like this...if i didn't misusunderstand what you want.