• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Mana Void

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
Mana Void created by BlackSunEmpier

Deal damage based on mana points missing
Level 1 - 0.35 damage per mana point missing
Level 2 - 0.70 damage per mana point missing
Level 3 - 1.05 damage per mana point missing

  • Event
    • Unit - A unit Starts effect of ability
  • Conditions
    • (Ability being casted) Equal to Mana Void
  • Actions
    • Set MV_Caster = (Trggering unit)
    • Set MV_CasterOwner = (Owner of MV_Caster
    • Set MV_Target = (Targeted unit of ability being cast)
    • Set MV_TargetPoint = (Position of MV_Target)
    • Set MV_Group = (Unit whithin 250 of MV_TargetPoint matching ((((Matching unit) belongs to an enemy of MV_CasterOwner) Equal to True) and ((Matching unit) Not equal to MV_Target)))
    • Set MV_Spell = Mana Void
    • Set MV_SpellLevel = (Level of MV_Spell for MV_Caster)
    • Set MV_BaseMana = (Max mana of MV_Target)
    • Set MV_CurrentMana = (Mana of MV_Target)
    • Set MV_MissingMana = (MV_BaseMana - MV_CurrentMana)
    • Set MV_DamageConstant = 0.35
    • Set MV_BaseDamage = (MV_DamageConstant x (Real(MV_SpellLevel)))
    • Set MV_RealDamage = (MV_MissingMana x MV_BaseDamage
    • Set MV_GroupDamage = (MV_RealDamage / 5.00)
    • Unit - Cause MV_Caster to damage MV_Target, dealing MV_RealDamage of attack type Spells and damage type Sonic
    • Special Effect - Create a special effect attached to origin of MV_Target using Abilities/Spells/NightElf/Blink/BlinkTarget.mdl
    • Special Effect - Destroy last created special effect
    • -Unit Group - Pick every unit in MV_Group and do (Actions)
      • -Loop - Actions
        • Unit - Couse MV_Caster to damage (picked unit), dealing MV_GroupDamage of attack type Spells and damage type Sonic
        • Special Effect - Create a special effect attached to origin of MV_Target using Abilities/Spells/NightElf/ManaBurn/ManaBurnTarget.mdl
    • Special Effect - Destroy last created special effect
    • Custom script: call RemoveLocation (udg_MV_TargetPoint)
    • Custiom script: call DestroyGroup (udg_MV_Group)
Keywords:
DotA, mana, burn, void, night, elf, anti, mage, spell, ability, GUI, demon, hunter, group, damage, missing, point
Contents

Mana Void (Map)

Reviews
20:27, 13th Nov 2015 BPower: No update done in years. Rejected. 09:45, 5th Apr 2010 TriggerHappy: Spell is far too simple and could even be made in the object editor.

Moderator

M

Moderator

20:27, 13th Nov 2015
BPower: No update done in years. Rejected.

09:45, 5th Apr 2010
TriggerHappy:

Spell is far too simple and could even be made in the object editor.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Use (Triggering Unit) instead of setting a var :/

Also, place the Special Effect - Destroy last created special effect inside the loop.

In additon, why don't you just use
  • Unit - Cause (Triggering Unit) to damage (Picked unit), dealing ((0.35 * (Level of Mana Void for (Triggering Unit))) * (Mana of (Triggering Unit) - Current Mana of (Triggering Unit)) of attack type Spells and damage type Sonic
instead of setting thousands of variables? o_O

Furthermore, as the spell's being cast instantly, you don't need a Set MV_Target = (Targeted unit of ability being cast)

I rewrote your code a bit, look below:
  • Set MV_TargetPoint = (Position of Target unit of ability being cast)
  • Set MV_Group = (Units whithin 250 of MV_TargetPoint matching ((((Matching unit) belongs to an enemy of (Owner of (Triggering Unit)) Equal to True)))
  • Unit Group - Pick every unit in MV_Group and do (Actions)
    • Unit - Cause (Triggering Unit) to damage (Picked unit), dealing ((0.35 * (Level of Mana Void for (Triggering Unit))) * (Mana of (Triggering Unit) - Current Mana of (Triggering Unit)) of attack type Spells and damage type Sonic
  • Special Effect - Create a special effect attached to origin of MV_Target using Abilities/Spells/NightElf/Blink/BlinkTarget.mdl
  • Special Effect - Destroy last created special effect
  • Special Effect - Create a special effect attached to origin of MV_Target using Abilities/Spells/NightElf/ManaBurn/ManaBurnTarget.mdl
  • Special Effect - Destroy last created special effect
  • Custom script: call RemoveLocation (udg_MV_TargetPoint)
  • Custom script: call DestroyGroup (udg_MV_Group)
That's a bit too easy to even be cosidered a spell
 
Last edited:
Top