Weak Aura Trigger

Appreciate the help! Was wondering how I could make this custom trigger script in Weak Aura.

I want it to fire if the following triggers are true:
(Triggers 1 & 2) or Triggers (3&4)
and
Triggers 5, 6 & 29 all true
and
Any single trigger between 7-28 is true.

I saw a way to do it that was very messy, was hoping there was a more concise way to do it.

Set the activation to use a custom function.

function(t) return ((t[1] and t[2]) or (t[3] and t[4])) and t[5] and t[6] and t[29] and (t[7] or t[8] or t[9] or t[10] or t[11] or t[12] or t[13] or t[14] or t[15] or t[16] or t[17] or t[18] or t[19] or t[20] or t[21] or t[22] or t[23] or t[24] or t[25] or t[26] or t[27] or t[28]) end
2 Likes