• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Passive ability

Status
Not open for further replies.
Level 3
Joined
Aug 12, 2008
Messages
34
Hey guys :grin:

I was just wondering, what kind of event should be used when a passive action occurs - like bash, critical strike or evasion?

For example, a unit lands a critical strike and his movement speed is increased for X seconds. How do you make such a trigger?

Thank you :)

~Razorwind~
 
Apparently, chances of the abilities don't work with your own integer chance system, so, if you want to detect a critical strike, you would have to create a custom one. Especially for Critical Strike, you can use this one: http://www.hiveworkshop.com/forums/spells-569/enhanced-critical-strike-v-61-a-125491/

For the Evasion ability, they have to be triggered as well.

As for the Bash, you could create a custom bash (with a custom buff) and fire the Unit is damaged event. If the damaged unit has the Bash buff, do your actions.
 
Level 10
Joined
Jul 12, 2009
Messages
318
To clarify Pharaoh's post a little, there is no event* that fires when bash, crit, or evasion happen, so if you want to trigger something based on those abilities, it is most practical to fully trigger the abilities instead of using the WC3 native abilities.

*I think crit and bash cause an extra 0 damage event, but so do other things, making it hard-to-impossible to tell when it's due to crit/bash.
 
Status
Not open for further replies.
Top