Chain lightning with Mana drain

darksaint

New Member
Reaction score
0
I am newbie to warcraft editor (at least i know trigger function and custom spell).I want to create a skill that same as the Medusa's skill in Dota,called Mystic Snake,it is same as chain lightning but it will drain target mana and return to user.I know it must need trigger to do but i don't even understand dummy unit function......:banghead: Can someone help me make this spell? >.<
 

bboykonjo

New Member
Reaction score
1
By using a dummy unit, u add a mana drain skill to an invisible unit. In this way u could easily trigger the dummy(invisible unit) to drain the mana instead of the HERO casting the skill.
 

NeuroToxin

New Member
Reaction score
46
lolno Something like this
Trigger:
  • Events
    • Unit - A Unit starts the effect of an ability
    • Conditions
    • Ability being cast equal to Mystic Snake
    • Actions
    • set caster = Triggering unit
    • set casterstartlocation = Position of (caster)
    • set targetunit = Target unit of ability being cast
    • set targetunitlocation = Position of (targetunit)
    • set angle = Angle between targetunitlocation and casterloc
    • set casterpolar = Position of (caster) offset by 75 towards angle
    • Unit - Create 1 DummyUnit for (Owner of (caster)) at (casterpolar) facing angle
    • set DummyUnit = last created unit
    • Unit Group - Add caster to castergroup
    • Trigger - Turn on MovetheSnake


Trigger:
  • Events
    • Time - Every .04 seconds
    • Conditions
    • Actions
    • if - Conditions
    • Number of units in castergroup is equal to 0
    • Then - Actions
    • Trigger - Turn off (This Trigger)
    • Else - Actions
    • Custom Script: call RemoveLocation(udg_targetunitlocation)
    • Custom Script: call RemoveLocation(udg_dummyloc)
    • Custom Script: call RemoveLocation(udg_newmovelocation)
    • set targetunitlocation = Position of (targetunit)
    • set dummyloc = Position of (DummyUnit)
    • set angle = Angle between dummyloc and targetunitlocation
    • set newmovelocation = dummyloc offset by 10 towards angle
    • Unit - Move unit instantly to newmovelocation facing angle


and if doing something like this doesnt work (Its not complete!) then just edit chain lightning, create a dummy unit, find a damage detection system, and detect when the units take damage, reduce the mana of the targets hit, give the witch back mana, and then done. If you dont know how to continue the spell, just find a dota spell and use it
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top