#help with aura_env
10 messages · Page 1 of 1 (latest)
and use it in display function
count = GetItemCount()
total = aura_env.states[1].count
return total - count
end```
was trying something like this
why ? i have a list of herbs as WA, and i want to display the remaining herbs of the total number wich is on the picture
each herb has different count so i want one global display function for my group
any ideas ?
Typed without checking in game but something like:
function()
local d = WeakAuras.GetData(aura_env.id)
local total = d and d.triggers and d.triggers[1] and d.triggers[1].trigger and d.triggers[1].trigger.count
if total then
return total - aura_env.state.count
end
end