#Readycheck weakaura issues [With function]

14 messages · Page 1 of 1 (latest)

untold karma
#

for the readycheck block i want to fix:

  • shows up on readycheck, timed 30s
  • hides with function READYCHECK FINISHED
    I used this logic for all elements
cursive burrow
#

Yeah that's a weird way to try and do it, having a separate trigger running on FINISHED

#

If you need to have it not only be timed then make a custom trigger basically

untold karma
#

It has one, a function trigger, i asked for help here and this is what people adviced me to use 😛

#

t[1] and not [t2]

cursive burrow
#

Perhaps you misunderstood.
You should use a single custom trigger that triggers on the start of the ready check and starts a 30 sec timer, but also catches the finish event and ends early

#

This would be a TSU trigger

untold karma
#

is there any example/template of that D:?

#

oh i found your yt video with the TSU example, well.. my whole idea for the weakaura is to make it without any update/iterates or coding, only the built in functions, the approach on t[1] and not t[2] is the most advanced setting i have in the whole pack

#

well, it kinda works, i mean.. it does, it hides on readycheck finished event and everything works properly, but no idea why it wont work again after that

untold karma
#

@hollow compass i actually found something on wago.io, someone who made it really similiar way to me, he also added untrigger, could this possibly fix my issue ?

#

ok the untrigger did the trick 🙂

novel canopy
#

if you never untrigger a custom event then it can't trigger again

cursive burrow
#
function(s,e)
  if e == "READY_CHECK" then
    s[""] = {
      show = true,
      changed = true,
      progressType = "timed",
      duration = 30,
      expirationTime = 30 + GetTime()
    }
    return true
  elseif e == "READY_CHECK_FINISHED" and s[""] then
    s[""].changed = true
    s[""].show = false
    return true
  end
end