• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Heal Passive Spell

Status
Not open for further replies.
something similar to this:
  • Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set VariableSet Hero = (Last created unit)
      • Set VariableSet MaxHp_Limit = 100
  • Heal
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MaxHp_Counter Less than MaxHp_Limit
        • Then - Actions
          • Set VariableSet MaxHp_Counter = (MaxHp_Counter + 1)
          • Unit - Set Max HP of Hero to ((Max HP of Hero) + 1)
        • Else - Actions
      • Unit - Set life of Hero to ((Life of Hero) + 1.00)
 
something similar to this:
  • Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set VariableSet Hero = (Last created unit)
      • Set VariableSet MaxHp_Limit = 100
  • Heal
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • MaxHp_Counter Less than MaxHp_Limit
        • Then - Actions
          • Set VariableSet MaxHp_Counter = (MaxHp_Counter + 1)
          • Unit - Set Max HP of Hero to ((Max HP of Hero) + 1)
        • Else - Actions
      • Unit - Set life of Hero to ((Life of Hero) + 1.00)
This trigger change max hp?
 
If the unit you intend to use this for doesn't consume mana, you could give it a mana bar and add mana shield.
Give it 1 mana regen per second, 1 mana for 1 damage, order to enable it, remove the animation, and hide the 'turn off' button.

If this is no option, another way is to save a variable for the unit that gains +1 every second. Then use a damage engine to subtract that variable from the damage received.
 
Add an ability to the unit that increases Hit Points. Not sure if the Levels work on the Hp Bonus abilities though, because some Item Abilities are buggy. You could also try Upgrades with multiple levels.

Pretty simple concept, every 1.00 second you increase the Level of the ability/upgrade, increasing the unit's hp by 1.
 
Status
Not open for further replies.
Back
Top