Warcraft III resources & community, 2003–2006 · archived

How can i do i Passive spell that has 20% to do Entrangling?

15 posts
#1

How can i do i Passive spell that has 20% to do Entrangling?

As the subject said.
#2
unit is attacked

set int = random number between 1 and 100

if int less than or equal to 20 then

create dum

cast roots on attacked unit
#3
Thanks
#4
BTW i did like this

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 :D[/code]
#5
ZyrreBTW i did like this

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 :D[/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
#6
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 :D i would apreciate alot :D
#7
first, please dont revive old topics

second, nature's grace is a buff that he is ( probably, im guessing here ) using in his map.
#8
i`m not reveving old topic i was just putting a question... why i`m not allowed ... are u moderator or what?
#9
no he isnt, but if a mod sees it u will get a warning
#10
sorry didn`t know
#11
Noo problem!

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.
#12
isnt it just 1 week? i didnt read rules for a long time though :P
#13
well, i never really read that part of them, just most people tend to say 10 days.
#14
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
#15
yes, but not all spells work for them.

you're thinking of the Orb of Lightning ability ^.^