Node reference
Description: Graph node behavior, availability, and common uses.
Nodes define the steps in a dialogue or quest. The runtime follows connections according to their conditions. It pauses when it needs player input or a change in game state. Your game supplies the dialogue UI, quest log, and any custom actions.
Right-click the canvas to insert a node. The menu groups actions under section headings. The Insert menu notes below give the labels to look for. This reference uses the node names shown in the editor and runtime documentation. Select a node to edit its properties. Some controls, such as dialogue text and Gate conditions, also appear directly on the node. Narratyr creates entry nodes automatically when you create a graph.
In this reference, flow means one path currently running through a graph. A quest can have several flows at once. Quest availability includes quest fragments unless stated otherwise. A fragment is a reusable graph that runs as part of its calling quest.
Choose a node
| Node | Available in | Use it to |
|---|---|---|
| Dialogue Entry | Dialogue | Mark the default starting point. |
| Quest Node | Quest | Mark the quest or fragment's starting point. |
| Dialogue Node | Dialogue | Write a spoken line and optional player replies. |
| Dialogue Stack | Dialogue | Edit a sequence of spoken lines together. |
| Choice Node | Both | Ask the player to choose without a preceding spoken line. |
| Hub Node | Both | Choose the first available branch automatically. |
| Jump Node | Both | Redirect to another node in the same graph. |
| Gate | Both | Wait until a condition becomes true. |
| Instruction Node | Both | Change variables or call functions. |
| Objective | Quest | Introduce a task for the player. |
| Update Objective | Both | Change an objective's state, visibility, or requirement. |
| Fork | Quest | Start several branches within the same quest. |
| Event Listener | Quest | React when a condition becomes true. |
| Return | Quest | Finish a listener response or a secondary branch. |
| Start Dialogue | Both | Run a dialogue, then resume the calling flow. |
| Start Quest Fragment | Quest | Run a reusable part of the current quest. |
| Start Quest (Async) | Both | Start an independent quest and continue immediately. |
| End Conversation | Dialogue | End a conversation or return to its caller. |
| Complete Quest | Quest | Finish a quest or return from a fragment. |
| Custom Node | Both | Request a project-specific action from game code. |
| Comment | Both | Add notes and organize the canvas. |
Entry nodes
Dialogue Entry
Insert menu: choose Dialogue → Dialogue Graph Start (shown only when the entry is missing).
Dialogue Entry marks where a dialogue normally begins. Narratyr creates one for each dialogue graph and prevents its deletion. Connect it to the first step of the conversation.
Use the entry for a conversation's usual opening. A Start Dialogue node can instead target a specific node when the caller needs to skip the opening.
Quest Node
Insert menu: choose Objectives → Insert Quest Node (shown only when the entry is missing).
Quest Node marks where a quest or fragment begins. Narratyr creates it when you create the graph. Edit the quest's title and description in the graph properties.
Connect it to the first action, objective, or branching node. In a fragment, the entry begins work for the parent quest rather than creating a separate quest in the player's log.
Dialogue and player input
Dialogue Node
Insert menu: choose Dialogue → Dialogue Line.
A Dialogue Node stores a speaker and their spoken text. Your game displays the line and advances the runtime when the player or presentation system is ready. Use one node for each line or speech that needs its own speaker, choices, or presentation data.
Choose a speaker entity, write the text, and connect the next step. You can add player replies directly to the node. Their order determines the order presented to the player. Connect each reply to its own continuation.
Replies can have conditions that hide them or disable them. A true hide condition removes the reply. A true disable condition keeps it visible but prevents selection. An optional disabled label can explain why, such as "Requires a key."
Delivery notes provide acting guidance. Performance fields can supply presentation data, either for this line or from a shared Performance entity. Your game interprets those fields. Spoken text and reply labels support text directives, including variable values and conditional wording.
Dialogue Stack
Insert menu: choose Dialogue → Dialogue Sequence.
A Dialogue Stack groups a linear sequence of Dialogue Nodes into one editing view. Use it for an exchange with several speakers and no choices or conditional branches between lines. The runtime still plays the individual lines in order.
Choose Dialogue Sequence to write an exchange, or select an eligible chain of Dialogue Nodes and use To Stack. The chain must have no player choices or conditional connections between its members. Connections enter at its first line and leave at its last line.
A stack changes how you edit the conversation, not what the player sees. Keep branching dialogue outside the stack, or unstack the lines when they need separate connections.
Choice Node
Insert menu: choose Dialogue → Display Choice in dialogue graphs. Choose Presentation → Display a Choice in quest graphs.
A Choice Node pauses the flow and offers labeled options without a spoken line. Use it for a topic menu, a travel decision, or a quest decision that doesn't need an NPC to speak first. Your game displays the options and tells the runtime which one the player selects.
Add choices in display order and connect each choice to its continuation. As with replies on a Dialogue Node, you can hide or disable a choice with a condition and provide a disabled label. A choice type can add project-defined metadata to each option.
Use a Hub Node when game state should choose the branch automatically.
Branching, waiting, and actions
Hub Node
Insert menu: choose Control Flow → Branch on Conditions.
A Hub checks its outputs in order and follows the first connection whose condition passes. It doesn't show a menu or wait for player input. Use it to select a greeting or choose a quest outcome based on variables.
Order specific conditions before general ones. Check whether the player returned the relic before checking whether they accepted the quest. Put an unconditional output last when the flow needs a fallback. An unconditional output placed first takes precedence over every later output.
A Hub doesn't wait for a failed condition to become true. Use a Gate for that.
Jump Node
Insert menu: choose Control Flow → Jump to Node.
A Jump redirects the flow to its selected target in the same graph. Use it to return to a topic menu or join a distant branch without drawing a long connection across the canvas.
Choose the target node on the Jump. A Jump doesn't remember where it came from or return there later. Use Start Dialogue or Start Quest Fragment to call another graph and return afterward.
Give loops a way to pause or exit. A loop made entirely of automatic steps can keep running without giving the player a chance to act.
Gate
Insert menu: choose Wait for Condition (Gate) under Objectives in quest graphs or Control Flow in dialogue graphs.
A Gate pauses its current flow until its condition is true. If the condition already passes, the runtime continues immediately. Use it to wait for the player to collect an item, finish objectives, or reach a location.
Choose one of the node's authoring modes:
- Wait on Variable: select Boolean variables. All selected variables must be true.
- Wait on Objective: select objectives and their required states. All selected requirements must match.
- Wait on Expression: write a condition, such as
RelicsFound >= 3.
The runtime checks again when variables or quest state change. If a condition reads other game state through a function, game code must notify the runtime when that state changes. Functions used by Gates must be pure, meaning they read state without changing it.
A Gate pauses only its own flow. Other branches started by a Fork or an asynchronous Event Listener can continue. To wait for several branches to finish, have them update objectives or flags, then use a Gate that checks all the required results.
Instruction Node
Insert menu: choose Execute Instruction under Objectives in quest graphs or Quest Interaction in dialogue graphs.
An Instruction Node executes statements, then continues. Use it to record a decision, change a variable, or call a game function at a specific point in the flow.
An instruction after the player accepts a quest might set
AcceptedRelicQuest := true. Declare the variable in the project first. See
Expressions for statement syntax and Functions for calls.
Narratyr's runtime handles variable assignments and built-in functions. Your game implements project-defined functions, such as granting an item or playing a sound. Declaring a function in Narratyr doesn't implement that action in the game.
Use a blocking Custom Node when the flow must wait for game code to finish an action before continuing.
Objectives
Objective
Insert menu: choose Objectives → Introduce Objective.
An Objective introduces a task, such as "Find the missing scout." The runtime activates the objective when its node runs, then continues without waiting for the player to finish the task.
Set the objective's name and description for your game's quest log. Its type can provide project-specific fields, such as a target entity or required item count. Game code uses those fields. You must implement the task's gameplay checks in your game.
- Hidden controls whether the objective should appear in the quest log.
- Optional excludes it from queries that check whether all required objectives are resolved.
- Group organizes objectives under a named heading, such as "Act 1."
For a typical task, connect Objective to a Gate that waits for the gameplay condition, then to Update Objective to mark the task Completed. Your graph still needs a Complete Quest node to finish the quest. Optional doesn't complete or delay the quest by itself.
Update Objective
Update Objective changes one existing objective and immediately continues. Use it to complete a task after a conversation or reveal a hidden task. You can also mark an objective as Not Applicable when the player chooses another route.
Select the Quest, then the Objective, and choose the fields to change:
- Status: choose Completed, Failed, Not Applicable, or Active. Active reopens a resolved objective.
- Hidden: hide or reveal the objective.
- Optional: change whether the objective is required.
Choose Leave unchanged for any field you want to preserve. If you reopen an objective, add instructions to reverse any rewards or other actions that your game needs to undo.
In a quest graph, Current quest targets the executing quest. In a fragment, that means its parent quest. In a dialogue, select an explicit quest, even when a quest started the conversation. Changing the selected Quest clears Objective so you can choose a matching task.
The editor simulator follows this node but doesn't model objective state. Verify state changes and objective-dependent conditions in your exported game.
Concurrent branches and reactions
Fork
Insert menu: choose Events → Start Parallel Flow.
A Fork starts several branches within the same quest. Use it for tasks that begin together and can progress independently, such as finding a scout while collecting supplies.
The first output continues the flow that entered the Fork. Each later output starts a secondary flow. Reorder the outputs to change which branch continues the current flow. Each branch can wait at its own Gate while the others continue.
End a secondary branch with Return. To wait for branches before finishing the quest, use a Gate on the continuing branch that checks their results. Connecting branches to the same node doesn't make that node wait for all branches.
A Complete Quest node set to end the quest stops every branch, even if others are still waiting. Use Return when you only mean to finish one secondary branch.
Event Listener
Insert menu: choose Events → Listen for Event.
An Event Listener watches a condition independently of the main path through the graph. Connect its output to the steps that should run when the condition becomes true. Use it for reactions such as unlocking an optional task when the player discovers a location.
The listener fires when its condition changes from false to true. To fire again, the condition must become false and then true again. A condition that's already true when its graph starts can fire immediately. For a once-only reaction, include a guard variable in the condition and set that variable in the listener's response.
Choose how the response runs:
- Normal listener: interrupts the current flow, runs its response, and resumes the interrupted position when it reaches Return. Use this for brief actions. A Gate in the response also pauses the interrupted flow until the response returns.
- Asynchronous listener: starts a secondary flow while the main flow continues. Use this for a side sequence that may wait at Gates. End the sequence with Return. The listener won't start another copy while its previous response is still running.
Higher Priority values run first when several listeners become eligible together. Give listeners distinct priorities when their order matters.
A listener in the root quest graph remains available while that quest runs. A listener in a fragment is available only while the main flow is running that fragment or a graph it called. Listeners don't activate in fragments visited only by secondary flows. Use Gates within those flows instead.
Like Gates, listeners require pure functions in their conditions. Game code must notify the runtime about changes to external state those functions read.
Return
Insert menu: choose Control Flow → Return from Flow.
Return finishes a normal Event Listener response and resumes the interrupted flow. At the end of a secondary branch started by a Fork or asynchronous listener, it ends that branch without ending the quest.
Use Return after a listener updates a variable or after a secondary branch finishes its objective. A normal listener response needs an explicit Return to resume the interrupted position. Leaving it without a continuation abandons that position instead.
Use a fragment's Complete Quest node with return behavior to leave a quest fragment. Return isn't a general ending for a quest's main path.
Calling other graphs
Start Dialogue
Insert menu: choose Presentation → Start Dialogue in quest graphs. Choose Dialogue → Enter Sub-Dialogue in dialogue graphs.
Start Dialogue runs another dialogue and waits for it to return before continuing along its outgoing connection. Select the dialogue entry for its usual opening, or a specific node to start partway through it.
Use it for a conversation inside a quest, or to reuse an exchange from several dialogues. The caller resumes when the called dialogue reaches an End Conversation node with Auto or Return behavior. An explicit End conversation (unwind everything) ends the entire flow instead of resuming the caller.
Start Quest Fragment
Insert menu: choose Control Flow → Enter Quest Fragment (Subroutine).
Start Quest Fragment runs a quest fragment as part of the current quest. Select the fragment entry and connect the step that should follow its return. The calling flow waits while the fragment runs.
Use fragments to divide a large quest into phases or reuse a sequence across quests. The fragment keeps its parent's quest identity, and its objectives belong to that parent. It doesn't create an independent quest log entry.
A fragment's Complete Quest node returns to the caller by default. Setting that node to End quest (unwind everything) ends the parent quest instead.
Start Quest (Async)
Insert menu: choose Start Quest in Parallel under Objectives in quest graphs or Quest Interaction in dialogue graphs.
Start Quest (Async) asks the runtime's quest manager to start a separate quest, then continues the current flow immediately. Select a standalone quest as its target. The new quest has its own progress and doesn't return to this node when it ends.
Use it when accepting a side quest during a conversation, or when finishing one phase should launch an independent quest. Use a Fork for concurrent work within the same quest, or Start Quest Fragment for a sequence that must return before the caller continues.
The editor simulator continues past this node without running the independent quest. Test the interaction between the two quests in your exported game.
Endings
End Conversation
End Conversation marks an explicit dialogue ending. Use separate ending nodes when different branches need different endings. Its Behavior controls what happens to the caller:
- Auto: return when another graph called this dialogue, or end the conversation otherwise.
- End conversation (unwind everything): end the entire flow, including nested calls.
- Return to caller: resume the graph that called this dialogue. With no caller, end the flow.
Keep Auto or Return for reusable exchanges that should let their caller continue. Use an explicit end when the entire conversation should stop, even inside a nested exchange.
Complete Quest
Complete Quest ends the quest with Success or Fail, or returns from a fragment, depending on Behavior:
- Default: end a standalone quest, or return to the caller in a fragment.
- End quest (unwind everything): end the whole quest, even from inside a fragment.
- Return from subgraph: leave the fragment and resume its caller without ending the quest.
Use explicit success and failure endings for the quest's outcomes. Use the fragment return behavior when a reusable phase has finished its work. Ending the quest stops all its concurrent branches without waiting for unfinished objectives or other flows.
Custom behavior and editor notes
Custom Node
A Custom Node sends an event and its field values to game code. Use it for actions that need a dedicated authoring form, such as Play Sound, Move Camera, or Load Area.
Define the node's fields through an Entity Type for custom nodes and its Property Sets. Your game must handle the event and perform the action. Naming a custom node "Play Sound" doesn't make the runtime play audio on its own.
The custom node type determines whether the flow pauses:
- Blocking: the runtime waits until game code resumes the flow. Use this when later nodes depend on the action finishing.
- Non-blocking: the runtime emits the event and immediately follows the outgoing connection. Use this for actions that can run while the graph continues.
A custom node without a type continues without pausing. The simulator can show the node's data, but it doesn't perform your game's custom action.
Comment
A Comment adds text to the canvas without affecting runtime behavior. Use it to record writing notes or explain a branch. You can also group a section of the graph inside a Comment and change its color and text size.
Connect the nodes inside a Comment as usual. The runtime ignores the Comment itself.