• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Cooldown Reset

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 001
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • Unit - Reset ability cooldowns for (Triggering unit)
      • Unit Group - Add (Triggering unit) to grp
      • Trigger - Turn on Untitled Trigger 002 <gen>
  • Untitled Trigger 002
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn off Untitled Trigger 001 <gen>
      • Unit Group - Pick every unit in grp and do (Actions)
        • Loop - Actions
          • Hero - Order (Picked unit) to use (Item carried by (Picked unit) of type Claws of Attack +15)
          • Unit Group - Remove (Picked unit) from grp
      • Trigger - Turn on Untitled Trigger 001 <gen>
0.02 is about the lowest you can go, otherwise it won't work.

Another option is to remove and then add back all the abilities the hero has. That will reset cooldowns.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
  • Events
    • Unit - A unit Uses an item
  • Conditions
  • Actions
    • Hero - Drop (Item being manipulated) from (Triggering unit)
    • Unit - Reset ability cooldowns for (Triggering unit)
    • Hero - Give (Item being manipulated) to (Triggering unit)
Reset ability cooldowns does not even do its job properly. Item abilities will be refreshed in the current inventory but when you drop that item and acquire it again, the cooldown will still run.
 
Level 2
Joined
Jan 24, 2012
Messages
28
Aeroblyctos, I just change the event :wink:
it's not "a unit use an item"
but "a unit start the effect of an ability" :wink:

try open your old map and see the different :thumbs_up:
 
Status
Not open for further replies.
Top