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:
- 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:
----------------------------------------------------------------------------- Sysem Code with description of the System ----------------------------------------------------------------------------- // ----------------------------------------------------------------...
www.hiveworkshop.com
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).
- 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.