• 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.

Starting cooldown on 1.30.4

Level 8
Joined
Jul 22, 2015
Messages
145
i heard only new version of Warcraft 3 have function this
  • For Unit HeroVariable, start cooldown of ability (Ability being cast) " over "10.00 seconds.
Because i only use 1.30.4 how do trick that ? because i want to create ability that start with 0 cooldown after few second (example: 2 seconds) that skill become cooldown for 20 seconds? or maybe some function i didn't know exist ?
 
Sadly, in those versions there aren't any triggers to start/set the remaining cooldown of an ability.

There are some tricks to fake it though. Usually, people will either do one of these:
  1. You can make a copy of the ability based off of "Spell Shield" with the same icon, tooltip, etc. When you want to trigger the cooldown, replace it with that ability and then have a dummy caster cast a spell on the unit to trigger the cooldown. You can find out more by checking out this system:
    In the sample map, you can see how it works with the Warden (learn the "Blink" spell and then attack her to start the cooldown).
  2. You could make your own custom cooldown system (but it will look different than the default wc3 cooldown system). For example, you could make a copy of your ability as a passive with a disabled icon--and then when you want to trigger the cooldown for your original ability, just remove the original ability and add your "cooldown" ability. Then when the cooldown is up, add back the original. It looks different than the default, but might work for your purposes.
 
Level 8
Joined
Jul 22, 2015
Messages
145
Sadly, in those versions there aren't any triggers to start/set the remaining cooldown of an ability.

There are some tricks to fake it though. Usually, people will either do one of these:
  1. You can make a copy of the ability based off of "Spell Shield" with the same icon, tooltip, etc. When you want to trigger the cooldown, replace it with that ability and then have a dummy caster cast a spell on the unit to trigger the cooldown. You can find out more by checking out this system:
    In the sample map, you can see how it works with the Warden (learn the "Blink" spell and then attack her to start the cooldown).
  2. You could make your own custom cooldown system (but it will look different than the default wc3 cooldown system). For example, you could make a copy of your ability as a passive with a disabled icon--and then when you want to trigger the cooldown for your original ability, just remove the original ability and add your "cooldown" ability. Then when the cooldown is up, add back the original. It looks different than the default, but might work for your purposes.
I will try that, thanks 😁
 
Top