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

Detect Passive

Status
Not open for further replies.
Level 8
Joined
Jul 28, 2004
Messages
258
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.
 
Level 10
Joined
Aug 8, 2004
Messages
562
Daminon said:
The only good way is to simulate passive skills.

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