• 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.

Healing Rays (MUI, Easy to configure)

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
  • Like
Reactions: Blood Raven
Places healing rays on ground healing every friendly unit with X range.
This is my first MUI spell inspired by Bribe's MUI spell template
Credits:
Bribe


Lvl 1 -Aoe 140, Duration 7 seconds
Lvl 2 -Aoe 150, Duration 8 seconds
Lvl 3 -Aoe 160, Duration 9 seconds

  • HolyRaysCast
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to HolyRays
    • Actions
      • Set HolyRays_Point = (Target point of ability being cast)
      • Unit - Create 1 Dummy (Vexorian, Anitarf, Infrane) for (Owner of (Triggering unit)) at HolyRays_Point facing Default building facing degrees
      • Set HolyRays_TempUnit = (Last created unit)
      • Set HolyRaysID = (Custom value of HolyRays_TempUnit)
      • Set HolyRays_Caster[HolyRaysID] = (Triggering unit)
      • Set HolyRays_Real = (Real((Level of (Ability being cast) for HolyRays_Caster[HolyRaysID])))
      • Set HolyRays_Heal[HolyRaysID] = (HolyRays_Real x 1.00)
      • Set HolyRays_Duration[HolyRaysID] = (6.00 + HolyRays_Real)
      • Set HolyRays_Radius[HolyRaysID] = (130.00 + (HolyRays_Real x 10.00))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (HolyRays_Group is empty) Equal to True
        • Then - Actions
          • Trigger - Turn on HolyRaysLoop <gen>
        • Else - Actions
      • Unit Group - Add HolyRays_TempUnit to HolyRays_Group
      • Custom script: call RemoveLocation(udg_HolyRays_Point)
  • HolyRaysLoop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in HolyRays_Group and do (Actions)
        • Loop - Actions
          • Special Effect - Destroy HolyRays_Effect[HolyRaysID]
          • Special Effect - Create a special effect at (Position of HolyRays_TempUnit) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl
          • Set HolyRays_Effect[HolyRaysID] = (Last created special effect)
          • Set HolyRays_TempUnit = (Picked unit)
          • Set HolyRays_Center = (Position of HolyRays_TempUnit)
          • Set HolyRaysID = (Custom value of HolyRays_TempUnit)
          • Set HolyRays_Player = (Owner of HolyRays_TempUnit)
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units within HolyRays_Radius[HolyRaysID] of HolyRays_Center) and do (Actions)
            • Loop - Actions
              • Set HolyRays_Target = (Picked unit)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (HolyRays_Target belongs to an enemy of HolyRays_Player) Not equal to True
                • Then - Actions
                  • Unit - Set life of HolyRays_Target to ((Life of HolyRays_Target) + HolyRays_Heal[HolyRaysID])
                • Else - Actions
          • Custom script: call RemoveLocation(udg_HolyRays_Center)
          • Set HolyRays_Duration[HolyRaysID] = (HolyRays_Duration[HolyRaysID] - 0.03)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • HolyRays_Duration[HolyRaysID] Less than or equal to 0.00
            • Then - Actions
              • Unit Group - Remove HolyRays_TempUnit from HolyRays_Group
              • Unit - Remove HolyRays_TempUnit from the game
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (HolyRays_Group is empty) Equal to True
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                • Else - Actions
            • Else - Actions
Contents

Holy Rays 1.00 (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. You spam effects Leaks a location when you create an effect in the looping trigger Make tooltips look more like standard Blizzard ability tooltips Use Starts the effect of an ability...

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

Reviewed by Maker, HealingRays1.00, 26th Jan 2012

  • You spam effects
  • Leaks a location when you create an effect in the looping trigger
  • Make tooltips look more like standard Blizzard ability tooltips
  • Use Starts the effect of an ability event
  • You only need one point variable for the ability, not two
  • Filter out dead units from being healed
  • Remove invulnerability ability from the dummy, it has Locust
  • Add importing instructions into the map file

If the only purpose of the dummy is to provide the custom value so you know which instance you're dealing with, then in my opinion it would be better to use Hanky's dynamic indexing and ditch unit indexer and the dummy unit.
 
Top