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

any way to convert damage taken to 0?

Status
Not open for further replies.
Why not make a hardened skin and set these settings?
attachment.php


It also works on unit with 10 hp.
I tested with a peasant having 10 hp getting damaged by a hero with 200-250 damage. The peasant receives 0 damage.
However, I am not sure whether to put the minimum damage to complete zero or 0.01.

If you want the ability to be invisible, simply put it in a spellbook and disable it.
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    119.6 KB · Views: 289
Level 28
Joined
Jan 26, 2007
Messages
4,789
That won't work for damage that would normally kill it.
Damage is only dealt after a trigger that fires with the event "A unit takes damage".
This means that if you increase HP upon detection, the unit will not die.

There are, however, some problems:
1) If the unit is at max HP, healing doesn't work and damage is received normally.
2) If an attack overkills a unit (e.g.: unit has 10HP, attack deals 15 damage), the unit will still die.

However, Damage Engine accounts for all those problems (by using a +500k HP ability).

In short: this trigger works (reduces all incoming damage to 0).
  • On Damage
    • Events
      • Game - DamageModifierEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Set DamageEventAmount = 0.00
 
Level 30
Joined
Nov 29, 2012
Messages
6,637
How about as what UgoUgo said, add a Hardened Skin that perfectly blocks all damage and for the magic, Resistant skin that perfectly blocks magic spells. You will just have to configure those abilities to block all possible damages.
 
Status
Not open for further replies.
Top