• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Setting the cooldown of a spell

Status
Not open for further replies.
Level 3
Joined
Jan 7, 2008
Messages
45
Is there any way (preferably in JASS), to set the cooldown of a spell, not reset it, just specify an real, or something like that, which will then be used as the curretnly cooldown for the ability?
For an isntance, if i have a spell by the rawcode A001, on the unit o001 and i wan't the cooldown to be 30 seconds, i could write:
SetUnitAbilityCooldown(o001,A001,30.)

Thank you very much :P
 
Is there a way to reset the cooldown of just 1 ability, instead of all the ones on the hero? If there is then you might be able to make a few versions of each ability with different cooldowns and substitute them in.
 
it is not possible to reset one ability, but you could maybe remove all abilities, reset them and then readd the others? just a fast thought.
 
Ur thoughts however, are indeed great, however, the idea was to have a skill, that would regenerate some mana, but however set all other skills to a 30 seconds cooldown, but it's okay, i just made it so it removes the double amount of life, of which u gain mana. But thanks for the help everyone, i just don't think it's possible to make the skill like i wanted to.

yes i thought about RtC, however, as some other said, i had heard it was broken with the newest patch, and the map is not single player.
 
If you want to set an ability's cooldown with a trigger then add more levels to the ability but with the same stats and only change the cooldown. Then just use the trigger Set Ability Level, and change it to the level with the different cooldown.

I use this for my map where you have the option to turn cooldowns off for all players, and what it does is just sets everyone's abilities to a specific level that keeps everything the same but has zero cooldown, so it appears as though the cooldown changed via triggers.
 
If you want to set an ability's cooldown with a trigger then add more levels to the ability but with the same stats and only change the cooldown. Then just use the trigger Set Ability Level, and change it to the level with the different cooldown.

I use this for my map where you have the option to turn cooldowns off for all players, and what it does is just sets everyone's abilities to a specific level that keeps everything the same but has zero cooldown, so it appears as though the cooldown changed via triggers.

You can always REMOVE ability then Re-add it to reset the cooldown.
 
Status
Not open for further replies.
Back
Top