An system to make testing Sugarcube-V2-based Twine games more convenient. After adding this to your story JS, create passages with "test-config" tags to add them to the "test config" menu that appears on the first passage when you load test mode. If you pick a test config off the menu, it (silently) executes, then the page reloads. This allows you to configure scenarios by creating pages full of variable assignments. It also defines the touch macro, for use in test configs, to put passages in your history so visited() checks will find them.
Go to file
2024-07-05 13:37:09 -07:00
LICENSE Initial commit 2024-07-05 03:58:28 +00:00
README.md Initial commit 2024-07-05 03:58:28 +00:00
test-config-manager.js Clean restart. No longer double-visits starting point! 2024-07-05 13:37:09 -07:00

sugarcube-test-config-manager

An system to make testing Sugarcube-V2-based Twine games more convenient.

After adding this to your story JS, create passages with "test-config" tags to add them to the "test config" menu that appears on the first passage when you load test mode. If you pick a test config off the menu, it (silently) executes, then the page reloads. This allows you to configure scenarios by creating pages full of variable assignments.

It also defines the touch macro, for use in test configs, to put passages in your history so visited() checks will find them.