#circuit help

1 messages · Page 1 of 1 (latest)

humble basin
#

How do i make it so when a int variable reaches a certain score it resets to 0 and respawns the players with that role to a vector

leaden badge
#

Is it a synced in variable?

steep condor
#

"variable name" changed event If equals x and has role -> do thing

humble basin
leaden badge
humble basin
#

@steep condor

leaden badge
#

There is a event called ““what the name of the variable is” change”

humble basin
#

Oh ok

leaden badge
#

When that event goes off check with an equals chip if the in is equal to 0

steep condor
#

Snug can help you with the rest panda_thumbs_up

humble basin
#

How do i make reset to 0 after that

leaden badge
#

Well won't it be 0?

#

That's what you are checking for

humble basin
#

Yea ig

#

@steep condor is this correct

#

@leaden badge

steep condor
#

Yup just missing that wire from the equals to the and. I couldn't create another input using the grapher I have. 😛

#

Also, you said you wanted to set the value of the variable if both of these things are true. So make sure to put that somewhere on the then output line

humble basin
#

So i would connect the Then to the exec on the respawn to respawn after it reaches 21

#

?? @steep condor