Okay, so this solved the problem, but I had some issues when I wanted to further progress. If I wanted more than one "thing" to happen when I click the link "turn off the light", for example for the background colour and text colour to change, how would I achieve this? This is what I've got, but it fails to change anything but doesn't show any errors either.
(t8n: "dissolve") + (colour: black) + (text-style: "blink")[It's too bright in here.]
(t8n: "dissolve") + (colour: black) + (text-style: "none")[
(link: "turn off the light")[
(replace: ?output)[That's better.][(print:"abcd")]
I imagine that I am ending the hook that is attached to the (link:) macro somewhere early, but I'm not sure how to fix that without screwing up the printed text.
Separately, although it wouldn't matter in this particular case for me, how would I continue the same passage only if the link has been clicked, without entering a new passage? Without cramming it all into the (replace:) macro, if that would even be possible. In case I'm not making any sense, this is what I mean.
- All above carries out: blinking text, "turn off the light" appears, clicking turn off the light replaces it with "That's better."
- After a period of time, maybe 3 seconds, the rest of the passage (perhaps a description of the room with links to other passages) appears below.
Thanks a bunch!