HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Cooldown Sharing

07-07-2006, 10:02 PM#1
EveningStar
Hi,

I have a hero which changes form (via Robo-goblin form). I want one of his abilities to change each time he morphs from one to the other. However, I can't seem to properly share the cooldown for the 2 individual abilities. Can anyone advise me on how to get cooldown sharing working without using a spellbook (because I don't want an extra button click). Thanks for your help!
07-07-2006, 10:17 PM#2
GamesSmash
You could make a function that says:

--Event:
A Unit begins casting an ability
--Conditions:
Ability being cast equal to "ability".
--Actions:
Start "timer"
Wait (cooldown of ability) seconds
Stop "timer"

You could use the timer called "timer" to set how much longer till the new ability cools down. Although I'm not sure how to do that part.
07-07-2006, 11:35 PM#3
Alevice
I'd start the timer with a "ability cooldown" number of seconds and "disable" the ability, then in another trigger check when the timer reaches 0 and reenable.
07-08-2006, 02:50 AM#4
EveningStar
hi.

despite of the method's validity, it would not be cosmetically plausible since you won't be able to see the cooldown of the spell. I was hoping for a cleaner solution.
07-08-2006, 02:57 AM#5
Alevice
Triogger the metamorphosis aspect (ie, witha dummy spell, change the unit's model, appropiate stats, and perhaps spells).
07-08-2006, 08:09 AM#6
EveningStar
Quote:
Originally Posted by Alevice
Triogger the metamorphosis aspect (ie, witha dummy spell, change the unit's model, appropiate stats, and perhaps spells).

do you have an example of what you described? Much thanks, I would have never thought of it.