Cooldown Trigger

BlueMirage

Trust, but doubt.
Reaction score
39
Is it possible to activate cooldown using triggers, without making the unit cast the spell?

Is it possible to shorten cooldowns through triggers?
I need to be able to manipulate the cooldown based on how much range there was between the caster and point when the spell was cast. Any ideas?
 

duderock101

Check out my 2 Player Co-op RPG!
Reaction score
71
i know it's probably wrong but what about Wait or making a dummy unit who dose a ability that has no effect but a cooldown i dunno...
 

BlueMirage

Trust, but doubt.
Reaction score
39
What i basically need is this:

Events:
Some event
No conditions.
Actions:
Activate ''Skill cooldown'' for (Triggering unit or whatever)
 

Rhymer

You can change this now in User CP.
Reaction score
64
Yeah, I needed pretty much the same thing a while back. I'm sorry to say I found no solution.

//Rhymer
 

Kazuga

Let the game begin...
Reaction score
110
Sort of need this to for my "anti stuck" ability, all heroes has it and if you use it your hero will be removed and a new will be created with the same level as the triggering unit. The problem is that all cooldowns are reset aswell so you can use this ability just to reset longer cooldown spells... Hope someone know how to set cooldown on spells if this now even is possible, only thing I can think of otherwise is to start a timer and remove the ability for the unit, and when the timer expires you could add it again. (But then the ability is set to lvl 1 again...)
 

duderock101

Check out my 2 Player Co-op RPG!
Reaction score
71
Sort of need this to for my "anti stuck" ability, all heroes has it and if you use it your hero will be removed and a new will be created with the same level as the triggering unit. The problem is that all cooldowns are reset aswell so you can use this ability just to reset longer cooldown spells... Hope someone know how to set cooldown on spells if this now even is possible, only thing I can think of otherwise is to start a timer and remove the ability for the unit, and when the timer expires you could add it again. (But then the ability is set to lvl 1 again...)

i know it might sound stupid but could you make a one ability for each level

EG you have two abilitys
1 = lvl 1 holy flash
the 2nd = lvl 2 holy flash

The point is you set a trigger to find out what your ability level is then it dose what you say then brings back the same level as you did before

EG i take away the ability lvl 2 holy flash then i put the ability lvl 2 holy flash back on it

yes it would take time but wouldn't it work? :nuts:
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
you could only make each spell 2 times and then give your unit the ability and order it to do a (useless) ability with the same order id

e.g. a unit has the spell cripple. create another spell based from the same with no effect. give it to your unit and order it to use it.
 

Kazuga

Let the game begin...
Reaction score
110
you could only make each spell 2 times and then give your unit the ability and order it to do a (useless) ability with the same order id

e.g. a unit has the spell cripple. create another spell based from the same with no effect. give it to your unit and order it to use it.

This means that he will have cooldown on all he's spells when he "revives :S
And duderock, it sure would take time since in my hero arena I have 11 heroes, all with four spells each and all four spells have 4 levels, that makes it 44 spells, it would be 44x4 if I would do it your way, wich would take alot of time yes...
 

BlueMirage

Trust, but doubt.
Reaction score
39
you could only make each spell 2 times and then give your unit the ability and order it to do a (useless) ability with the same order id

e.g. a unit has the spell cripple. create another spell based from the same with no effect. give it to your unit and order it to use it.

