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

My new spell.

Status
Not open for further replies.
Level 3
Joined
Dec 12, 2005
Messages
37
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.
 
Level 3
Joined
Dec 12, 2005
Messages
37
So what exactly would i put in its place? I'm not finding anything under than "A unit is attacked" and, thats all attacks. Not just windwalk.
 
Level 3
Joined
Dec 12, 2005
Messages
37
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"
 
Level 7
Joined
Dec 8, 2005
Messages
319
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.
 
Level 11
Joined
Jul 12, 2005
Messages
764
you have to change some things:

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.
 
Status
Not open for further replies.
Top