WeakAuras

WeakAuras

200M Downloads

Variable for built-in triggers

Mattyd221 opened this issue ยท 1 comments

commented

Is your feature request related to a problem? Please describe.
When creating an aura that has 2 or more triggers that use the same field and value as a breakpoint, it is error prone to have to manually update each trigger if the value changes. For example if trigger1 is active when the stack count is < x and trigger2 is active when the stack count is >= x. Changing x in one and not the other causes the WA to not work as expected.

This same scenario could also exist with a group and child auras

Describe the solution you'd like
A way to set a variable that can accessed within built-in triggers.

Describe alternatives you've considered
The only other option would be to convert the triggers to use custom triggers and write the same logic in Lua that the built-in triggers are doing and use a custom option field. This is not ideal because the custom code will not have the same performance as the built-in ones and makes maintenance of the aura more difficult.

Additional context
None at this time.

commented

custom options are not meant to change the behaviour of built-in triggers