• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Cooldown

Status
Not open for further replies.
Level 12
Joined
Sep 11, 2011
Messages
1,176
You could make the ability a dummy ability that has triggered effects, and then set the caster's cast point to 0.000 and have it force-casted, while disabling its associated trigger.

I also thought of something like that..
but the problem is the base ability I'm using is Channel..
and it's a Target Point while Channel can only be used within this action
  • Unit - Order (Triggering unit) to Special - Channel
when I did that, the hero freezes till the end of the game :p
 
Hello, Everyone...
Can I force an ability to go on cooldown without casting them ?

Not really, but you could make it like this:
1) make dummy ability that do nearly nothing, but don't use Channel (it can't be manipulated with triggers)!!!!
2) This can be apply to abilities with no target such as windwalk and roar, but with bugs it will work with targeted abilities.
3) Make the Trigger do the effect instead the spell: roar do 0.01 second of roar, and dummy unit do the roar also. Windwalk that last 0.01 second and invisability cast on the caster (shockwave that cast 1 metter infront of the hero). etc.
4) when you want the spell to go cooldown set BOOLING(true default) =FALSE and Action: order unit with no target (roar? windwalk?) or with target with shockwave that cast 1 metter from it.
5) after 1 second, make the BOOLING = true.

*3) Condition: Boolean = true or not create the dummy.
** Caster Hero should have 0.00 seconds cast point and cast backswing, and each and any spell you want to have the cast delay, just give the specific ability casting time.
*** It works only for a hero which is alive, a dead hero will not go into cooldown
**** As mentioned, won't work so well on shockwave since the player could press Hold Position, though with 0.00 seconds casting time, it might work (test it)

^ APPROVED WAY TO FORCE COOLDOWN
 
I also thought of something like that..
but the problem is the base ability I'm using is Channel..
and it's a Target Point while Channel can only be used within this action
  • Unit - Order (Triggering unit) to Special - Channel
when I did that, the hero freezes till the end of the game :p

You used channel wrong, a channel without 0.00 "follow through time" will freeze for 180 seconds. Also, Disable Other Abilities? = True -> need to be FALSE.
Ok I didn't know you can use channel inside a trigger, so ... OK GO CHANNEL IS ALSO APPROVED (thought I'm not sure that channel can be used inside a trigger in tareting form)
^ FIXED
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
You used channel wrong, a channel without 0.00 "follow through time" will freeze for 180 seconds. Also, Disable Other Abilities? = True -> need to be FALSE.
that's pretty much what i have done.

Ok I didn't know you can use channel inside a trigger, so ... OK GO CHANNEL IS ALSO APPROVED (thought I'm not sure that channel can be used inside a trigger in tareting form)
^ FIXED
that's why i can't use that action, because it's only supposed to be instant ability, while my ability is a Target Point- Ability :)

thanks for your suggestion and don't double post..
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
and it's a Target Point while Channel can only be used within this action
  • Unit - Order (Triggering unit) to Special - Channel

Channel can be use with whatever order id you give it.

For example you can set the Base order id to "defend" and then use Channel with
  • Unit - Order Paladin 0003 <gen> to Human Footman - Defend
 
Level 14
Joined
Jul 12, 2011
Messages
1,371
You could make two same abilities.
For example Thunder Clap.
Create a thunder clap with all its effects (damage, slow, thunder wave e.t.c.)
and a thunder clap with nothing ( zero damage, no slow no thunder wave)
If you want the real thunder clap to have cooldown while not casted replace the real ability with the no-effect one. Whenever you want the ability to be real casted (with all its efects) replace it with the real one.
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
Channel can be use with whatever order id you give it.

For example you can set the Base order id to "defend" and then use Channel with
thank you! i must try this !

You could make two same abilities.
For example Thunder Clap.
Create a thunder clap with all its effects (damage, slow, thunder wave e.t.c.)
and a thunder clap with nothing ( zero damage, no slow no thunder wave)
If you want the real thunder clap to have cooldown while not casted replace the real ability with the no-effect one. Whenever you want the ability to be real casted (with all its efects) replace it with the real one.
I already did, what i want to achieve is when the spell casted, within 10 seconds it can be cast up to 2 times more and then go to cooldown, but when 10 seconds are out and the spell haven't been casted at all, then the ability would be on cooldown. :)
 
thank you! i must try this !


I already did, what i want to achieve is when the spell casted, within 10 seconds it can be cast up to 2 times more and then go to cooldown, but when 10 seconds are out and the spell haven't been casted at all, then the ability would be on cooldown. :)

Wow so he suggested to make the "Shockwave" ability removed and add "Thunder Clap (fake)" with zero values and swap whenever you want the shockwave to be on fake cooldown? WOW this is pro, really this is intense knowledge this is perfection I APPROVE IT
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
...can it be used with something else than no target

Yes.

  • Untitled Trigger 007
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Player - Disable Channel1 for (Triggering player)
      • Player - Enable Channel2 for (Triggering player)
      • Unit - Order Paladin 0003 <gen> to *use channel*
      • Wait 3.00 seconds // Cooldown time. A timer would be more exact
      • Player - Disable Channel2 for (Triggering player)
      • Player - Enable Channel1 for (Triggering player)
Disable abil 2 initially. Make abil 2 non hero dummy ability and set follow through time to 0.

Most units have cast point of 0.3-0.5 seconds, so once you give the order it takes that long until the spell starts. The unit stops alking also. But you could use LastOrder library, that makes the unit to resume whatever it was doing after the spell goes on cooldown.
 
Level 10
Joined
Dec 17, 2011
Messages
355
You can do what Rulerofiron or Destroyer said. But with starting a 10sec timer when the ability is casted. If the ability is being casted whithin those 10secs, an other timer must be started and the former removed. Once the timer expires then should be the fake ability cooldown, or the real abilitys trigger disableing occur.
 
Status
Not open for further replies.
Top