Aoe passive heal spell

Status
Not open for further replies.
Level 7
Joined
Nov 19, 2007
Messages
253
Hey all,

I want to make aoe passive heal but i dont have any idea how to do that can anyone help me(give basics or smt..) ? i was using perm immolation but it reduces heal because of armor so i need trigger or somehow change perm immolation damage type from magic to chaos or smt..
 
Level 7
Joined
Nov 19, 2007
Messages
253
Well i need heal every 3 seconds not constant so unholy aura isnt working for me and i need direct healing like every 3 seconds 50 health not 50 health over 3 seconds
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
This should do it:

  • Untitled Trigger 098
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Heal_Units and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_1 = (Position of (Picked unit))
          • Set Temp_Integer_1 = (Level of Heal for (Picked unit))
          • Set Temp_Group_2 = (Units within 512.00 of Temp_Loc_1 matching ((((Owner of (Matching unit)) is an ally of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
          • Unit Group - Pick every unit in Temp_Group_2 and do (Actions)
            • Loop - Actions
              • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (25.00 + (15.00 x (Real(Temp_Integer_1)))))
          • Custom script: call DestroyGroup(udg_Temp_Group_1)
          • Custom script: call RemoveLocation(udg_Temp_Loc_1)
Add units to that heal group when they learn the ability, and remove when they die if needed. Add more conditions for picked units, like <is not structure> etc.
 
Level 7
Joined
Nov 19, 2007
Messages
253
hmm this is very confusing.. ill try this and ill say if this works

EDIT: K i made trigger but i dont know if its working properly heres how it looks:
  • Blessing of Salvation
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Blessing of Salvation
    • Actions
      • Set BosHealerUnitGroup = (Units in (Entire map) matching ((Level of Blessing of Salvation for (Learning Hero)) Greater than or equal to 1))
  • Blessing of Salvation2
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in BosHealerUnitGroup and do (Actions)
        • Loop - Actions
          • Set BosPoint = (Position of (Picked unit))
          • Set BosLevel = (Level of Blessing of Salvation for (Picked unit))
          • Set BosHealCount = ((Real(BosLevel)) x 20.00)
          • Set BosHealedUnitGroup = (Units within 300.00 of BosPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of (Owner of (Picked unit))) Equal to True))))
          • Unit Group - Pick every unit in BosHealedUnitGroup and do (Actions)
            • Loop - Actions
              • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + BosHealCount)
          • Custom script: call RemoveLocation (udg_BosPoint)
          • Custom script: call DestroyGroup (udg_BosHealedUnitGroup)
Well i want to ask one more thing how do i add special effect to this abillity? when i put se in Healed unit group loop then effect is show on all units in entire map. How do I make it to shown only on healed units?
 
Last edited:
Level 3
Joined
Jul 3, 2009
Messages
31
Well i want to ask one more thing how do i add special effect to this abillity? when i put se in Healed unit group loop then effect is show on all units in entire map. How do I make it to shown only on healed units?

  • Actions
    • Unit Group - Pick every unit in Temp_Group_2 and do (Actions)
      • Loop - Actions
        • Special Effect - Create Special Effect on (Picked Unit) [what effect you want.]
EDIT:
Or you can make your BoS a dummy Immolation with NO damage and add effects there. haha..
 
Level 7
Joined
Nov 19, 2007
Messages
253
  • Unit Group - Pick every unit in BosHealedUnitGroup and do (Actions)
    • Loop - Actions
      • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + BosHealCount)
      • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
like i said special effect on all units in entire map..
dummy ability immolation isnt working. why? because its not acurrate and i dont want it to work like that.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Updated triggers, I tested them and they work:

  • Untitled Trigger 100
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to *ability*
    • Actions
      • Unit Group - Add (Triggering unit) to Heal_Group
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Untitled Trigger 098 <gen> is on) Equal to False
        • Then - Actions
          • Trigger - Turn on Untitled Trigger 098 <gen>
        • Else - Actions
  • Untitled Trigger 098
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Heal_Group and do (Actions)
        • Loop - Actions
          • Set Temp_Loc_1 = (Position of (Picked unit))
          • Set Temp_Integer_1 = (Level of *ability* for (Picked unit))
          • Set Temp_Group_2 = (Units within 512.00 of Temp_Loc_1 matching ((((Owner of (Matching unit)) is an ally of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
          • Unit Group - Pick every unit in Temp_Group_2 and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Life of (Picked unit)) Less than (Max life of (Picked unit))
                • Then - Actions
                  • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (25.00 + (15.00 x (Real(Temp_Integer_1)))))
                  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
                  • Special Effect - Destroy (Last created special effect)
                • Else - Actions
          • Custom script: call DestroyGroup(udg_Temp_Group_1)
          • Custom script: call RemoveLocation(udg_Temp_Loc_1)
 
Status
Not open for further replies.
Top