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
- Import all scripts
- Create dialogue trees using Create > Dialogue > Dialogue Data
- Set up the DialogueUI canvas
- Attach DialogueManager to a persistent manager object
- 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.
Inspector
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() { /* ... */ }
}Related
- RPG Essentials KitCore RPG systems: health, inventory, dialogue, quests, save/load, and damage numbers — everything for an RPG prototype.
- Complete Inventory SystemDrag-and-drop inventory with stackable items, equipment slots, and JSON save/load persistence.
- Build an RPGHealth, inventory, dialogue, quests, save/load, and damage numbers — the RPG essentials.