# Dialogue

!!! note "Summary"
    The **Dialogue** module runs branching conversations written as text. You write speech, choices, Conditions, and Commands in its narrative language without building a node graph or writing C#.

![Dialogue](assets/cover.png)

## How a conversation runs

You write the conversation in a Script, run it through a Dialogue component, and define the characters and game logic it refers to in Compendiums. This keeps the story readable while Unity references stay in the editor.

<div class="grid cards" markdown>

- [**Scripts:**](scripts.md) Store dialogue text, choices, branches, and metadata.
- [**Dialogue component:**](dialogue.md) Loads a Script and controls its execution.
- [**Compendiums:**](compendiums.md) Resolve the Actors, Variables, Commands, Conditions, and Scripts named by dialogue text.
- [**Language syntax:**](syntax.md) Defines the text format for speech, choices, labels, commands, conditions, variables, and metadata.
- [**Localization:**](localization.md) Exports Script text for translation and selects the active locale at runtime.

</div>

The **Dialogue** component loads one **Script**. When the Script names an Actor, Variable, Command, Condition, or another Script, the component resolves that identifier through local and global Compendiums.

!!! info "Local definitions take precedence"
    The Dialogue component's local Compendium overrides the Script's local Compendium, which overrides global Compendiums. Reusing an identifier at more than one level can therefore change what a Script resolves.

## Where to go next

- **[Scripts](scripts.md)** — create a Script and configure its text, localization, audio, and choice behavior.
- **[Dialogue component](dialogue.md)** — load, play, stop, and save a conversation.
- **[Compendiums](compendiums.md)** — define the identifiers used by Scripts.
- **[Language syntax](syntax.md)** — write branches, choices, commands, and metadata.
