Skip to content

Button Puzzle Scripts

Adam Johnson requested to merge Hoikas/offline-ki:puzzle-script into master

There was a request on the forum for Python scripts for making puzzles that use a set of buttons in a combination to open doors. This script is generalized to take a combination, set of buttons, and some SDL variables. When the combination is input correctly, the solved SDL variable is set, which can trigger any arbitrary reaction with xAgeSDLBoolRespond.py

I did not realize until two weeks after writing this script that xDynamicPanel.py does a similar job. This is more flexible, however, in that all state is powered by age global SDL, allowing more opportunities for other objects to hook into the puzzle state. There is a sample Age available in the linked thread. Ametist is ready to release Ages depending on these changes, and I would like to unleash the sample Age on UAM at some point... :)

Analogous to: https://github.com/H-uru/Plasma/pull/726

Merge request reports