Undo in Interactive Fiction: Keeping Old Feedback Out of the Current Story
When an action is undone, its feedback must also leave the current narrative. Use an undo text worksheet to separate invalidated results, valid context, and current facts sentence by sentence, then return the reader to a clear point where they can act again.

Introduction
After an undo, explicitly remove feedback that depends on the undone action from the current narrative, retain the context that still holds from before that action, and state both the current facts and where the player can enter a new response. If the interface merely says “Undone” while “You handed over the key” remains among the ordinary story paragraphs, readers may still take it as something that happened on the current path.
The fictional teaching example below works through a complete “undo text worksheet.” Its characters, events, and editing choices are original demonstrations, not a real user case, tested findings, or DramaFork product features. It assumes no particular engine.
1. Establish exactly where the undo returns the story
The scene takes place outside an archive room. The valid preceding text reads: “You stand at the door, holding a copper key. The doorkeeper holds out his hand. ‘Give me the key, and I’ll open the door for you.’” The player enters “Hand over the key,” followed by this feedback: “You place the key in his palm. He puts it away and steps aside. You enter the archive room and notice a red envelope on the table.”
The player now undoes that action. For this example, one step includes both handing over the key and the entire sequence of results it triggers. Undoing returns the story to the point after the doorkeeper’s request but before the player’s response. The protagonist still has the key, is still outside, and has not yet seen the red envelope.
The author must define this boundary before deciding which sentences to withdraw. If a work treats handing over the key and entering the room as two independent actions, “undo one step” may cover a different span; this example cannot simply be copied. If the boundary is unsettled, first establish the return point. A vague “go back to before” is no substitute for that decision.
Also distinguish undoing from retrieving something within the story. “You take the key back from the doorkeeper” introduces a new retrieval event and implies that the handover actually happened. Here, the intended meaning is that no handover has occurred on the current path, so write “The key is still in your hand.”
2. Trace action dependencies sentence by sentence
To decide whether a sentence is invalidated, ask: if the key had never been handed over, would this sentence still have an independent basis? A plausible turn of events is not enough. The basis must come from something already established before the undo boundary.
“You place the key in his palm” directly describes the undone action, so it is invalidated. “He puts it away” depends on the handover and is also invalidated. In this example, “steps aside” is another response to the handover and must go too. “You enter the archive room” and “notice a red envelope” depend in turn on being allowed through. They cannot remain merely because they do not mention the key again.
The protagonist’s position at the door, possession of the key, and the doorkeeper’s request all precede the action and remain valid. His outstretched hand can also remain: it is part of the request, not a reaction to receiving the key. These distinctions follow causality, not paragraph length or how far apart sentences appear on screen.
Split sentences that mix valid and invalidated material. In “It is raining outside; he puts away the key you handed him,” only the first clause might stand independently. If the rain was established earlier, the environmental detail can remain while the second clause leaves the current narrative. If the rain was introduced only in this feedback, its basis needs a separate check; do not casually declare it still valid.
The reader having read about the envelope does not mean the current character has seen it. The next passage cannot say “You remember the red envelope you saw a moment ago.” Withdrawing text cannot erase the reader’s memory. What the author can manage is the character’s experience and which text belongs to the current narrative.
3. Complete an undo text worksheet
This worksheet records the decisions and supplies undo wording that can go straight into a draft. For another scene, keep the fields and replace each entry. Do not fill it with nothing more than “Undo successful.”
| Field | Completed example |
|---|---|
| Undo boundary | Return to after the doorkeeper asks for the key, before the player responds; undo the handover and the entire sequence of results it triggers |
| Invalidated feedback | Handing over the key; the doorkeeper putting it away; his stepping aside to allow passage; entering the archive room; seeing the red envelope |
| Retained context | The protagonist holds the copper key outside the door; the doorkeeper holds out his hand and makes his request |
| Current facts | The protagonist still holds the key; the protagonist has not entered the archive room; no handover has occurred on the current path |
| Prompt to act again | Respond again from the doorkeeper’s request: hand over the key, ask what it is for, or hold on to it for now |
This example retains the old record but places it in a separate area marked as undone. The complete reader-facing text could be:
Undone: Hand over the key.
The following feedback belongs to an undone attempt, not the current path: You place the key in his palm. He puts it away and steps aside. You enter the archive room and notice a red envelope on the table.
End of undone record.
Now: You are still outside the archive room, the copper key in your hand. The doorkeeper keeps his hand extended, waiting for your response to his request.
Act again from here: hand over the key, ask what the key is for, or hold on to it for now.
These three prompts correspond to directions reserved for continuing this example. In your own draft, list only actions for which subsequent content actually exists. With free-text input, you could instead write “Enter your response to this request below.” Keep that prompt immediately beside the new input area so readers do not continue writing from the old result.
4. Choosing between deletion, collapsing, and retention
Deleting the invalidated passages outright suits narratives where readers do not need to revisit their attempts. It gives the shortest reading path, but disappearing paragraphs may leave readers unsure how far the undo went. A brief undo explanation and the current facts are still necessary; do not leave only an empty space.
Collapsing suits layouts that need to keep a record available without letting the old path occupy the main reading flow. Label the collapsed section “Undone attempt: Hand over the key,” not “Handover successful.” Its first sentence when expanded must also restate its status. Otherwise, readers who begin with the expanded content may still mistake it for a valid experience.
Retaining the text while explicitly marking it as invalidated suits works where readers need to compare attempts. This example uses that approach. The cost is a longer text, and the invalidated section must have clear beginning and end markers. Fading the text, adding strikethrough, or appending “Undone” at the end of a paragraph is not sufficient on its own to establish which narrative it belongs to. The crucial distinction is especially easy to lose when copied as plain text.
All three approaches should place current facts immediately after the undo explanation and put the prompt to act again at the end of the valid narrative. The precise presentation depends on the work’s layout constraints. These are editing options, not a claim that any platform already provides these operations.
5. A second handover needs its own new narrative record
If the player enters “Hand over the key” again, do not simply remove the invalidated label from the old record. Identical input does not automatically establish identical results. The player may have asked what the key is for first, changing the basis for the doorkeeper’s response. Being allowed through and entering the room, as described in the original feedback, also need to be established again.
Even if the player immediately repeats the action in this example under exactly the same conditions, treat the resulting feedback as a new, valid piece of narrative. The author may reuse the wording, but the old record still belongs to the previously undone attempt. Otherwise, the next undo makes it difficult to identify which action is being withdrawn.
Before delivering the draft, read through three paths: stop after undoing and check whether the current passage alone makes it clear who has the key; undo and ask a question instead, checking for any lingering description of entering the room or seeing the envelope; undo and hand over the key again, checking that only the new feedback establishes the current facts. If you find a contradiction, return to the worksheet and check the action dependencies of the relevant sentence.
This method applies when the action state has already been rolled back correctly and the text still needs to make clear which narrative its passages belong to. If the actual state still assigns the key to the doorkeeper, wording cannot replace a state correction. If the work deliberately lets characters remember undone experiences, its narrative rules need a separate explanation; this example’s “has not happened yet” cannot be applied directly.






