# Dialogue

The dialog interaction tool lets you create non-playable characters (NPCs), breathing life into your world!

{% embed url="<https://www.youtube.com/watch?index=3&list=PLbG4lDfPqmZuqSWQTvQ6IbcIGDpkZGt1a&v=JLY1m-cXO4o>" %}

It is very easy to do; first, click on an object in build mode and choose **Interactions > Abilities > Dialogue.**

<figure><img src="https://107867006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnMYfhsZ5GJTgbm1KIe7%2Fuploads%2FlK7ekHtG5xua3DuDCOaU%2FCleanShot%202023-08-21%20at%2012.21.07%402x.png?alt=media&#x26;token=48161069-6fcd-4b0a-9bc4-3115dcb92632" alt=""><figcaption></figcaption></figure>

This will open the dialogue builder menu where you can design the interaction. The dialogue is set up as a decision-making tree, where each step is configurable.

<figure><img src="https://107867006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnMYfhsZ5GJTgbm1KIe7%2Fuploads%2FXfcYg2B9Pigax4iIB9Fl%2FCleanShot%202023-08-21%20at%2012.23.31%402x.png?alt=media&#x26;token=c394eff1-e194-4907-b282-1c8da6b75a89" alt=""><figcaption></figcaption></figure>

You can have the player answer questions, check for trait-gated permissions, and many other different options.

<figure><img src="https://107867006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnMYfhsZ5GJTgbm1KIe7%2Fuploads%2FKD3Je7Pdlp3HSFhUkVsC%2FCleanShot%202023-08-21%20at%2013.43.42%402x.png?alt=media&#x26;token=4e7b4c12-e08c-4b14-9f78-14a3f2050d57" alt=""><figcaption></figcaption></figure>

Each block is a different dialogue choice which can be edited in its respective text field. If you want to have more dialogue options, click on the **+** sign each block originates from.

<figure><img src="https://107867006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnMYfhsZ5GJTgbm1KIe7%2Fuploads%2Fn5kPjerTOJ8JngHHzpOZ%2FCleanShot%202023-08-21%20at%2013.48.48%402x.png?alt=media&#x26;token=77b5155d-fd23-4512-9081-d7cd19ebdf09" alt=""><figcaption></figcaption></figure>

Each block can be set to either **continue** to the next block, **restart** the whole conversation, or **end** the conversation. You can set this with the drop-down menu pictured below:

<figure><img src="https://107867006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnMYfhsZ5GJTgbm1KIe7%2Fuploads%2FpqatKwZKLpzggxB3Hu5A%2FCleanShot%202022-07-03%20at%2020.52.38%402x.png?alt=media&#x26;token=0516bed3-0ae7-43ef-b450-066d79c02681" alt=""><figcaption></figcaption></figure>

If the block is set to go to the next block, you then can configure what the block should do.&#x20;

At each step, the NPC character can also send emotes or change dialog box graphics to feel a bit more immersive. Try creating different versions of your NPC in various facial expressions to reflect the dialog!

<figure><img src="https://107867006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnMYfhsZ5GJTgbm1KIe7%2Fuploads%2FBYl29Uws2hL06QowMsKl%2FCleanShot%202023-08-21%20at%2013.52.35%402x.png?alt=media&#x26;token=5875e09f-c8bb-4d8e-94e6-bfb6e22a0dfc" alt=""><figcaption></figcaption></figure>

### There are many options besides just a scripted message!&#x20;

You can do things like create prompts for an AI generated response, have the NPC check for tokens or items before moving to the next block, give items or XP, collect an item and give HTTP requests.&#x20;

We'll go through the many dialogue options and explain how they work.&#x20;
