• 🏆 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!

A question about Damage Detection.

Status
Not open for further replies.
Level 25
Joined
Jul 10, 2006
Messages
3,315

SpasMaster

Hosted Project: SC
Level 23
Joined
Jan 29, 2010
Messages
1,969
Yes, but you'll have to set all non-basic damage the unit deals (e.g. spells) to 0, and trigger their damage.

If the system you linked is anything like http://www.hiveworkshop.com/forums/...=search=damage%20type%20detection&d=list&r=20 it should be possible:
DamageEvent Equal to 1.00; use for the basic attack
DamageEvent Equal to 2.00; zero-damage detection, use for spells

Can you perhaps edit the system you linked to detect attacks only?

I would be really helpful!
 
wouldn't that event also run for a basic attack that deals 0.0 damage (like if the armor type is immune to the attack type)?

anyway, another way is to use a buff-placer effect based from poison arrows with 0.01 duration, if the unit has the buff when the damage event is run, then its a normal attack, you can also remove the buff during the actions to ensure that it will only trigger for the normal attack at the time... also this way, you can still use the normal damage method of the spells on the OE... :)
 
I believe there is a poison arrow passive that actually is not considered as orb effect... the one used by Venomancer's poison sting... it has a stacking field on the OE...

anyway, you could always trigger the other orbs... which in this case also needs to utilize the "normal" attack detection capability of the said method...
 
Status
Not open for further replies.
Top