• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Set Cooldown of Item to Value of Timer?

Status
Not open for further replies.
Level 22
Joined
Mar 16, 2008
Messages
981
I don't see any trigger action that can set ability cooldown. Is this possible? If it is, how can I convert timer value to integer?

Main problem is when you drop an ankh and pick it up again, cooldown gets set to zero.

Thank you for reading.
 
Last edited:
Level 22
Joined
Mar 16, 2008
Messages
981
would this specifically work for an item? There's already a GUI option for unit ability.

Let's say I have an ankh with a 180 sec cooldown, and I want to proc the cooldown without using the item and start the cooldown at say 180 when it's picked up. I need to re-set the cooldown because each time this item is picked up, the cooldown is reset for some reason.

  • Unit - For Unit (Picked unit), start cooldown of ability Animate Dead " over "50.00 seconds.
  • Custom script: call native SetUnitAbilityCooldown udg_Yellow_Hero, integer abilId, integer level, real cooldown returns nothing
 
Last edited:
Level 25
Joined
Feb 27, 2019
Messages
846
When I add a cooldown to ankh item, nothing happens. The cooldown never triggers even though I have I have several ankhs in my inventory when the hero dies. I am pretty sure that should work though and I am very confused. Am I doing something wrong or are you talking about some other item? Another possibility is that my version of warcraft has for some unfathomable but not surprising reason fucked up ankh cooldown.
 
Level 22
Joined
Mar 16, 2008
Messages
981
It's operating by trigger/timers so the cooldown display is more just to give an indication to the play what the cooldown is. Do you know some way to change the displayed cooldown of an item/item ability?
 
Status
Not open for further replies.
Top