AciD
New Member
- Reaction score
- 1
[SOLVED]Stuck in the middle of a trigger
What I'm going to do is basically a lifesteal aura that works for ranged units.
What I will paste is a pseudoversion for testing, before adding the aura part, etc etc.
Anyways, disregard unit choises and crap:
My idea was to set the life of attacking unit to its current life plus the damage inflicted. Now, how to get the "damage inflicted"? I've tried several ways, none of them work correctly.
Here's my pseudo:
Oh, and I'm using WE Unlimited for your information .
This thread is now SOLVED. Thank you everyone for your cooperation.
What I'm going to do is basically a lifesteal aura that works for ranged units.
What I will paste is a pseudoversion for testing, before adding the aura part, etc etc.
Anyways, disregard unit choises and crap:
My idea was to set the life of attacking unit to its current life plus the damage inflicted. Now, how to get the "damage inflicted"? I've tried several ways, none of them work correctly.
Here's my pseudo:
Code:
frfrf
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Rifleman
Actions
Unit - Set life of (Attacking unit) to ((Life of (Attacking unit)) + (Damage taken))
Special Effect - Create a special effect attached to the overhead of (Attacking unit) using Abilities\Spells\Undead\VampiricAura\VampiricAuraTarget.mdl
Oh, and I'm using WE Unlimited for your information .
This thread is now SOLVED. Thank you everyone for your cooperation.