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] Automatically use HP potions when HP is low...

Discussion in 'Triggers & Scripts' started by ivofena, Jan 17, 2014.

  1. ivofena

    ivofena

    Joined:
    Jan 17, 2014
    Messages:
    129
    Resources:
    0
    Resources:
    0
    If you can make it do it, please make it do it.
     
  2. Quilnez

    Quilnez

    Joined:
    Oct 12, 2011
    Messages:
    3,295
    Resources:
    37
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    2
    JASS:
    4
    Resources:
    37
    the last map I attached:
    when the hero is in combat and the hp lower than 20% the Hero ordered to use the item and after 1 second is ordered to move to a point, you can make it nearly instant after using item by changing Order_Delay to anything below 0.04. what else do you want? the system also allows you to give any order you want, harvest, stop, hold, patrol, anything in warcraft 3.. x_X I know what you want, is using item without breaking prev order. it's imposible, so I make this system for you.. just set the order string, target, delay, oh I think it couldn't be easier..
     
  3. ivofena

    ivofena

    Joined:
    Jan 17, 2014
    Messages:
    129
    Resources:
    0
    Resources:
    0
    That's what I wanted to know:
    So, I guess my solution with the fake cooldown IS the best way to deal with that. Thank you for your trouble again.
     
  4. Quilnez

    Quilnez

    Joined:
    Oct 12, 2011
    Messages:
    3,295
    Resources:
    37
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    2
    JASS:
    4
    Resources:
    37
    bad idea, but is your choice, good luck..
     
  5. ivofena

    ivofena

    Joined:
    Jan 17, 2014
    Messages:
    129
    Resources:
    0
    Resources:
    0
    Maybe it is a bad idea, but seems to work fine.
     
    Last edited: Feb 13, 2014
  6. DysfunctionaI

    DysfunctionaI

    Joined:
    Mar 6, 2006
    Messages:
    281
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    The map I linked? That's not my system, but it appears to be fully MUI and it doesn't create any events. It also solves this problem but I don't have time to change it into what the OP wants.
     
  7. Edit Master

    Edit Master

    Joined:
    Mar 6, 2014
    Messages:
    1
    Resources:
    0
    Resources:
    0
    hey I think you want this one

    :ogre_datass:
    this is all the powers I got I made this trigger just for you...
    hmmm,. this trigger has no cooldown ,.. and for this to work you must remove the cooldown of potions for this to work
    I can still think the way how can it make a cooldown bt different triggers wait for my others ..cause Iam tired


    BTW!!! just click he picture I'm new here so I don't really now how to post a picture or something just like what others is doing
    .
    okay tnx... :D
     

    Attached Files:

    Last edited: Mar 6, 2014
  8. ivofena

    ivofena

    Joined:
    Jan 17, 2014
    Messages:
    129
    Resources:
    0
    Resources:
    0
    Thank you for taking the time to make this, but it's not what I'm looking for.
     
  9. LordDz

    LordDz

    Joined:
    May 11, 2007
    Messages:
    4,305
    Resources:
    0
    Resources:
    0
    This should work for you. It doesn't care about cooldowns, but you can probably add that in if you really really really need it.

    It currently uses the health of items for the healing amount, nobody does attack items anyhow, if you do your mother should teach you some maners. Otherwise just check which item it is and set the health that way.
     
  10. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    Since you know how to detect when a unit falls below 250 hp, why not just add 250 or 500 or whatever hp you want to it instead of ordering it to use a potion via triggers and then remove a potion or remove a charge from a potion in its inventory via one of the methods mentioned.
     
  11. LordDz

    LordDz

    Joined:
    May 11, 2007
    Messages:
    4,305
    Resources:
    0
    Resources:
    0
    Because then you will have an unkillable unit?
     
  12. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    no i mean set current life = current life + 250 not add bonus 250 life to its total
     
  13. ivofena

    ivofena

    Joined:
    Jan 17, 2014
    Messages:
    129
    Resources:
    0
    Resources:
    0
    Thanks guys, but you see? That's the thing. I want the potion to have a cooldown. Look at may test map and please try to make it better.
     

    Attached Files:

  14. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    here u go, the trick was to use a different cooldown group. just order the mountain king to move around after attacking something
     

    Attached Files:

  15. ivofena

    ivofena

    Joined:
    Jan 17, 2014
    Messages:
    129
    Resources:
    0
    Resources:
    0
    Good idea, but the refresh of the CD is way confusing. Thanks anyway.

    P.S.: +Rep
     
    Last edited: Mar 19, 2014
  16. JaysProjex

    JaysProjex

    Joined:
    Mar 17, 2007
    Messages:
    417
    Resources:
    4
    Maps:
    4
    Resources:
    4
    Edited: Upon Request
     
    Last edited: Mar 20, 2014