Hmmm. Seems the rewind function undoes a remember macro.
Any way to get the remembering to be preserved? I'd been assuming rewind worked like a restart with fast forward... I'm trying to remember the various endings of the story that they had reached - but it they use rewind to resume play from an earlier bookmark it seems to be resetting the remembered variables as well.
Twine 1.4.2 and the default sugarcane.
Comments
Leaves me with a playability issue:
Keep rewind and loose the tracking of which of the 10+ different endings you've reached.
Keep the ending tracking and disable rewind, meaning you have to start over if you die (maybe 20+ decisions in). And I really dislike games that make me go through the same intro section over and over just to explore different options in the mid and end game.
Thoughts?
Even having to "rewind" passage by passage to get to a conversation branch would end up annoying in a large game with 10+ endings.
The <<remember>> macro only stores the current value of the $variable passed into it to the remember store. The remembered $variable is still a normal story $variable in every way, meaning it still exists within the story history and rewinding to a particular point in said history will still yield whatever the value of the $variable was at that point. The only time remembered $variables are copied from the remember store is at story/game startup.
An illustrative example: The <<remember>> macro is only really useful for remembering things between story/game sessions, not within the same session.
Situations like this are why SugarCube's documentation for <<remember>> discourages its use:
If you need a variable which will absolutely not be affected by navigation of the story history, then don't use story $variables. That said, currently, your options for doing so are somewhat slim. For now, you could put the following in a script tagged passage (only for SugarCube v1): Usage:
@Claretta Rewind works with bookmarks placed via passage tags. You don't bookmark very passage, just the ones before key decisions (the start of scenes or acts), so your stack of rewind points might only hold 8 or 9 passages (although it does seem to repeat them if you revisit a passage).
You need to set a variable called metacache to a unique prefix for the game, and then you call it as:
Should support variables for the key and value fields, so you can: