Green and red cords mark two routes around a slate tile.

Branching narrative design best practices — practical guide and examples

A player records a tide mark at Station, reaches Bridge, and signals the pilot. Another player skips the mark, reaches a separate copy of Bridge, and takes the stair. Keep extending those copies independently, and the story splits into routes that never rejoin.

A stateful foldback lets both routes enter one shared Bridge scene while preserving their consequences. The scene remembers whether the player recorded the mark and uses that fact to determine which choices are available. This is one of the most useful branching narrative design best practices: separate the content a route visits from the state it carries forward.

Choose where routes diverge and rejoin

Three structures serve different purposes:

  • Divergent branches lead into separate continuations or endings. Use them when the resulting experiences need different scenes.
  • Foldback branches separate briefly and return to shared content. Use them when different actions can plausibly lead to the same situation.
  • Stateful foldback branches rejoin while retaining information that changes later text, choices, or outcomes. Use them when the shared situation should respond to earlier decisions.

A join needs an explicit contract: which facts survive, and where will the story read them? Without that contract, a consequential-looking choice can disappear as soon as its route rejoins.

In Weather Line, recording the tide mark grants permission to signal the pilot. Both routes can share Bridge because arriving there does not have to erase that permission.

Define Weather Line’s state and transitions

Begin at Station with three values:

  • clock = 0: no ticks have elapsed.
  • token = false: the tide mark has not been recorded.
  • inspected = false: the Station sign has not been inspected.

Each transition checks its condition, applies its listed changes, and enters its destination. Any value without a listed change stays as it is. Pilot and Stair are terminal nodes: reaching either ends the route.

Station → Bridge Record tide mark Condition: always Writes: token = true; clock = clock + 1 Station → Bridge Go directly to Bridge Condition: always Writes: none Station → Station Inspect sign Condition: inspected = false Writes: inspected = true Bridge → Pilot Signal the pilot Condition: token = true AND clock <= 1 Writes: none Bridge → Stair Take the stair Condition: always Writes: none

Weather Line’s complete node-and-edge map: four nodes and five transitions, including one conditional return to Station.

Recording the mark costs one tick and leads to Bridge with token = true. Going directly leads to the same Bridge with token = false and clock = 0. Inspecting the sign consumes no tick and returns to Station, where the inspection option is now unavailable.

That return edge cannot repeat indefinitely. After inspection, inspected = true, so the condition for inspecting again fails. The player must then record the mark or go directly to Bridge.

Preserve consequences in the shared scene

Bridge should use the state it receives. Do not reset token or clock when entering it.

The shared scene can acknowledge the route with a short variation:

  • If token = true: “You have the tide mark ready for the pilot.”
  • If token = false: “You arrived without recording the tide mark.”

Then evaluate the available actions. Signaling requires both the mark and a clock value of 1 or less. Taking the stair is always available.

The result preserves a meaningful difference: the player who spent one tick recording the mark gains an option that the faster route lacks. Both players occupy the same scene, but they have different future permissions. They can also choose the same Stair ending; having the mark grants an option without forcing its use.

This gives each kind of consequence a clear home. A brief acknowledgment belongs in conditional text. Permission to act belongs in a choice condition. A different final outcome belongs in a separate ending.

Write choices that explain the tradeoff

Players need enough information to understand what they are deciding. At Station, establish that the pilot requires the tide mark and will answer only while the clock is 1 or lower. The sign can explain those rules without consuming time.

Choice wording can then make the immediate effects clear:

  • “Record the tide mark for the pilot. Takes one tick.”
  • “Head straight to Bridge without the tide mark. Takes no time.”
  • “Inspect the Station sign. Takes no time; available once.”

At Bridge, offer “Signal the pilot using the tide mark” only when its condition passes. Always offer “Take the stair.” The earlier explanation lets players understand why the pilot option appears or is absent.

A label such as “Prepare” would hide the useful distinction. “Record the tide mark for the pilot” connects the action to its future purpose while leaving room for the scene itself to supply atmosphere.

Verify every reachable Weather Line path

