Custom LUA triggers for Weak Auras
I have two custom LUA triggers I need help with. I have written a few custom triggers for Weak Auras but I don't really know LUA. I just look at other triggers and try to use common sense. But these are far beyond what I can do.
The first thing I want to do is to have a trigger activate when I'm at/above X energy, but fade after Y seconds, irrespective of how much energy I have. I don't want it to fade for any other reason (such as if I go below X energy). Also, I never want that trigger to trigger again until after I have been below X energy.
The other trigger I want is to activate when an ability has a cooldown of 0 (not "ability usable" because then things like stealth or being cc'd will mess with it), but I want it to fade after X seconds, not stay active for as long as the ability has 0 cooldown.
Any help with this is much appreciated!
|