New aura: Text
Triggers: Aura -> Player -> Buff -> Name = XYZ -> Show on: Auras Found
times 4, one for each buff
"Required for activation" -> "Any triggers"
Actions: On Init -> custom ->
aura_env.buffValues = {
23, -- value the buff in trigger 1 should be
56,
78,
99, -- value the buff in trigger 4 should be
}
Display: %c in text -> Text function:
function()
if aura_env.states then
local sum = 0
for i = 1, #aura_env.states do
if aura_env.states[i].show then
sum = sum + aura_env.buffValues[i]
end
end
return sum
end
end