#customtext for %s >99

14 messages · Page 1 of 1 (latest)

fiery epoch
#
function()
  local stacks = aura_env.states[triggerNum].stacks
  if stacks then
    return min(stacks, 99)
  end
end

Change triggerNum to the number of the trigger that carries the stacks value.

leaden gale
#

what if there are several trigger numbers, since i track every dps potion within one weakaura

#

and how can i make it that it shows 99+ not only 99

#

@fiery epoch

fiery epoch
#

But you're not trying to sum the stack counts of all triggers? Just show the stack count from a single trigger, decided by Dynamic Info?

leaden gale
#

for dps potion i have 12 triggers for all different quality of dps pots and text 1-12 with %1-12.stacks

fiery epoch
#

You have 12 texts?

leaden gale
#

ye 😄

#

and loaded by condition

fiery epoch
#

Jeez you're really spreading out the relevant info here

#

What condition?

leaden gale
#

i mean, the custom text works for my health pots for example but dps pots i track fleeting potions and normal rank3 potions within the same weakaura, so if i have fleeting uild potions, i track stacks from them, if im out of stacks it shows me the rank3 tacks etc

fiery epoch
#

You're asking for some custom code to be written. That means that every detail of what you want to achieve is relevant or you get something that doesn't do what you want and frustrate the person trying to help

leaden gale
#

ok, i guess then i let this weakaura how it works rn. but the code works for the other one 🙂