Read the map from its initial state and carry each value through every transition. Weather Line has six complete legal paths: three without inspection and three with inspection. The table also checks two attempts to signal without a mark and an attempt to inspect twice.

Expected results from a paper readback of the model
Choices from the initial state State at ending or rejection: clock, token, inspected Expected result
Record mark → Signal pilot 1, true, false Pilot ending
Record mark → Take stair 1, true, false Stair ending
Go directly → Take stair 0, false, false Stair ending
Inspect sign → Record mark → Signal pilot 1, true, true Pilot ending
Inspect sign → Record mark → Take stair 1, true, true Stair ending
Inspect sign → Go directly → Take stair 0, false, true Stair ending
Go directly → Attempt to signal pilot 0, false, false Blocked at Bridge: no token
Inspect sign → Go directly → Attempt to signal pilot 0, false, true Blocked at Bridge: no token
Inspect sign → Attempt to inspect again 0, false, true Blocked at Station: already inspected

The readback confirms that both endings are reachable, the direct route cannot reach Pilot, and inspecting once removes the return option. Every legal route reaches an ending in two or three transitions.

The clock check has a specific limit here: all reachable Bridge states have a clock value of 0 or 1. The successful pilot paths exercise the allowed boundary at 1. This model has no late-arrival path; adding a delay would require checking that new state against the same condition.

These are paper/model results. They establish the expected behavior of the stated rules; engine behavior and player understanding still need checks in a playable implementation.

Inline finite state traces for weather-line-tests.json

Save the following JSON as weather-line-tests.json to keep the model’s expected traces beside an implementation. Each trace entry records the destination node followed by clock, token, and inspected. Rejected choices leave the listed state unchanged.

{ "trace_fields": ["node", "clock", "token", "inspected"], "initial": ["Station", 0, false, false], "paths": [ { "choices": ["record_tide_mark", "signal_pilot"], "trace": [ ["Bridge", 1, true, false], ["Pilot", 1, true, false] ] }, { "choices": ["record_tide_mark", "take_stair"], "trace": [ ["Bridge", 1, true, false], ["Stair", 1, true, false] ] }, { "choices": ["go_directly", "take_stair"], "trace": [ ["Bridge", 0, false, false], ["Stair", 0, false, false] ] }, { "choices": ["inspect_sign", "record_tide_mark", "signal_pilot"], "trace": [ ["Station", 0, false, true], ["Bridge", 1, true, true], ["Pilot", 1, true, true] ] }, { "choices": ["inspect_sign", "record_tide_mark", "take_stair"], "trace": [ ["Station", 0, false, true], ["Bridge", 1, true, true], ["Stair", 1, true, true] ] }, { "choices": ["inspect_sign", "go_directly", "take_stair"], "trace": [ ["Station", 0, false, true], ["Bridge", 0, false, true], ["Stair", 0, false, true] ] } ], "rejected_choices": [ { "after": ["go_directly"], "state": ["Bridge", 0, false, false], "choice": "signal_pilot", "reason": "token is false" }, { "after": ["inspect_sign", "go_directly"], "state": ["Bridge", 0, false, true], "choice": "signal_pilot", "reason": "token is false" }, { "after": ["inspect_sign"], "state": ["Station", 0, false, true], "choice": "inspect_sign", "reason": "inspected is true" } ] }

Carry the model into a playable story

inkle’s Writing with ink documents choices, gathers, diverts, and variables as concrete mechanics for branching, rejoining, labeled jumps, and state in ink. Those mechanics offer one way to express this architecture. The design work remains explicit: define the initial values, record each transition’s changes, and decide which conditions govern later actions.

For a case study of Baldur’s Gate 3 dialogue branching, use the same questions to guide your analysis: where do routes separate, where do they rejoin, and what earlier information affects the choices after a join?

When you build a first playable Twine story, implement the shared Bridge and repeat the table’s paths in the story itself. Check that its wording explains the tradeoff, its state survives the join, and its available choices match the model. Expand the scene once those consequences remain visible and consistent.