I used search and found nothing related.
How can I <<back>> in Twine 2?
Is there a way to make choices that are one-click only (eg: choose 1, 2 or 3. If you choose 1, you go to panel one and can go back. When you go back, choices 2 and 3 are inactive).
Thanks!
Comments
From http://twine2.neocities.org/:
[quote](history:): This returns an array of strings. The strings are the names of every passage the player has visited, in order. You can use this array in the following ways: to find out the previous passage the player visited was, use (history:)'s last. To find out if the player ever visited a passage named "Lighthouse", use (history:) contains "Lighthouse". Note: this macro may change in future versions of Harlowe to return more complex datamaps instead of just strings, providing more information about that passage.
(emphasis mine)
To make choices that will become invalid, you'll need to set a variable on the page where you make the choice. The following example shows both a back button and permanent choices.
(example-start) (first-page) (second-page)
What did the stand for?
I believe he is printing a # character before the value of $choice
eg. If you clicked the First Choice on (first-page) then the message on (second-page) would end with you chose choice #1.