Events
Unit - A unit Is attacked
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 5) Equal to 3
((Attacked unit) has buff Nature's Grace ) Equal to True
Then - Actions
Unit - Create 1 <dummy_root> for Player 1 (Red) at (Position of (Attacked unit)) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Attacking unit)
Else - Actions
Do nothing
Events
Unit - A unit Is attacked
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 5) Equal to 3
((Attacked unit) has buff Nature's Grace ) Equal to True
Then - Actions
Unit - Create 1 <dummy_root> for Player 1 (Red) at (Position of (Attacked unit)) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Attacking unit)
Else - Actions
Do nothing
Thinks it work [/code]
first, remove the DoNothing. that does nothing! what do you know? i wouldnt have guessed that!
second, add the expiration timer after the unit is ordered to cast the ability. in this case it wont matter, but its good to get used to it
for me it doesn`t work i don`t know why . i made the dummy 0 to all locust invunerable collision 0 ..etc and what is with nature`s grace there ...?? it doesn`t woork for me ;| can someone explain em in details i would apreciate alot
srry didnt notice u just joined, ur just not supposed to post in topics ( non-sticky, and comments in resources dont count ) that are more than ten days old.
There is an item called shaman claws they have the ability to randomly cast an ability based on a % check it out maybe that can help and its much easier than triggering