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. Join the 6th Melee Mapping Contest for a chance to have your map featured in this year's Hive Cup!
    Dismiss Notice
  4. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  5. Do you hear boss music? It's the 17th Mini Mapping Contest!
    Dismiss Notice
  6. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    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.

[JASS] IssueImmediateOrder

Discussion in 'Triggers & Scripts' started by McQvaBlood, Nov 13, 2014.

  1. McQvaBlood

    McQvaBlood

    Joined:
    Jul 3, 2010
    Messages:
    529
    Resources:
    44
    Packs:
    4
    Maps:
    40
    Resources:
    44
    I've been trying to put together a spell that has a passive cooldown.

    Preparation [PASSIVE]
    If Hero does not attack for 10 / 9 / 8 / 7 / 6 / 5 / 4 seconds, it gains 400% attack speed for 5 attacks.


    Basically, every time the unit attacks, the cooldown of this skill has to start. For this I gave it an Evasion and when I want the cooldown to start, I replace it with a Berserk spell that I order the unit to immediately use.

    However, this Berserk spell disrupts the unit's current orders, cancelling its attack. Is there a way to make a unit use Berserk without it stopping? I used Berserk in the first place because I know it doesn't cancel the unit's orders when the player uses it. So what's the difference and is there a way to work around this?

    EDIT: For clarity, the Evasion and Berserk spells are dummy spells, they don't give a chance to evade or attack or movement speed and Berserk's buff is immediately removed.
     
  2. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,035
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    The IssueOrder natives always act interruptive. You can replace the ability by a "Spell Shield" (ANss) and trigger it via a hostile dummy casting "Banish" for example.
     
  3. McQvaBlood

    McQvaBlood

    Joined:
    Jul 3, 2010
    Messages:
    529
    Resources:
    44
    Packs:
    4
    Maps:
    40
    Resources:
    44
    Ah, that's eloquent. Thanks for the help.