[Trigger] Lifestealing Attack

Status
Not open for further replies.
Level 4
Joined
Aug 13, 2008
Messages
47
Ok heres the trigger
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Blood Strike
  • Actions
    • Special Effect - Create a special effect attached to the weapon of (Triggering unit) using Abilities\Weapons\HydraliskImpact\HydraliskImpact.mdl
    • Unit - Cause Caster to damage Victim, dealing ((Real((Strength of Caster (Include bonuses)))) x 2.00) damage of attack type Hero and damage type Normal
    • Unit - Cause Caster to damage Victim, dealing 25.00 damage of attack type Hero and damage type Normal
    • Wait 0.50 seconds
    • Special Effect - Destroy (Last created special effect)
Now as you can see ive completed the damage part of the spell, but i want the spell to also steal 1/4 of the damage. how do i do this?
 
k the negative damage idea isnt working
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Blood Strike
  • Actions
    • Set Caster = (Casting unit)
    • Set Victim = (Target unit of ability being cast)
    • Special Effect - Create a special effect attached to the weapon of (Triggering unit) using Abilities\Weapons\HydraliskImpact\HydraliskImpact.mdl
    • Unit - Cause Caster to damage Victim, dealing ((Real((Strength of Caster (Include bonuses)))) x 2.00) damage of attack type Hero and damage type Normal
    • Unit - Cause Caster to damage Victim, dealing 25.00 damage of attack type Hero and damage type Normal
    • Unit - Cause Caster to damage Caster, dealing ((Real((Strength of Caster (Include bonuses)))) x -0.50) damage of attack type Hero and damage type Normal
    • Unit - Cause Caster to damage Caster, dealing -4.00 damage of attack type Hero and damage type Normal
    • Wait 0.50 seconds
    • Special Effect - Destroy (Last created special effect)
what am i doing wrong?
 
Status
Not open for further replies.
Back
Top