Skip to content

"Programmatic Undo": Harlowe (v2.0)#

Summary#

While Harlowe supports allowing the user to undo and redo moves, the "undo" operation can also be accessed through the (undo:) macro. Through its use, changes from the most current action can be "undone."

Example#

Download

Twee Code#

:: StoryTitle
Programmatic Undo in Harlowe

:: Start
[[Enter the darkness]]

:: Enter the darkness
(link: "You are not ready. Go back!")[(undo:)]

Twee Download