Connections

Connecting Nodes

Connections are the links between nodes that define how your story flows. Learn how to create, manage, and organize connections to build complex interactive narratives.

Overview

Connections are the essence of StoryFlow Editor's visual scripting system (also referred to as the node editor). By connecting nodes together, you create the logic and flow of your interactive story without writing any code. Connections determine how execution moves from node to node and how data values are passed between them, creating the narrative paths your players will follow.

Types of Connections:

Key Concept

Execution flow connections (white) control WHEN nodes run, while data connections (yellow/cyan) control WHAT values are passed between nodes. A node can have both types of connections simultaneously.

Creating Connections

Creating connections in StoryFlow Editor is intuitive with a simple drag-and-drop interface.

Basic Connection Steps:

  1. Locate the output handle on the source node (usually on the right side)
  2. Click and hold on the output handle
  3. Drag your mouse toward the target node
  4. The connection line follows your cursor as you drag
  5. Hover over the target node - it will highlight to show it can accept the connection
  6. Release the mouse button to create the connection

Visual Feedback

As you drag a connection, valid target nodes will highlight. If a node doesn't highlight, it means the connection is not compatible (wrong type or already at max connections).

Example: Connecting Dialogue Options

  1. Add a Dialogue node with two options: "Accept Quest" and "Decline Quest"
  2. Create two more Dialogue nodes for the responses
  3. On the first Dialogue node, find the output handle next to "Accept Quest"
  4. Drag from that handle to the "Accept" response Dialogue node
  5. Repeat for the "Decline Quest" option, connecting to the other response node

Now when the player clicks "Accept Quest", the story will flow to the acceptance dialogue. If they click "Decline Quest", it goes to the decline dialogue instead.

Connection Types

StoryFlow Editor uses three distinct connection types, each with its own color and purpose.

Primary Handles (Execution Flow)

Visual: White with play icon (triangle)

Purpose: Controls the order of execution. When a node finishes executing, it follows its primary connections to determine which node runs next.

Found On:

Boolean Handles (Data Flow)

Visual: Yellow circle with play icon overlay

Purpose: Passes true/false values between nodes for conditional logic.

Found On:

Integer Handles (Data Flow)

Visual: Cyan circle with play icon overlay

Purpose: Passes numeric values between nodes for calculations and comparisons.

Found On:

Type Safety

StoryFlow Editor enforces strict type safety to prevent logic errors. Connections are validated automatically to ensure compatibility.

Connection Rules:

Invalid Connections

If you try to create an invalid connection, the editor will prevent it. The target node won't highlight when you drag an incompatible connection over it. This prevents bugs and ensures your story logic is always valid.

Why Type Safety Matters:

Editing Connections

Managing existing connections is just as important as creating them. StoryFlow Editor provides several ways to edit and delete connections.

Selecting and Deleting Connections:

Connection Limits:

Different handles have different connection limits based on their purpose:

Organizing Connections:

Best Practices

Follow these best practices to create clear, maintainable node graphs with well-organized connections.

Visual Organization:

Connection Clarity:

Common Patterns:

1. Simple Option:

CodeCopy

Start → Dialogue (with options) → Response Dialogues → End

2. Conditional Branch:

CodeCopy

Start → Get Boolean → Branch → (True: Dialogue A, False: Dialogue B) → End

3. Variable Update:

CodeCopy

Execution → Get Integer → Plus → Set Integer → Continue

4. Complex Condition:

CodeCopy

Get Bool 1 ↘
              AND → Branch → Result
Get Bool 2 ↗

Advanced Tip

Use the minimap (enabled in Settings) to see your entire node graph at once. This helps you visualize connection patterns and identify areas that need reorganization.

Debugging Connections:

Quick Reference

Creating: Drag from output handle to target node

Deleting: Double-click the connection line

Types: White (execution), Yellow (boolean), Cyan (integer)

Rule: Only same-colored handles can connect

Next Steps

Now that you understand connections, learn about Variables to create dynamic, state-driven stories with persistent data across your narrative.

→ Visual Scripting→ Node Types→ Variables→ Best Practices

← Previous: Dialogue Editor

Next: Variables →