• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Congratulations to all of the game jam participants! 🥳 The winners have all been decided and announced.
    If you haven't yet, check out the entries for Eevee Expo's Game Jam here!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

v21.1 Lights Out and Multi Button Puzzle Methods 2025-09-26

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
The linked pastebin implements two different types of puzzles: Lights Out and Multiple Buttons that all must be simultaneously pressed.

In Lights Out, interacting with the event toggles itself and neighbouring events to change state, with the goal of making everything match generally. The script is more extendable than that, as it gives you full control in what events are toggled by the triggering event. The solution checking method also allows you to check the state of given events (so you could have a puzzle to create a pattern, instead of just lighting up the entire grid, for instance.

lo_switch_toggle takes an arbitrary number of event ids and flips their A self switch.
lo_check_puzzle takes the solution string (as a string of 1s and 0s in the same order as the passed events, with other characters meaning a given event is ignored for the solution checking) and an arbitrary number of event ids. 1s mean the self switch A is true, and 0 means it is false.

check_boulder_puzzle is the multiple buttons puzzle. It takes an array of events that the player pushes, and then an arbitrary number of two element arrays with the x/y positions of the buttons that need to be pressed down for the puzzle to be considered completed.

I just didn't really want to lose track of these methods, especially with the talk of implementing puzzles in the server the other day.
Credits
Vendily
Author
Vendily
Downloads
33
Views
367
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Vendily

Back
Top