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

[Spell] Mana Steal - How to do?

Status
Not open for further replies.
Level 3
Joined
Feb 22, 2013
Messages
25
Hey everyone! I am working on a Blood Elf project right now, that may or may not be released into an open, late Beta soon... but I need help with a spell/ability that I do not really know how to make.

Think of it this way; You want a unit be able to steal mana upon auto-attacking an enemy unit, or creep. Sort of like how life steal works, except... well, mana! How do I do this?
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
You need a damage engine (Preferably Bribe's system: Link). Then whenever that unit attacks, add mana to it through trigger.

EDIT: Example trigger
  • Mana Steal
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • (Unit-type of DamageEventSource) Equal to Blood Mage
    • Actions
      • Unit - Set mana of DamageEventSource to ((Mana of DamageEventSource) + 50.00)
 
Status
Not open for further replies.
Top