HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item - Reset ability cooldowns

07-09-2004, 10:26 PM#1
sweet5
Item - Reset ability cooldowns is what I want, but there is no action for it, there is for units tho :\ . Is there a way do this with JASS? or a work around?
07-09-2004, 10:34 PM#2
dragnstitch
like Enfo uses?
07-09-2004, 10:40 PM#3
Anitarf
Quote:
Originally Posted by dragnstitch
like Enfo uses?
Sort of... he wants a similar action, only that it works on items instead of on the unit's abilities.
Sorry, I don't think there is such an action, and i'm not sure how I would go about reseting cooldowns for them, because they share it, so replacing items can't help.
07-09-2004, 10:40 PM#4
sweet5
uhh I dont play enfos, I played it once...but thats it. I'll explain some more


spell name: Wool
base ability: spellbook
charges: 4
abilities that the spellbook 'Wool' has: create cloak and create boots
cooldown: supposed to be 0 sed
cooldown for both creates: 30 sec


ok, for some reason spellbooks dont have their own cooldowns, they follow what ever ability was used's cooldown! It sure pisses me off :( ! So what Im trying to do is have the creates at 30 secs cooldown, so it forces u to create other or wait and have Wool be 0 sec so u dont have to wait. But becuz of how the spellbook ability works it goes to 30 sec cooldowns, so what Im looking for is a work around to this, say.... item - reset ability cooldowns? heh I wish!
07-10-2004, 04:32 AM#5
th15
You mean in the object editor? Find the field that says "ignore cooldown" and set this to true and you can use the item as fast as you can click.
07-10-2004, 04:36 AM#6
sweet5
I tried that, that's why I want the trigger for resetting item cooldowns but I know if there is one its only in JASS cuz I checked GUI for it already
07-16-2004, 06:14 PM#7
MiGiLiCuDDiE
Anyone know any slide of hand tricks to pull this one off? ^_^

I tried making 2 of the same item and giving them different cooldown groups, so when you drop one and pick up the next it shouldnt be using the same cooldown because i specifically set the cooldown groups to different types, but that didnt seem to work/help. They still shared the same cooldown...... :<

Anyway, anyone played with this before?

I really tried to pick to diffent types of cooldowns for the items. Like one was in the "build mini town hall" cooldown group and the other was in "fog cloud" cooldown group.... o_O

Anyway, I'd be really intrested if someone knew of a way to pull a fast one on the editor and get this to happen.

So there arn't any questions, here is my exact senario: There is an island in my map and the only way to acces it is by Staff of TP. The problem is the cooldown of the staff forces the player to wait on the island for the durration of the cooldown. I would like to trigger something that would reset the cooldown of the staff so players could get off the island quickly.

Why dont i just shorten the cooldown? I dont want the staff to be abused.

Thanks ahead of time
07-16-2004, 06:39 PM#8
BanishedSoull
A very very easy way to reset the cooldown on an item is to remove the item, then create a new item for the hero of the same type.

If the item had charges, set the number of charges remaining as a variable before removing it, then remove it and create a new one, then set the number of charges of the newly created item to be the same as the old item.
07-17-2004, 02:49 AM#9
th15
When items share the same cooldown group, both will have the cooldown of whichever one you use.

I.E. if you have 1 wand of lightning with a 30 sec cooldown and another with a 5sec cooldown, if you use the one with 30sec cooldown both will have a 30sec cooldown.

So, if the ignore-cooldown field doesn't work, just set both items to different cooldown groups and set the cooldown for the ability both items use to 0.