Possible to trigger cooldowns?

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
i have a triggered spell that does not seem to be using the dummy spells cooldown. I have trie dusing multiply dummy spells to start the triggered spell casting but the cooldown is still 0 regardless. So my question is, is there a way to prevent people form spamming this ability?
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
use a timer and a boolean variable (maybe an array, if it has to be mui), that is set = true, when the timer ends.

You just add the condition boolean == true to your trigger, and set it = false, when its executed.
 
Level 10
Joined
Apr 3, 2006
Messages
535
Did you use the Event "A Unit Begins Casting An Ability"? If you, replace it with "A Unit Starts the Effect of An Ability". That generally works.

Tried this it works exactly the same, except now the spell is cast without using any mana??

Emm-A- no idea how to go about using your idea :(
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
My idea was to use a boolean comparisson in the ability trigger.

  • Event
  • bla
  • Condition
  • Boolean Variable == true
  • Action
  • set Boolean Variable = false
  • Your Action X
  • Start Timer with your cooldown time
You just have to create a handling function for the timer, which resets the boolean variable.
You could use an boolean array, if it has to be MUI or you could use the Unit User Data (Custom Value) or whatever you want instead.
 
Status
Not open for further replies.
Top