Dialogue System

Node-based dialogue system with branching choices, conditions, events, and typewriter text effect.

5 scripts intermediate Core system RPGs and story-driven games

The full files for this kit are not published yet, so there is no download. The preview shows how the main pieces fit.

What is inside

  • DialogueManager.cs Not published yet
  • DialogueUI.cs Not published yet
  • DialogueNode.cs Not published yet
  • DialogueData.cs Not published yet
  • DialogueCondition.cs Not published yet

What it does

  • Branching dialogue with player choices
  • Condition-based branches (quest state, items, etc.)
  • Typewriter text animation
  • Speaker portraits and names
  • Event triggers on dialogue nodes
  • ScriptableObject dialogue trees

Setup, in order

  1. Import all scripts
  2. Create dialogue trees using Create > Dialogue > Dialogue Data
  3. Set up the DialogueUI canvas
  4. Attach DialogueManager to a persistent manager object
  5. Trigger dialogue from NPCs or triggers

If something does not work

Dialogue starts but the text never appears
Check that the DialogueUI references are assigned in the Inspector and that the panel's Canvas is enabled when the conversation starts.
Conditions never pass
Conditions compare game state such as quest progress or items. Make sure the state they read is set before the dialogue node is reached.

Preview

An excerpt of the kit's main types, and the Inspector fields they expose.

InspectorExcerpt

Fields from the kit's preview excerpt; the full kit has more.

Dialogue Name
Nodes DialogueNode · Size 0
Excerpt
C#
// DialogueData.cs - ScriptableObject dialogue tree
[CreateAssetMenu(menuName = "Dialogue/Dialogue Data")]
public class DialogueData : ScriptableObject
{
    public string dialogueName;
    public DialogueNode[] nodes;
}

// DialogueManager.cs - Core dialogue logic
public class DialogueManager : MonoBehaviour
{
    public void StartDialogue(DialogueData dialogue) { /* ... */ }
    public void SelectChoice(int choiceIndex) { /* ... */ }
    public void AdvanceDialogue() { /* ... */ }
}