Chance upon Heal to Heal another

Nyrano

New Member
Reaction score
4
Hi,

I have got a spell (basic 'Heal') that should have 25% chance upon cast, to heal 1 randomly chosen target within 300 of the healed target.

This is what I have at the moment.
Trigger:
  • Heal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Heal (HEALER)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 4) Equal to 1
          • (Level of Heal (HEALER) for (Casting unit)) Equal to 1
        • Then - Actions
          • Set TempUnitGroup = (Units within 300.00 of (Position of (Target unit of ability being cast)) matching (((Owner of (Picked unit)) is an enemy of Player 9 (Gray)) Equal to True))
          • Unit Group - Pick every unit in (Random 1 units from TempUnitGroup) and do (Actions)
            • Loop - Actions
              • Set TempPoint = (Position of (Picked unit))
              • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Heal\HealTarget.mdl
              • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 140.00)
              • Special Effect - Destroy (Last created special effect)
              • Custom script: call RemoveLocation(udg_TempPoint)
          • Custom script: call DestroyGroup(udg_TempUnitGroup)
        • Else - Actions


Player 9 = The enemy, for clarification.

EDIT: it's not proccing, even after 100 tries. Guess it's malfunction within the trigger.
 

Wesulmoon

New Member
Reaction score
6
Why don't u use dummy unit, and give that heal spell to it and make it cast on random unit in range of 300 to casting unit... ???
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top