I need to access the same passage from various points within the story I am writing in T2 Harlowe.
I have thought about using (display:"reused passage"), but I am not sure if this will work, because there are several links in the reused passage, and I am not sure how to get back to the original passage. Will T2 simply return when all code has been run through, no matter how many links are clicked in the meantime?
I have also considered using a variable containing the name of the passage I want to return to after visiting the reused passage, ie. ($passage="return here") and when the reused passage code is done, doing a (goto:$passage).
Are there other ways of doing this? Thanks.
Comments
You can do that, but there is another way. Here's Greyelf on the matter:
Using Greyelf's example:
start
This is the start passage.
Go to the reused passage->reusedPassage.
reusedPassage
(set: $history to (history:))
(set: $previous to $history's last)
Link to the previous passage:
(link: "Previous")[(goto: $previous)]
Attached is an HTML file with the above code.