This is for when you start feeling more brave with Chapbook.
Chapbook’s strength is simplicity, but that always comes with limitations. It does allow for extending the code, but requires you to be adventurous with programming. The following gives you the basis for making a link that can do other things, like set variables (or sound properties) while also going to a new passage…
However, Chapbook’s simplicity encourages you to go to a passage and then do something. Click to go to a passage and then do something else. Rinse and repeat.
There is a way to have a pure logic passage embedded in every passage behind the scenes by using the headers and footers in chapbook. Upon visiting a new passage, the embedded passage code will run again. This could run code to stop all effects audio from playing, in theory.
- https://klembot.github.io/chapbook/guide/customization/header-and-footer.html
- https://klembot.github.io/chapbook/guide/modifiers-and-inserts/embedding-passages.html
You could also use Twine’s built-in passage tags feature and “flag” passages that should do something unique, but all passages still have the same global logic passage embedded. Chapbook has ways of identifying the tags associated with a passage. It can get as crazy as you want it to get.
Anyway, I’m glad things are working now.