Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

[Bug] Bookmarks and tails

If I use a link with a tail to link to a passage with a bookmark, the bookmark seems to end up storing the value of the variables in the link tail before the tail is executed.  Either the bookmark needs to be taken after the link has been executed or the move to the new passage needs to be delayed until after the link has been executed.

Sample to reproduce:
:: Start
This is the start.

[[Goto Passage 1|Passage 1][$entry to "You enter Passage 1"]]

:: Passage 2 [bookmark]
<<$entry>>

This is Passage 2

[[Goto Passage 3|Passage 3][$entry to "You enter Passage 3"]]

:: Passage 1
<<$entry>>

This is Passage 1

[[Goto Passage 2|Passage 2][$entry to "You enter Passage 2"]]

:: Passage 3
<<$entry>>

This is Passage 3

Try Rewind
To reproduce, save to a .twee file, import into a new story and test play.  Follow the links through to Passage 3 - note that the Passage 2 screen starts with "You enter Passage 2".  When you get to Passage 3, use Rewind to go back to Passage 2 (it's the only bookmark).  The text at the top of the screen now reads "You enter Passage 1".

Seems the bookmark in passage 2 has saved the state of the $entry variable as it was in Passage 1 when you clicked on the link, not after the link tail had been executed.

Comments

Sign In or Register to comment.