HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can I use custom script to reset the cooldown of just 1 ability?

11-09-2003, 02:06 AM#1
FerretDruid
Such as:

Custom script: call UnitResetCooldown( 'A003', GetEnumUnit() )

? I just read a thread about custom script so I'm not sure exactly how it works but I would like to know if this would. Or, if there is another way to make a single ability's cooldown reset. (Instead of all of them at once via the "Unit - Reset Ability Cooldowns" action)
11-09-2003, 04:32 AM#2
ls_freak
One way that I know tufy did in a spell for me is, instead of resetting the cooldown, remove the ability from the unit and then give the ability right back to it. I believe that should work, but don't ask me any more... I know nothing about triggers. :p
11-09-2003, 04:46 AM#3
FerretDruid
Okay then I only have one question. Was your ability a multilevel hero ability or just a regular one level ability?
11-09-2003, 04:51 AM#4
Eriond
Must have been just a normal ability. You can't do that for hero abilities, though I suspect you already know this.
11-09-2003, 04:57 AM#5
FerretDruid
I didn't exactly know that.. However that does explain why my tester trigger for ability cooldown reset didn't do anything at all. (I assumed I just made a mistake). Good to know ;)
11-09-2003, 06:24 AM#6
SpectreReturns
Why does everyone say that you cant add a hero ability??? You ****ing can. Its called Hero - Learn Skill.
11-09-2003, 11:09 AM#7
Biflspud
Doesn't that require you to have spare skill points? You'd also need to know how many points they had in that skill in order to have them learn back up to any previously invested amount.
11-09-2003, 12:03 PM#8
Balthamos
Well ok, you can add an ability to a unit, or you can force them to learn the ability.

Adding can add ANY unit/item ability to a unit, including hero abilites, however it'll only add the level 1 spell of the hero ability.

Forcing them to learn hero abilities requires the hero to have that ability already and also have skill points to invest(I think you need the skill points) so that's the major difference..

You might want to try unlearning abilities and relearning them to reset the cooldowns if you're interested in hero abilities only. Goodluck.
11-09-2003, 01:33 PM#9
FerretDruid
Quote:
You might want to try unlearning abilities and relearning them to reset the cooldowns if you're interested in hero abilities only. Goodluck.

To be honest, I'd sooner just eliminate the cooldown altogether and forget about it before I bothered trying to do that. The ability already uses it's own set of variables and triggers as it is ;) I'll just alter the cooldowns to make them less critical so it won't matter if the character needs to wait 15 seconds after night falls to use the ability.
11-09-2003, 03:29 PM#10
Dyne
You can give heroes skill points to use through triggers.