[Spell] Healing ability for a tower

Status
Not open for further replies.
Level 6
Joined
Sep 19, 2006
Messages
179
This is for the activation.
  • Healthy Cure second effect ON
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked unit) has buff Healthy Cure ) Equal to True
        • Then - Actions
          • Unit - Add Healthy Cure adv. (Bonus) to (Picked unit)
        • Else - Actions
This is for the deactivation.
  • Healthy Cure second effect OFF
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked unit) has buff Healthy Cure ) Equal to False
        • Then - Actions
          • Unit - Remove Healthy Cure adv. (Bonus) from (Picked unit)
        • Else - Actions
Healthy Cure adv. gives 100 hit point to friendly units, but this doesn't work. Any help?
 
Level 9
Joined
Apr 23, 2011
Messages
527
How does it not work? No effect is produced? Debug the trigger by adding messages throughout the actions to see what doesn't work.

Do you want to heal the unit or simply increase its max HP (which is how I see what your ability does)?
 
Level 6
Joined
Sep 19, 2006
Messages
179
While I still need 2 triggers, one for the activation and another for deactivation, then how am I supposed to fit the code there?
 
Status
Not open for further replies.
Top