Warcraft III resources & community, 2003–2006 · archived

Detect Passive

6 posts
#1

Detect Passive

How can u detect a unit which does bash or cleaving attack or sumthing? cuz it doesnt work with a unit casts
an ability
#2
use unit begins the effects of an ability
#3
u cannot directly detect those abilities, u can try to look for the "pause" buff to find if a unit is under the effect of bash, cleaving attack is always active so u can use the "unit is attacked" and then check if attacking unit has the cleaving attack ability.
#4
The only good way is to simulate passive skills. Can be problems when you need the units damage.
#5
DaminonThe only good way is to simulate passive skills.



Event-
Unit is attacked
Condition-
Attacking unit has *YOURSKILL*
Event-
Set *YOUR REAL VAR* = random nuber between 1 and 10 (change w/ the percent you want)
If all conditions are true do then else do else

IF Conditions-
*YOUR REAL VAR* = 5
THEN Actions-
**YOUR ACTIONS**
ELSE Actions- 
do nothing
#6
Okie, I added this as a FAQ question. I have seen topics with this subject far too many times. Thread closed!

~Daelin