# Nodes

## Dialogue

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2F7yFObec6s5kMAwwkulDQ%2Fdialogue_dialogueNode.png?alt=media&#x26;token=b166d860-5975-4788-83b2-e58413c9d50d" alt="" width="140"><figcaption></figcaption></figure></div>

Main dialogue node which starts an assigned dialouge sequence.

## Random Select

<div align="left" data-full-width="false"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FPFvEPxCZKM5cZMX0fLYP%2Fdialogue_randomSelectNode.png?alt=media&#x26;token=918c1f6d-8c8c-49d7-acef-2c108f8b8611" alt="" width="139"><figcaption></figcaption></figure></div>

Randomly selects a connected route.

## OnExitDialogue

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FcPjlx6etIz70GTkqawHF%2Fdialogue_onExitDialogueNode.png?alt=media&#x26;token=97d3570d-b761-4370-a04b-3867b804c8fd" alt="" width="139"><figcaption></figcaption></figure></div>

Called by the DialogueController's **TriggerOnExitDialogue()** method. This is usually called by the UI when user quits a dialogue. The **TriggerOnExitDialogue** has an additional **\_forceImmediateQuit** boolean parameter. Depending on it's state, it will trigger the **Normal Quit** output or the **Immediate Quit** output. \
Use the "normal quit" output to display a farewell/leave message, before exiting the dialogue.\
Use the "immediate quit" output to instantly quit the dialogue using an ExitDialogue node.&#x20;

## Exit Dialogue

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FVU6s5lgJi0p1JxvzMgFP%2Fdialogue_exitDialogueNode.png?alt=media&#x26;token=488934d8-5c34-4d76-8b9a-dd629f9cb783" alt="" width="145"><figcaption></figcaption></figure></div>

Calls the ExitDialogue method on the DialogueController which again passes this to the UI (IDialogueUIControl).

## Start Playable

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FL1FOQFXKuwwOgIWQkfzn%2Fdialogue_startPlayableNode.png?alt=media&#x26;token=4b0a3f02-b80c-4c7f-a37c-63924dfde8b4" alt="" width="179"><figcaption></figcaption></figure></div>

Starts playing a playable directors assigned timeline.

## CheckFlag

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2F9fsAgNIGxb9tN0MLfbCu%2Fdialogue_checkFlagNode.png?alt=media&#x26;token=e8258dde-7750-45d7-b407-4fda14c759f1" alt="" width="134"><figcaption></figcaption></figure></div>

Checks a boolean variable and calls the appropriate output.

## SetFlag

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FOnZB6i3XObg84pgI6OqD%2Fdialogue_setFlag.png?alt=media&#x26;token=6efed2a5-21a0-4c7b-8067-4c9ba1cda365" alt="" width="124"><figcaption></figcaption></figure></div>

Sets a value to a boolean variable.

## Compare Integer

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2Fvt5e6bKGzzk3GusY7uw5%2Fdialogue_compareIntegerNode.png?alt=media&#x26;token=9f4d5f9a-04f7-4f56-bbd0-2ea5faa31289" alt="" width="122"><figcaption></figcaption></figure></div>

Compares an integer variable with another value.

## Modify Integer

<div align="left"><figure><img src="https://2348672745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIoqF5QAgQsqxrjmTIKpE%2Fuploads%2FBiuTpaC8q11TKdalntds%2Fdialogue_modifyIntegerNode.png?alt=media&#x26;token=9b310213-38a8-41f5-918f-5fb9e597612d" alt="" width="128"><figcaption></figcaption></figure></div>

Modifies an integer variable.


---

# 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://giantgrey.gitbook.io/databrain/add-ons/dialogue/nodes.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.
