0 votes
asked by (140 points)
Hello! I have a question. How I can do a conservation after closing a my story? For example, I reached to middle of my quest and closed story. On next day I can start at the same time. To progress don't reset in story.

1 Answer

0 votes
answered by (11.9k points)
You'll have to implement an autosave feature. To tell you how to do that, you'll have to provide the full versionnumber of both twine and the storyformat you are using.
commented by (140 points)
I will be very grateful for your help

Version - 2.2.1

Storyformat - Harlowe 2.1.0
commented by (11.9k points)

Give your starting passage the tag "start", then put this somewhere on it:

(if: (saved-games:) contains "auto")[(link: "Continue")[(load-game: "auto")]]

Then create a passage, give it the tag "footer" and put this into it:

(if: not ((passage:)'s tags contains "start"))[(save-game: "auto")]

Now there will be a link on your starting passage that will allow your players to continue their last game, as long as their browser allowed a save to be created.

commented by (140 points)
Oh my god, I love you, man! Yesterday I spent 5 hours in search information on this topic, and today 3 hours. Thank you very much!
commented by (115k points)

WARNING: The more passages the Reader visits the large the Story History and each Auto-Save can become, which in turn means it can take slightly longer each time to do the save. This can eventually lead to a noticeable delay each time the Reader changes passages.

...