Escape Room Switch State Puzzle
There are two puzzles created using Verse, the first is the Tagged Lights Puzzle. The Tagged Lights puzzle is used in the hidden room behind the stairs in the sub basement.

You can copy and paste the code from the last section of the tutorial, but it’s strongly recommended that you build the puzzle piece-by-piece to get an understanding for how the Verse language works.
The second puzzle uses a hard-coded logic key to check each switch device to ensure the right switch has been triggered in the proper sequence.
When the proper switch is triggered, a success sound accompanies the switch. Likewise, a failure sound and message are triggered when the wrong switch is turned on during the sequence. A final success sound and message are played, and four item spawners are activated when the puzzle is solved.
You can use an array to check valid and invalid states, as well as trigger any device connected to a state. For this example, the answer key was hard-coded to help those new to coding understand what the code is doing.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.