1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Heal Passive Spell

Discussion in 'World Editor Help Zone' started by DexterFstone, Oct 7, 2020.

  1. DexterFstone

    DexterFstone

    Joined:
    Sep 19, 2020
    Messages:
    115
    Resources:
    0
    Resources:
    0
    How to make Heal passive spell, add 1 hp per sec to life and Go beyond max life

    for example (hero hp 100/100 after 5 sec 105/100) how to do that? The green color is max hp
     
  2. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    2,483
    Resources:
    0
    Resources:
    0
    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)
     
  3. DexterFstone

    DexterFstone

    Joined:
    Sep 19, 2020
    Messages:
    115
    Resources:
    0
    Resources:
    0
    This trigger change max hp?
     
  4. DoomBlade

    DoomBlade

    Joined:
    Feb 5, 2018
    Messages:
    380
    Resources:
    0
    Resources:
    0
    Yes.
     
  5. DexterFstone

    DexterFstone

    Joined:
    Sep 19, 2020
    Messages:
    115
    Resources:
    0
    Resources:
    0
    I can't find this trigger, maybe my wc3 ver is old,(1.26)Is there another way?
     
  6. pr114

    pr114

    Joined:
    Mar 26, 2017
    Messages:
    261
    Resources:
    0
    Resources:
    0
    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.
     
  7. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    2,483
    Resources:
    0
    Resources:
    0
    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.
     
  8. DexterFstone

    DexterFstone

    Joined:
    Sep 19, 2020
    Messages:
    115
    Resources:
    0
    Resources:
    0
    Very well, How do I put a number on the spell icon? (Is like skill 3 pudge in dota map)
     
  9. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    2,483
    Resources:
    0
    Resources:
    0
    On 1.26? Don't think you can do anything like that unless you create 100 icons yourself.
     
  10. DexterFstone

    DexterFstone

    Joined:
    Sep 19, 2020
    Messages:
    115
    Resources:
    0
    Resources:
    0
    :) ok nevermind tnx for help

    What version do they build the dota map with, which only runs at 1.26, if not at 1.26?

    And if I update my game and make make can i play map online with someone's in patch 1.26?
     
    Last edited: Oct 9, 2020