Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Game Creator 3 logo Dialogue

Write your first conversation#

A conversation needs two pieces: a Script that holds the lines, and an Event that plays it. You'll write a short scene at a village gate, play it as soon as the scene loads, and click through it in Play mode.

Before you begin#

This guide uses the Default (UGUI) Dialogue Skin, a ready-made interface that comes with the module's samples. Import the Default Skin (UGUI) sample from the Samples tab of the Package Manager, as described in Exploring the examples.

Write the Script#

  1. Right-click a folder in the Project window.
  2. Choose Create → Game Creator → Dialogue → Script.
  3. Name the asset Gate Conversation.
  4. Select it, and in the Script tab, replace the sentence in the text area with these lines:
The road ends at a wooden gate set into the village wall.
Torches burn on either side, but the gate is shut.
Someone is watching you from the watchtower.

A new Script starts with a random opening sentence, so you'll always have something to replace. Each line you write becomes one line of dialogue, and Dialogue plays them from top to bottom.

None of these lines names a speaker, so the interface shows them as narration. You'll add characters in the next guide.

The text area checks your Script as you type

When a line breaks the syntax, a message appears below the text area with the problem and its line number. Fix it before you continue, because Dialogue won't play a Script that fails to load.

Play the Script#

Add an Event to the scene so the conversation starts when the scene loads:

  1. Create an empty game object and name it Village Gate.
  2. Click Add Component and choose Visual Script → Event.
  3. Add an On Start Trigger.
  4. Add a Play Script Instruction and set its fields:
Field Value
Script Gate Conversation
Skin Default (UGUI)
Await Off

Play Script loads the Script, creates the interface from the Skin, and shows the first line. The Skin is what makes the conversation visible. Without one, the Script still runs, but nothing appears on screen and nothing lets the player move to the next line.

You don't need a Dialogue component yet. Play Script creates a temporary one for the conversation and removes it at the end. In Start a conversation near an NPC, you'll give the guard a component of his own, which a character needs once the conversation should remember what the player has seen.

Verify the result#

Enter Play mode. The dialogue box opens with The road ends at a wooden gate…. Press Space or click to show the next line. After the third line, the box closes.

Each line waits for the player because new Scripts use the Interact mode by default. The sample Skin's prefab includes the input Events that call Continue Script: Space, a left click, or a gamepad button. If you build your own interface later, it needs the same kind of input; see User interface.

If nothing happens#

Symptom Likely cause
No dialogue box appears, and the Console is empty Script or Skin is empty. Without a Script, nothing plays. Without a Skin, the conversation runs with no interface.
The Console shows an error that ends with a line number The Script has a syntax error on that line, so it never started. A common one is a line indented more than two spaces deeper than the line above it.
The first line appears, but it never advances No input reaches Continue Script. Use the sample Skin unchanged until the conversation works.

Where to go next#

  • Introduce your characters — give each line a speaker with a name and a portrait.
  • Scripts — change how lines advance, for example after a few seconds instead of on input.
  • Language syntax — see every kind of line a Script can contain.
Game Creator 3 logoGame Creator 3 © Catsoft Works 2026. All rights reserved.