"Programmatic Undo": SugarCube (v2.18)
While SugarCube supports allowing the user to undo and redo moves, the "undo" operation can also be accessed through the
<<back>> macro. Through its use, changes from the most current action can be "undone."
:: StoryTitle Programmatic Undo in SugarCube :: Start [[Enter the Darkness]] :: Enter the Darkness <<back "You are not ready! Go back!">>
Download: Twee Code