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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top