Skip to content

disable save in a scene

jackdarker edited this page May 10, 2021 · 1 revision

Even with the sophisticated save-functions, sometimes you would prefer to just not allow saving a game because

  • of the gameplay
  • the passage has script variables involved that store data outside window.story.state
  • there are dynamicly mapped event-handlers or functions that would be very hard to reconstruct on game-load

Therefore you can add the tag [_nosave] to a passage. This will disable the save buttons in the save-dialog until you get into a passage that doesnt have this tag.
Instead you could also set window.story.state._gm.nosave = true before (!) the save-dialog gets rendered.

Clone this wiki locally