Any Unit Takes Fatal or Non-Fatal Damage (from [Specify your Weapon's dmg effect here])
It may be more reliable, I've had issues with using attack firing even if the attack is cancelled before damage is done.
You also may want to specify a condition that the owner of the damaging unit is not the owner of the damaged unit, so you can't leech by attacking your own units.
Leeching from own units is fine, as there will be very few other units that could sustain multiple attacks. Also, the minerals aren't given whether the attack succeeds or fails.
Your event isn't fireing. Custom Weapon may not be the correct weapon.
Rollback Post to RevisionRollBack
Starcraft2 mapping is an art. It is inspired by the soul and crafted from within and brought out, but not all artists have the skills to create it, which is why I need data/trigger editors. Come find me if you want to be part of something great.
I'm trying to figure out why this trigger doesn't work:
Hero Damage is a global variable, and it is set to a non-zero value.
Why doesn't this show the text tag or give minerals?
Is custom weapon a variable or a selected value.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Try changing the Event to
Any Unit Takes Fatal or Non-Fatal Damage (from [Specify your Weapon's dmg effect here])
It may be more reliable, I've had issues with using attack firing even if the attack is cancelled before damage is done.
You also may want to specify a condition that the owner of the damaging unit is not the owner of the damaged unit, so you can't leech by attacking your own units.
@Stompppp: Go
Leeching from own units is fine, as there will be very few other units that could sustain multiple attacks. Also, the minerals aren't given whether the attack succeeds or fails.
@willuwontu: Go
Custom Weapon is a selected value.
Your event isn't fireing. Custom Weapon may not be the correct weapon.
@TMMagic: Go
Custom weapon is the correct weapon, I've double checked.
@Shophaune: Go
I'd do what stomp says and use the weapon's effect then, might be a bug with that event, though i've never had issues with it before.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Will do!