Is there an easy way of disabling the save system?
thetruespin
23 Sept 2016, 19:02I haven't looked at the code yet, but is there an easy way of disabling the save system, so refreshing the page resets the game?
thetruespin
30 Sept 2016, 07:31Just in case anyone is interested, I had a look through the code and it seems the simplest way to disable the save system is to simply comment out a few lines in the story.js file.
Basically every time Squiffy updates something in the game, it calls squiffy.story.save();. You can simply comment out these lines (I think there's about 3 or four of them) with // and your game will never call the function, meaning it will always load from the start on page refresh.
If you ever want to re-enable, simply undo your additions.
(edit: for those not familiar with programming, comment out is a phrase used to describe the manner in which a coder can stop a section of code from running, which is normally used so you can put in non-code comments. In Javascript // at the start of a line tells the interpreter to ignore that line).
![](https://i.imgur.com/28lV6nMb.jpg)
Anonynn
01 Oct 2016, 21:22http://textadventures.co.uk/forum/quest/topic/ysn7wtmgy0yyuocvczvhnq/is-there-a-limit-towards-script
![](https://i.imgur.com/xlYHjF4b.jpg)
Alex Warren
02 Oct 2016, 06:41This is the forum for Squiffy.