HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Altering Cooldown via triggers?

02-06-2004, 12:47 PM#1
SirSalute
Is there anyway which i can change the cooldown of one spell through triggers?

Let me explain,
I created a spell based of blink, and whenever it teleports to a targeted place, a dummy warstomp will be cast if enemy is nearby, and nothing else will done if none.

I wanted to have a faster cooldown when no warstomp is casted and longer when it does.

It will be better if the amount of mana used can also be changed, I know it can be by using remove mana from unit, but what if the spell can be cast, and the mana of the hero is less than the amount going to remove?

Help me pls. Thanks in advance.:D
02-06-2004, 01:36 PM#2
Astalion
As for the mana cost changing, set it to the highest value first, then give bonus mana if no enemy is nearby. Same logic for cooldown. Set it to the highest of the two possible, then if no target is nearby, wait X seconds, then reset cooldown.
02-06-2004, 01:51 PM#3
ABM
Well the best way to do this i think,
is to make 2 Spells.

1 one that target ground so u can tp to any area for a 10sec cooldown and 20 mana.(for ex).
2 one that target an enemy unit so this is the one who will create the war stomp and his mana and cooldown will be higher 20 sec cool down and 40 mana.
i will explain more in detail or add more help later.....
busy right now...
02-06-2004, 02:11 PM#4
SirSalute
Quote:
Originally posted by ABM
Well the best way to do this i think,
is to make 2 Spells.

1 one that target ground so u can tp to any area for a 10sec cooldown and 20 mana.(for ex).
2 one that target an enemy unit so this is the one who will create the war stomp and his mana and cooldown will be higher 20 sec cool down and 40 mana.
i will explain more in detail or add more help later.....
busy right now...


=P, thanks for the help, i had actually created the effect and all except the mana cost and cooldown, which the first post kindly provide a workaround for me.

Thanks you all. Wish you all the best. :D
02-06-2004, 08:51 PM#5
COOLer
You can also fix cool down by using a trigger by resting all of a units cool downs.
02-07-2004, 10:17 AM#6
SirSalute
is there a way to reset the cooldown or a specific hero spell? the GUI version of reset cooldowns reset all of the spells. I want it to reset only one. Must I set the unit to auto-relearn that spell in order to reset the cooldown?emote_sweat