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
Kistaro Windrider bd100f6ebf
Upload the Test Config Manager.
This is actually mostly done and tested, I iterated on it for hours before bothering to set up a proper git repo.
2024-07-04 20:59:43 -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 Upload the Test Config Manager. 2024-07-04 20:59:43 -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.