#TSU clones set to show = false and changed = true not disappearing

20 messages · Page 1 of 1 (latest)

violet kestrel
#

I have a TSU set up that displays auras in a dynamic group.
In another aura it detects when the party member being inspected loses their raid target icon and sends the "Kill Auras" event with the argument "disable"
WeakAuras.ScanEvents("KillAuras","disable")
In the TSU aura, the first section has

  if event == "KillAuras" and ... = "disable" then
    for _,v in pairs(allstates) do
      v.show = false
      v.changed = true
    end
    return false
  end

.... more code down here```

According to VDT, the event is going off and arg1 is "disable" and the code within that block is going through, but the auras don't vanish.
#

A quick look at the allstates table is showing the state's show flag as false

dark raft
#

!linkit need more context

copper stirrupBOT
#

WeakAuras doesn't show anything by default, it's just the framework that lets you import or create "Auras" to display things. If you're having an issue with an Aura, and/or want opinions on it, then you need to share the specific Aura. The best way to do this is to link it through https://wago.io/.

If you only imported the aura, you may right click the aura in-game and select Copy URL and paste it here. If you have modified the aura or created your own, you may instead select Export to string... and upload the string to https://wago.io/. This does not require an account.
You can now paste the import string directly into Discord (with no other text, only the string) and a bot will import it for you and link the wago.

violet kestrel
#
    -- Kill on disable
    if event == "KillAuras" and ... == "disable" then
        for _,v in pairs(allstates) do
            v.show = false
            v.changed = true
        end
        aura_env.tankunit = nil
        ViragDevTool_AddData(allstates,"all states")
        return false
    end
rest of the code down here```
dark raft
#

need to see more about this ie- what other triggers are in your aura and dynamic group

violet kestrel
#

Oh want me to upload the aura?

dark raft
#

yes that's why I said link it

violet kestrel
#

ah kk

#

TankInformation Custom Trigger 1 line 32 is the kill auras event sendout

dark raft
#

dont ever return false from a TSU

violet kestrel
#

Oh

dark raft
#

it means that there is nothing to change if you return false

#

idk if thats the only problem though

violet kestrel
#

The auras having the issue are in CDs Available

#

Okay just had to stick a "return true" at the end of the code

#

I didn't realize TSUs needed a constant true return to update themselves

dark raft
#

yeah I usually just stick a return true at the bottom of the TSU so everything returns true