#Tracking potions

9 messages · Page 1 of 1 (latest)

gaunt cave
#

Hi i have a wa that is tracking the new hp bot but I only made it work to track only 1 rank. So if i have r2 and r3 in bags it will only show the count of rank2. How to make it track all the ranks at the same time

prisma condor
#

Make a trigger for each rank.

Display tab, %c in text
Custom text function:

local totalCount = 0

totalCount = aura_env.states[1].count and totalCount + aura_env.states[1].count or totalCount
totalCount = aura_env.states[2].count and totalCount + aura_env.states[2].count or totalCount
totalCount = aura_env.states[3].count and totalCount + aura_env.states[3].count or totalCount

return totalCount
end```
gaunt cave
#

Will try thanks

prisma condor
#

If you only have triggers tracking item count, then you can do

  local totalCount = 0

  for i = 1, #aura_env.states do
    totalCount = aura_env.states[i].count and totalCount + aura_env.states[i].count or totalCount
  end
  
  return totalCount
end```
instead, which would work with any number of triggers.
#

Gotta say though, who cares how many R1, R2 and R3 pots he has in his bags 😄

#

Delete those R1s

gaunt cave
#

Mainly trying to get the count of the potions that i get from the cauldron + my personal

gaunt cave
#

Okay it worked thanks a lot Guffin

prisma condor