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

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 39
Joined
Feb 27, 2007
Messages
5,010
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