Twine 1.4.2 Jonah - resetting game state

Twine Version: 1.4.2
Story Format: Jonah

Hi! I’m using a very old version of Twine for the story history feature, and thanks to the patience of some folks, have gotten it up and running and functional.

I’m not well versed in JavaScript, and I’m wondering if anyone knows how to replicate the functionality of the “Restart Story” button found in the top right corner of the UI but as a link or button that I can put in the text of the game for a “new game +” kind of feel.

Any help is much appreciated, I understand this is a very outdated story format and I might be out of luck.

3 Likes

I’ve figured this out, going to post my solution in case anyone else is using Twine 1.4.2 in 2024 for whatever reason.

[[Restart Story|Start][state.restart()]]

This text restarts the game and clears the displayed history.

3 Likes