Does Snowman have something similar to (display: passagename) from Harlowe, to display one passage inside another?
Is there a simple/concise way to set a variable when a passage link is clicked? I'm looking for something similar to setter-links from Twine 1.4
(eg [[Garb of the Hawk][$hat = "beak"; $shoes = "talons"]])
Thanks.
Comments
a) requires you to know javascript, and
b) it is using the Underscore template render.
To display one passage inside another try adding the following to your passage: To assign a value to a variable do the following:
(note: replace bob with your variable name.) To print the value of a variable do the following: There is no equivalent of a setter link in Snowman 2, you would have to create the feature yourself using javascript.
You could use the code of the built-in render function as a starting point.
To create setter links, I wound up writing this function: Which can be invoked with:
Do you know if this macro works with the back button?