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!
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
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.
Ok I tested it - hmm nothing difficult I think - but it still works.
Question:
- Why you use so many! variables?
- MV_Group variable - now it pick dead unit - buildings - magic immune units - and so on - too. Maybe you should "fix" that.
Ok I tested it - hmm nothing difficult I think - but it still works.
Question:
- Why you use so many! variables?
- MV_Group variable - now it pick dead unit - buildings - magic immune units - and so on - too. Maybe you should "fix" that.
Too simple + I really think their is too many globals for such a simple spell. I mean 3/4 of the spell is variable settings. It is unoriginal, I don't like DotA spells. 2/5.
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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.