This would create problems as cripple needs a target. :(
 

Kazuga

Let the game begin...
Reaction score
110
Easy solved with creating a dummy and let the hero use the ability on him.
 

BlueMirage

Trust, but doubt.
Reaction score
39
Easy solved with creating a dummy and let the hero use the ability on him.

True, i never though about that.:p

Well what if it was some other kind of spell, like blink? heroes would need a point to blink to.

Even if you blink to the position of [Caster] blink still has a casting time, which comes from Cast Point duration that almost every hero has. We don't want heroes doing casting time when we activate their cooldowns do we?
 

Kazuga

Let the game begin...
Reaction score
110
Well it's possible to order the unit to blink to a certian location (for example position of unit with polar offset by 50), but the biggest problem is as you said with spells with longer casting times or specific actions..
 

Somatic

You can change this now in User CP.
Reaction score
84
Easier Method would be using this trick. First register the unit on a variable, then upon casting, lets say it takes 30 second to cool down normally, and you want to reduce it by 3 second, use a wait in the trigger to make it wait for 27 seconds, then when the wait finish, remove the ability from the unit, and then add it back and set its level, that will instantly set the cool down to 0.

A free hand example
Spell name - Cripple
Code:
Event - A unit starts the effect of an ability
Condition - Ability being casted equal to Cripple
Actions
Set Caster = Triggering unit
Set Skill_Level = Level of Cripple for Caster
Wait 27 seconds
Unit - remove Cripple from Caster
Unit - add Cripple to Caster
Unit - Set Cripple for Caster to Skill_Level

Of course, its not MUI, but if you know abit of using Locals in Jass its easy to make it MUI
 
T

Tubba

Guest
Or you could just start with the wait and declare the variables later.
 

BlueMirage

Trust, but doubt.
Reaction score
39
Easier Method would be using this trick. First register the unit on a variable, then upon casting, lets say it takes 30 second to cool down normally, and you want to reduce it by 3 second, use a wait in the trigger to make it wait for 27 seconds, then when the wait finish, remove the ability from the unit, and then add it back and set its level, that will instantly set the cool down to 0.

A free hand example
Spell name - Cripple
Code:
Event - A unit starts the effect of an ability
Condition - Ability being casted equal to Cripple
Actions
Set Caster = Triggering unit
Set Skill_Level = Level of Cripple for Caster
Wait 27 seconds
Unit - remove Cripple from Caster
Unit - add Cripple to Caster
Unit - Set Cripple for Caster to Skill_Level

Of course, its not MUI, but if you know abit of using Locals in Jass its easy to make it MUI

This trigger doesn't activate a cooldown at all, it refreshes it.

just set the dummy abilities cast time to 0

Too bad the dummy isn't the one casting the spell.
 

DrinkSlurm

Eat Bachelor Chow!
Reaction score
50
If you make a custom spell based off of "Channel" you can change the "Base Order ID." For example, you can change the Base Order ID to "corporealform" or something. Then via trigger, you can order the unit to "corporealform" and it will activate the cooldown without the spell actually being cast.
 

Dangerb0y

New Member
Reaction score
0
If you make a custom spell based off of "Channel" you can change the "Base Order ID." For example, you can change the Base Order ID to "corporealform" or something. Then via trigger, you can order the unit to "corporealform" and it will activate the cooldown without the spell actually being cast.

How does changing the Base Order ID prevent the ability from being cast? It would still cast as normal.
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
It's against the rules to revive an almost 3 year old thread. Please avoid doing that. I don't think the creator of this thread still needs the solution.
 

NeosDany

Member
Reaction score
1
Easier Method would be using this trick. First register the unit on a variable, then upon casting, lets say it takes 30 second to cool down normally, and you want to reduce it by 3 second, use a wait in the trigger to make it wait for 27 seconds, then when the wait finish, remove the ability from the unit, and then add it back and set its level, that will instantly set the cool down to 0.

A free hand example
Spell name - Cripple
Code:
Event - A unit starts the effect of an ability
Condition - Ability being casted equal to Cripple
Actions
Set Caster = Triggering unit
Set Skill_Level = Level of Cripple for Caster
Wait 27 seconds
Unit - remove Cripple from Caster
Unit - add Cripple to Caster
Unit - Set Cripple for Caster to Skill_Level

Of course, its not MUI, but if you know abit of using Locals in Jass its easy to make it MUI

If another player uses the same ability then its levels will be changed...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top