Hello! I’m somewhat new to Twine, and I would like to know if it’s possible to create an auto saving feature using JavaScript. Specifically, I want to automatically save the following variables: $money, $name, $Gender, $JOB, $strike, $Journal
, as well as the current passage. Any guidance would be appreciated!
Hi!
Autosave is not native to Harlowe (only save slots). Those saveslots will save all the relevant information (i.e. variables, passages visited, other metadata).
But you can force to save in a saveslot with each passage (like using the (save-game:)
macro in a header passage.
I’ve done something like this (and a bit more) in my save system template.
How do you make a header passage the form confuses me
To make a header passage you need to create a new passage and then select the Tag button from the passage editor menu.
Choose ‘New Tag’
Give it the name ‘header’
and it should then run all the code in that passage first.
Note: you probably want to put that code inside {} to hide the whitespace else you will have a gap at the top of all of your passages.
Thanks
chapbook has autosave