Slow effect wont work?

Omnizohar

New Member
Reaction score
0
Hey I need help with this trigger I'm making. What I want to happen is my character casts a spell which stuns and I made a dummy unit to cast slow on the attacked unit after the stun wears off so my enemy is slowed.

Code:
Event
 >Unit - A Unit begins casting an ability
Condition
 >(Ability being cast) Equal to Storm Bolt (for example)
Action
 >Unit - Create 1 Dummy Unit for (Triggering Player) at (Position of (Triggering Unit)) facing  Default building facing degrees
 >Unit - Add a 4.00 second Generic expiration timer to (Last created Unit)
 >Unit - Add Slow to (Last created Unit)
 >Unit - Order (Last created unit) to Human Sorceress - Slow (Attacked Unit)

Thats the code I have. For some reason it won't work for me. I was hoping if you people can help me fix my trigger. Thanks.
 

Manee

New Member
Reaction score
20
change attacked unit to target of ability being cast

btw ur trigger leaks do this instead

Code:
Event
 >Unit - A Unit begins casting an ability
Condition
 >(Ability being cast) Equal to Storm Bolt (for example)
Action
Set TempPoint = (Position of (Target unit of ability being cast))
 >Unit - Create 1 Dummy Unit for (Triggering Player) at TempPoint facing  Default building facing degrees
 >Unit - Add a 4.00 second Generic expiration timer to (Last created Unit)
 >Unit - Add Slow to (Last created Unit)
 >Unit - Order (Last created unit) to Human Sorceress - Slow (Target unit of ability being cast)
Custom script:   call RemoveLocation (udg_TempPoint)
 

Omnizohar

New Member
Reaction score
0
Lol I didn't know that I had to change it to target unit of ability being cast. Such a simple mistake I made. Anyway thanks for the help. Rep+
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top