# Dialogue

<figure><img src="/files/FN1Jr0SrWYpGTsoPbIb6" alt="" width="188"><figcaption></figcaption></figure>

The **Dialogue Component** in UFOLAB is a feature that allows game creators to add text-based dialogues, similar to those used in narrative-driven games. It’s designed to simulate character conversations or provide story elements to players in different stages or phases. This component is ideal for storytelling, giving instructions, or delivering information in a dynamic, stage-by-stage manner.

<figure><img src="/files/ELErRNwED8qcKpjE5kVT" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/r3kJ2SVdWESg0RyyhLDy" alt=""><figcaption></figcaption></figure>

***

### How to Set Up the Dialogue Component

1. **Adding the Dialogue Component**:
   * In the game editor, locate the **Dialogue Component** from the left toolbar in Components.&#x20;
   * Drag the **Dialogue Component** into the scene where you want the dialogue to appear.
2. **Dialogue style**:\
   You can personalize the appearance of the dialogue by adjusting fonts, text size, and color to fit the overall game design. <br>
3. **Configuring Dialogue Stages**:
   * Once the component is added, you can set up the dialogue in different stages. This feature allows you to separate the conversation or information into manageable parts, which the player will experience in sequence.
   * For each stage, you need to add 3 dashes (---) and then Intro in your Keyboard.

{% hint style="info" %}
Dialogue stages need to be separated by: Intro + --- + Intro. \
Example:

\
CHARACTER 1: Hello

\---

CHARACTER 2: I am Ryder
{% endhint %}

4. **Configuring Dialogue Options**:

* **Speed: n**umber of keystrokes per second.
* **Characters per tick: n**umber of characters typed per keystroke.
* **Delay: w**ait time in seconds before typing starts.
* **Key sound:** different styles of sound to adjust this component to the game style.

<figure><img src="/files/Tsnl62rB1xJg8S6BBaCz" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.theufolab.com/game-editor/components/subcomponents/dialogue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
