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

[General] How to detect attack damage ?

Status
Not open for further replies.

Deleted member 242951

D

Deleted member 242951

Hello everyone, this time I was using trigger that was somewhat like this :

  • Events -
  • Unit - A unit is attacked
  • Conditions -
  • Actions -
  • Set *A real variable* = (Event Response - Damage Taken)
  • Game - Display to all players the text String(The Real Variable)
Actually I've been using this for a custom critical system but the floating text shows 0.00 and no extra damage is dealt. Why ?

Why is the
  • Event response - Damage taken
not working ?
 
That's one of the issues with the event. Damage Taken refers to Unit Takes Damage. (specific Unit Event)

Use http://www.hiveworkshop.com/forums/...a-231846/?prev=d=list&r=20&u=Looking_for_help to check the damage, and with that you can filter out damage type (coded, physical or magical). Be aware Life Drain must be triggered manually, as well as Finger of Death. In addition, you need to change the spell damage reduction items into it's trigger core part the manual should explains it clearly how to do it.

If you don't need the damage type, you can use http://www.hiveworkshop.com/forums/...e-v2-2-1-0-a-201016/?prev=d=list&r=20&u=Bribe instead, and it has none of the above flaws. (But the disadvantage is that you can't filter out damage)
 

Deleted member 242951

D

Deleted member 242951

Oh...so it responds to that...thanks !!!
 
Status
Not open for further replies.
Top