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

Passive Abilities with trigger

Status
Not open for further replies.
I've been thinking about this ability but I can't seem to solve this problem... I have this passive ability Fatality Strike, Its more likely a critical strike but it will just trigger after 5 attacks. If I use the event "Unit is attacked" he can just attack the target and press "S" to stop attacking and the trigger will run. But if I use the event "Unit takes damage", the only problem here is the trigger will run when you use any ability that can damage the target. Does anyone knows how to fix this problem? I just want the trigger run without any bugs and tricks. This ability is like the passive ability of Kunkka and Bounty Hunter from dota.
 
What is an "Orb effect" ? And how it can detect the 5th strike to activate the ability ?
An Orb Effect is an ability that modifies the Unit's Attack. Such as all the orb's abilities (orb of fire and such) but also lifesteal (lifesteal aura does not coutn also). They don't stack with other Orb Effects. If you have Orb of Fire and Orb of Ice at same time, only one will modify your attack and add bonus to it.
It can be used to give the attacked unit a certain buff when she's attacked by another unit. That means you can do the difference between a spell/trigerred damages and attack's damages.

Then, it's easy triggering, if the attacked unit has the buff, you just increment an integer, if the integer equal to 5, you add the critical effect and set the integer to 0.
 
Status
Not open for further replies.
Top