• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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