Guide: Creating a Dialog

Create a branching conversation that can be started by dialogID.

Workflow

  1. Open Tools → Dialogue Graph System → Dialogue Graph.
  2. Create a new graph.
  3. Add nodes and connect them.
  4. Save the graph.
  5. Add it to DialogManager.dialogGraphs.
  6. Start it from gameplay code.

Example starter script

using DialogSystem.Runtime.Core;
using UnityEngine;

public class TavernNpc : MonoBehaviour
{
    public void Talk()
    {
        DialogManager.Instance.PlayDialogByID("tavern_npc_intro");
    }
}

Validation checklist

  • Start has an outgoing link
  • every choice option has a valid target
  • the dialogID mapping exists in the manager
  • the scene has a working UI panel

New graph dialog

New graph dialog

The creation prompt where you name the graph asset and set its dialog ID.