• 🏆 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!

Healing Spell

Status
Not open for further replies.
Level 3
Joined
Mar 25, 2008
Messages
56
Hi i want to do a spell that damages enemies for a certain damage and heals allies for half that amount, ive tried using death coil but i cant target humans and tried using holy light but i cant heal undead allys, anyone got tips for me? thanks
 
Last edited:
  • Spell
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to X
  • Actions
    • Set X_Damage = 300.00 // This is a "Real" variable.
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • ((Target unit of ability being cast) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
      • Then - Actions
        • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast) dealing X_Damage of attack type Spells and damage type Normal
      • Else - Actions
        • Unit - Set life of (Target unit of ability being cast) to (((Life of (Target unit of ability being cast)) + ((X_Damage) / 2))
References:
[•] http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/variables-5896/
[•] http://www.hiveworkshop.com/forums/...als-279/basics-trigger-enhancing-spells-7334/
[•] http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/basics-triggers-32113/

P.S. Base the spell off "Channel" ability.
 
Level 3
Joined
Mar 25, 2008
Messages
56
thanks loads for the fast reply

just asking issit possible if i make the damage variable a arithmetic cause i wanna make the damage done based on skill level - i know how to do that part just wondering if there would be a leak
 
Status
Not open for further replies.
Top