Hi. I currently have a macro that yells "C-C-C-COMBO BREAKER!!!" when I use my Kick ability. If kick is on GCD or CD, I will have to use it again, sometimes creating alot of spam. Is there any way to make the macro only yell if kick is successful?
Hi. I currently have a macro that yells "C-C-C-COMBO BREAKER!!!" when I use my Kick ability. If kick is on GCD or CD, I will have to use it again, sometimes creating alot of spam. Is there any way to make the macro only yell if kick is successful?
It could be, but not without some lines of Lua code to check whether to spam the text or not.
In PSEUDO code it would be something like:
Now, I haven't tried to do anything like this before, and for the two first conditions (GCD or CD) I cannot help you. But for the third, you could do:Code:/run if(KickIsNotOnCooldown() and GlobalCooldownIsNotOn() and IHaveEnoughEnergyToCastKick()) then SendChatMessage("C-C-C-COMBO BREAKER!!!", "YELL") end /cast Kick
I hope this gave you some help, FormulaDrixx.Code:UnitMana("player") >= 25
More to this point, psuedo code is code that is just written to show generally show what the point of it is, without going further into its depths. As with this, KickIsNotOnCooldown(), GlobalCooldownIsNotOn() and IHaveEnoughEnergyToCastKick() are not functions that work or are implanted, it is just placeholders for where other things should be.In common parlance, the word pseudo is used to mark something as false, fraudulent, or pretending to be something it is not, as in pseudoscience or pseudophilosophy.
en.wikipedia.org/wiki/Pseudo
the thing with this is seeing if kick is on cooldown needs a variable.
something like
local _, duration, _, = GetSpellCooldown("Kick")
and i didnt find any API about global cooldown, so i guess that GCD is part of the "cooldown".
I think i could do it through a small addon like i did for ChatToggle for Simplicity.
pm me if you are interested.
but do you really need to yell something when you kick?? hehe