1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Ride into the sunset with the 32nd Modeling Contest. The contest is optionally paired. Best of luck, people!
    Dismiss Notice
  4. This adventure has come to an end. Congratulate our heroes in the 16th Mini Mapping Contest Results.
    Dismiss Notice
  5. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  6. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] periodically increasing creeps max HP

Discussion in 'Triggers & Scripts' started by oxxo, Feb 24, 2009.

  1. oxxo

    oxxo

    Joined:
    Jan 14, 2008
    Messages:
    362
    Resources:
    0
    Resources:
    0
    how do you periodically increase the creeps max HP in an aos map ?

    what are the alternatives? wich one is the simplest?

    by periodically i mean time intervals of 5 minutes, not couple of seconds.
     
  2. Aeroblyctos

    Aeroblyctos

    Joined:
    Aug 14, 2006
    Messages:
    6,597
    Resources:
    24
    Models:
    1
    Packs:
    1
    Maps:
    22
    Resources:
    24
    Add an upgrade for them. Then give that upgrade like 666 levels and increase the level for example every 666 second. Does that sounds devil?
     
  3. Xarwin

    Xarwin

    Joined:
    Nov 16, 2006
    Messages:
    2,233
    Resources:
    3
    Icons:
    1
    Maps:
    1
    Tutorials:
    1
    Resources:
    3
    Actualy, you can use item abilities for that.
    Group the units you want to increase their hit points, and add the 'item life bonus' to it.
    When your timer is done, you just remove the ability.

    Otherwise, you can use the 'Item Permanent Life Gain'.
    I'm not sure, but I think if you add negative values to it, you may also decrease the hit points.

    Upgrades is a fine alternative too if you want to make it easy.
    Yet remember, if the player is a human, he will hear the sounds of 'update completed'!
     
  4. oxxo

    oxxo

    Joined:
    Jan 14, 2008
    Messages:
    362
    Resources:
    0
    Resources:
    0
    thanks people!
     
  5. Vegavak

    Vegavak

    Joined:
    Mar 16, 2006
    Messages:
    1,010
    Resources:
    0
    Resources:
    0
    Or just adjust the Neutral Hostile player's handicap.

    If you do that, all you need is a real variable, and a timer script that adds to that real, adjusting handicap as it progresses. Something like:

    Every X seconds
    set handicap = handicap + whatever boost you want
    Give Player handicap = handicap
     
  6. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,930
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    I would advise a combination of upping handicap (it only works up to a certain % increase). Past that then eithor use upgrades of large denominators followed by handicap reduction for best efficency, or if you really want to up it high, use a HP tome system as those allow you to set unit HP directly via triggers.
     
  7. Element of Water

    Element of Water

    Joined:
    Aug 3, 2008
    Messages:
    2,298
    Resources:
    5
    Spells:
    3
    Tutorials:
    1
    JASS:
    1
    Resources:
    5
    Isn't there a great bug for this?
     
  8. oxxo

    oxxo

    Joined:
    Jan 14, 2008
    Messages:
    362
    Resources:
    0
    Resources:
    0
    actually using a simple custom upgrade based on the grunts hp-increasing upgrade works perfectly. for my purposes.

    and in my case it is clearly the easiest and most solid alternative.

    i highly suspects its the common standard for increasing the creeps hitpoints in any aos map periodically as players grow stronger.

    thanks again to everyone for the helpful input!
     
  9. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,930
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Upgrades have limated levels thou. Thus there will always be a maximum.

    Also why increase load times when adjusting handicap has a simlar affect and maximum.

    However if both methods cap out, you have to then rely on methods like tomes to keep raising the hitpoints.
     
  10. Jerrin

    Jerrin

    Joined:
    Apr 24, 2005
    Messages:
    61
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I'd say that chances are that they won't cap out unless he's using extreme hp/damage amounts, and for that reason he should go with the method he finds simplest.
     
  11. Vegavak

    Vegavak

    Joined:
    Mar 16, 2006
    Messages:
    1,010
    Resources:
    0
    Resources:
    0
    Handicap is better for performance.

    Upgrades are just lazy.
     
  12. Lord_BoNes

    Lord_BoNes

    Joined:
    Sep 5, 2007
    Messages:
    264
    Resources:
    0
    Resources:
    0
    I did mine using creeps that are hero units, and leveling them up. But, that's just me.