• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger that triggers ability cooldown

Status
Not open for further replies.
Level 4
Joined
Oct 11, 2008
Messages
90
When a hero enters region "x" i want his ability "bloodthirst" to be on cooldown for 15 seconds without casting it. Is there a trigger that does that?
 
Level 10
Joined
Mar 16, 2009
Messages
354
Event -
Unit enters region (Your region)
Condition - entering unit is equal to the hero that has the spell
- learned hero skill equal to (Your spell)
Action - unit - remove your ability from trigering unit
- wait 1.5 seconds
- add ability to trigering unit

Hope this helps :)
 
Last edited:
Level 4
Joined
Oct 11, 2008
Messages
90
That is a way, but i don't quite want to remove it and then add it again, only be on cooldown. Maybe there is a JASS script or something.
 
Level 10
Joined
Mar 16, 2009
Messages
354
maybe, or if you want to add the look of a cooldown you could replace your abillity with an abillity thats ecactly the same except that the abillity does nothing and is forced to be used by the trigger and has a cooldown of 1.5 seconds then the abillitys get switched back
 
Level 2
Joined
Mar 7, 2005
Messages
23
like how XPQJ said..

when ur hero enters ur region ... remove ur hero ability.. add a dummy ability with the same tooltips and icon which does nothing.. then issue order entering unit ( ur unit ) to cast that new ability.. u can wait for its certain Cooldown.. and then remove it . and add ur main ability back again to ur hero..

if u dont know how to do any part of that idea.. just let me know.
 
Last edited:
Status
Not open for further replies.
Top