"Programmatic Undo": Snowman (v1.3.0)


Snowman comes with no user-facing functionality for undoing and re-doing actions. However, though using jQuery and a combination of the window.story.checkpoint() and window.history.back() functions, this can be emulated.

Note: Checkpoints will only affect properties of the 's' (state) global variable.

Live Example

Download: Live Example

Twee Code

:: StoryTitle
Programmatic Undo in Snowman

:: UserScript[script]
$(window).on('showpassage:after', function (e, data)

:: Start
[[Enter the Darkness]]

:: Enter the Darkness
<a href="javascript: window.history.back();">You are not ready! Go back!</a>

Download: Twee Code

results matching ""

    No results matching ""