C_Timer problem with weakaura trigger
So I'm trying to make a weakaura that triggers a couple seconds after a boss is killed, but for some reason it never works when it has a C_Timer on it, can someone help me out with it?
Code:
C_Timer.After(3, function(event,arg1, arg2, arg3, arg4, arg5, arg6, ...) |
This might work.
Lua Code:
|
Quote:
|
For a WeakAura, I am not sure either. Hopefully someone else pipes in.
|
A weakaura custom trigger requires a function object to work. You're getting an error because C_Timer.After is a function call in this scenario. Wrap what you have in a function object:
Lua Code:
If you're confused, basically weakaura trigger custom code has to start with the word "function" and end with "end", no exceptions, unless you have a global function to use, then you only use the function name and nothing else. |
Quote:
|
Does WeakAuras still allow you to trigger the object 'On Finish' after setting a duration? And if so you won't need the timer and instead can use just the event check.
|
Quote:
|
Please excuse my limited knowledge since it's been a while since I played. If memory serves you could have a WeakAura show after a set amount of time, think it would be an invert toggle under the WA's display settings, then set the custom trigger to hide after a duration; though these might conflict with one another. Though in my attempt to relearn WA I came across a possible solution.
http://i.imgur.com/GZ6NpDC.png |
If you use Kanegasis example, the trigger function itself never returns true and your aura will never show up.
You could do this whit custom event. Custom Trigger - Events: BOSS_KILL, CUSTOM_EVENT_NAME Lua Code:
And maybe use a better name for your custom event and not this generic example. |
Quote:
|
All times are GMT -6. The time now is 06:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI