• Home
  • Blog
  • Gallery
  • Pricing
  • Home
  • Blog
  • Gallery
  • Pricing
Start creating

Create.Play.

Creator blog

Home/Blog/Interactive narrative

Keeping Branching Diagrams Under Control: Node IDs, Entries, Exits, and Conditions

A branching diagram ready for production is a routing map shared by the team, rather than a story poster. Every node must have a stable ID, clear entry conditions, verifiable state changes, and explicit exits. The diagram answers “where do we go?”; the script answers “what do we perform?” Cramming entire pages of dialogue into a flowchart only makes both impossible to maintain.

D
DramaFork Editorial TeamInteractive storytelling and AI production
2026.08.24Estimated reading time: 11 min
Cover of the blog article “Keeping Branching Diagrams Under Control: Node IDs, Entries, Exits, and Conditions”
Article contents
Creator blog
  1. 01Introduction
  2. 02Define the Smallest Unit of a Node First
  3. 03Include Only Necessary Fields on a Node Card
  4. 04Distinguish Four Types of Connections on the Diagram
  5. 05Entries and Exits Must Be Accounted For
  6. 06Separate Narrative, Production, and Testing Diagrams
  7. 07Protect Collaboration with Versions and Change Logs
  8. 08Walk Through Paths During Review, Not Just Individual Nodes
Back to article top

Introduction

A branching diagram ready for production is a routing map shared by the team, rather than a story poster. Every node must have a stable ID, clear entry conditions, verifiable state changes, and explicit exits. The diagram answers “where do we go?”; the script answers “what do we perform?” Cramming entire pages of dialogue into a flowchart only makes both impossible to maintain.

Define the Smallest Unit of a Node First

A node should be a piece of content that can be entered, played, and exited independently. It usually has one primary narrative objective, continuous time and space, and a defined set of exits. A shot change does not require a new node; splitting is necessary when entry conditions, available options, or state updates differ.

In 《零点回拨》, “the protagonist receives a call in the archive room” can be assigned C03_S02_N010: chapter three, scene two, node ten. If answering and declining the call play different videos, their exits lead to N020A and N020B respectively. Do not use plot titles as IDs, because titles change; stable numbering lets scripts, assets, code, and test reports refer to the same object.

Include Only Necessary Fields on a Node Card

Each node card should include: node ID, short title, entry conditions, media assets, state on entry, player interaction, state updates on exit, exit IDs, exception handling, owner, and version. Entry conditions describe who can enter, exits describe where to go, and state updates describe what happened.

For example:

ID: C03_S02_N010
Entry: caller_known = true
Asset: C03_S02_N010_v05.mp4
Interaction: Answer / Listen while muted / Hang up
Update: call_action = answer|listen|hangup
Exits: N020A / N020B / N020C
Exception: If there is no input, enter N020C

Do not leave “if the relationship is good, perhaps she will say something else” in a note. Either make it an entry or variant condition, or remove it; vague conditions inevitably lead to missing footage or programmers having to guess.

Distinguish Four Types of Connections on the Diagram

Use different line styles or labels for ordinary transitions, conditional transitions, failure or timeout routes, and chapter jumps. Color should only supplement other information, never serve as the sole indicator, because printing, color vision, and export formats can make colors ineffective. Write the condition name directly on every conditional connection; do not use “yes/no” detached from the question it answers.

Use connector nodes for connections across pages, and show both the source and destination. Do not draw a line across the entire canvas; the more the diagram resembles spaghetti, the harder it is for reviewers to spot dead ends.

Entries and Exits Must Be Accounted For

Every node except the opening must have at least one valid entry; every node except an ending must have at least one exit. Run an automated or manual inspection: nodes without entries are islands, nodes without exits are dead ends, and links to nonexistent IDs are dangling references. Optional content also needs a way out, so players can return to the main storyline after examining a clue.

For every choice, also define where to go when there is no input, a resource is missing, or an old save causes an error. The default route is part of narrative design, rather than a fallback improvised by the programmer.

Separate Narrative, Production, and Testing Diagrams

The narrative diagram shows player paths and emotional pacing; the production diagram expands shared locations, actors, and asset variants; the testing diagram marks condition combinations and coverage status. These three views can read the same node data, but do not need to be squeezed into one diagram. Directors care about how to shoot scenes in the same location, testers care about how to reach them, and readers should not be overwhelmed by every field at once.

Maintain one authoritative node table first, then generate different views. If the diagram and table are updated separately by hand, they will eventually diverge. Small teams should at least establish this rule: the table governs node routing, and the visual diagram is for discussion only; export it again after each script lock.

Protect Collaboration with Versions and Change Logs

Do not reuse a node ID once it has entered filming. After deleting N030, retain a record of its retirement and assign a new number to new content to avoid mistaking old files for current ones. For every change, record “who, when, why, and which entries, exits, and assets are affected.” Once the shooting version is locked, any branch change must be communicated to the writers, production team, programmers, and testers at the same time.

Add status labels to high-risk nodes: draft, narrative locked, ready to shoot, filmed, integrated, and verified. Status is permission for the next role to begin work, rather than a decorative progress indicator.

Walk Through Paths During Review, Not Just Individual Nodes

Correct individual nodes do not guarantee that an entire route works. Walk through at least four paths: the fastest main storyline, the most clues, the lowest relationship level, and timeouts throughout. For each pass, record visited nodes, state changes, and the ending, and confirm that every important promise has a payoff. Then work backward from each ending to check its prerequisites and find combinations players can never satisfy.

Next step: choose one chapter and build an authoritative node table, assign stable IDs to all nodes, and fill in entries, state updates, exits, and no-input routes. Once it is complete, ask someone who did not participate in the writing to traverse all four paths using only this table.

Explore product capabilities Play interactive stories

Updated 2026.10.04

Explore this topicMaking interactive filmsInteractive storytelling
PLAY / DISCOVER

Related works and experiences

Browse the works index
Interactive film · Concept preview

One Bed Left

One intensive-care bed remains and several patients need it. Every clinical decision carries a human cost.

Interactive film · Concept preview

The Black Rose Witness

Caught between a mafia marriage and a deadly testimony, a witness must decide whom to trust before the truth turns violent.

Interactive film · Concept preview

Elevator Thirteen

An elevator keeps stopping on a thirteenth floor that should not exist, where a missing reflection may know how to escape the loop.

Interactive film · Concept preview

Last Train to Tomorrow

The last train runs toward two futures: a thriving city and a ruined world. Your choices decide its final stop.

Continue reading

Browse more articles
Cover of the blog article “Write a ‘Not-to-Do List’ Before Starting: How to Keep Your First Project Under Control”
Product workflow2026.08.18 · 12 min

Write a “Not-to-Do List” Before Starting: How to Keep Your First Project Under Control

The most common failure in a first interactive film game is not a lack of creativity, but putting every good idea into the first version. Characters, scenes, branches, mechanics, and platforms keep multiplying until nothing gets finished. The solution is to establish a “not-to-do list” before writing the full script and define a trigger for each limit.

Cinematic editorial illustration: fading motion afterimages of a conductor lead out of a waiting room, ultimately leaving a…
Visual Novel Development2026.10.13 · 17 min

Visual Novel Fast-Forward: Keeping Characters and Backgrounds in Their Correct Final States

Record skippable movement and fade-outs separately from required character exits, background changes, and opacity states. Use a sequence final-state table to work through whether normal playback and fast-forwarding midway reach the same stage result.

In a seaside waiting room at dusk, a traveler talks with a clerk.
Creation tutorials2026.11.20 · 13 min

What Can a Character Reveal? Keeping Story Chats Spoiler-Free

A player has just returned a key, but the character comforts them about a farewell still to come. A wharf dialogue shows how to set clear boundaries for chat outside the story.

From a story to a playable world.

Create interactive narrative games with DramaFork: connect scripts, characters, shots, and choices into a playable first version.

Explore & play

  • Explore gallery
  • Interactive film
  • Text game
  • Character IP
  • Rankings
  • Works index

Create & collaborate

  • My creations
  • Film studio
  • Text-game studio
  • Character studio
  • Creator partnership

Reading room

  • Creator blog
  • Story topics
  • Article archive

Story guides

  • Interactive storytelling
  • Making interactive films
  • Designing text games
  • Character and worldbuilding

Plans & credits

  • Pricing
  • Credits

Policies & support

  • Privacy
  • Terms
  • Cookies
© 2026 DramaFork/DramaFork · Interactive narrative games
Press Enter to send, or drag away and release.