Hey guys, I've got a spell I need to implement, and I know how it should (theoretically) work, but I'm confused as to how I should set it up in JASS (I'd prefer JASS, but vJASS would be ok as well I guess)...
Essence Flux: "Target a location on the ground with malefic energy - all hostile heroes within 500 AoE will be slowed by N% for the duration of the spell (10 seconds), as well as lose Z% of their total mana over time (this mana is stolen by the caster)."
So what this basically does is target all hostile heroes within the AoE (spell is ranged, has a circular reticule), smacks them with a temporary movespeed slow (dummy pops in and casts it), and bleeds their mana (which the casting hero then receives).
The trouble I'm having with is setting up the mana leak. I would guess it needs some kind of periodic timer or somesuch? Also, how do I make it so that a unique timer runs for each enemy hero caught by the spell (since the caster steals mana from multiple enemy heroes caught in the AoE)?
Thanks for any help. :shades:
Essence Flux: "Target a location on the ground with malefic energy - all hostile heroes within 500 AoE will be slowed by N% for the duration of the spell (10 seconds), as well as lose Z% of their total mana over time (this mana is stolen by the caster)."
Level 1: Enemy heroes lose a total of 1% of their mana, and have their movement speed slowed by 4%.
Level 2: Enemy heroes lose a total of 2% of their mana, and have their movement speed slowed by 8%.
Level 3: Enemy heroes lose a total of 3% of their mana, and have their movement speed slowed by 12%.
Level 4: Enemy heroes lose a total of 4% of their mana, and have their movement speed slowed by 16%.
Level 5: Enemy heroes lose a total of 5% of their mana, and have their movement speed slowed by 20%.
So what this basically does is target all hostile heroes within the AoE (spell is ranged, has a circular reticule), smacks them with a temporary movespeed slow (dummy pops in and casts it), and bleeds their mana (which the casting hero then receives).
The trouble I'm having with is setting up the mana leak. I would guess it needs some kind of periodic timer or somesuch? Also, how do I make it so that a unique timer runs for each enemy hero caught by the spell (since the caster steals mana from multiple enemy heroes caught in the AoE)?
Thanks for any help. :shades: