• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell Request

Status
Not open for further replies.
Level 5
Joined
Jul 17, 2010
Messages
140
When using the skill there is a 20% to heal the amount of damage the skill dealt.

and 5% to heal units around the caster with the same amount.

Thank you in advance!
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
This should work. Change the heal amount to match the damage amount at the top. Range is the 512 in the middle.
  • Heal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to <YOUR_ABIL>
    • Actions
      • Set SPELL_Heal = (150.00 + (50.00 x (Real((Level of <YOUR_ABIL> for (Triggering unit))))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 5) Less than or equal to 1
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + SPELL_Heal)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 20) Less than or equal to 1
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Set TempPoint = (Position of (Triggering unit))
          • Unit Group - Pick every unit in (Units within 512.00 of TempPoint) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
                  • ((Picked unit) is A structure) Equal to False
                  • ((Picked unit) is dead) Equal to False
                  • (Picked unit) Not equal to (Triggering unit)
                • Then - Actions
                  • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + SPELL_Heal)
                • Else - Actions
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
 
Status
Not open for further replies.
Top