• 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.

[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?
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Add an aura?
Else you'd need to use a on-hit system and bla bla bla, don't do this.

Heard about invisible abilities, or disabled spell books? that's what you need.

Oh well, it seems like Thehelper put out their world editor site, so I'll search something here.

Ok, there was one on the hive too, click here.
 
Level 4
Joined
Aug 13, 2008
Messages
47
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.
Top