What is a dialogue? A dialogue is an object you can inside a part to make it interact-able. It can be used for talking to an NPC, a shop, a quest, or anything you want! It’s mostly used in an NPC.
1. Adding a Dialogue
Adding a dialogue is super simple. Just select a part and click the little plus sign, or right click a part and click “Insert Object”. In our example, we’re making a customer NPC like what is seen in the game “Work At a Pizza Place” by Dued1.
NOTE: IF THE PARTS ARE GROUPED TOGETHER IN A MODEL, DON’T PUT THE DIALOGUE IN THE MODEL, PUT IT IN A SPECIFIC PART!
2. Properties Of A Dialogue
A dialogue has a few main properties that need to be changed for it to be functional.
1. Conversation Distance
Pretty self explanatory. It changes the distance(in studs), you can talk and interact with the dialogue.
2. Goodbye Choice/Active
When you enter a dialogue, by default you will have the option to leave that chat without responding. You can disable this option, or you can change the dialogue that the NPC will respond with when you choose it.
3. Initial Prompt
The initial prompt is what the NPC will say when you click the Dialogue.
4. Purpose and Tone
The purpose property changes the purpose, obviously. It has 3 options: Help, Quest, and Shop. It changes the Icon displayed.
The tone changes the color displayed next to the icon. There are 3 tones: Neutral, Friendly, and Enemy. Neutral is blue, as shown above.
3. Adding A Dialogue Choice
Adding a choice allows you to talk to the NPC. When the NPC says something, you can respond to it. All you have to do is click the Dialogue you added, and follow the previous steps to add a “DialogueChoice”.
4. Properties of a Dialogue Choice
1. Goodbye Dialogues
Yes, there is a goodbye dialogue again. It works the exact same as previously stated.
2. Response Dialogue
Yep, yet again, the same. This is the text that the NPC will respond with when this dialogue option is chosen.
3. User Dialogue
This is what the dialogue choices will say say when you are prompted to choose a choice.
5. Extra Notes
You can insert as many Dialogues you want to add multiple options. You can script dialogues to do something if a certain option is chosen to make shops. I will cover that in my next article, dedicated to scripting dialogues. You can also put Dialogue Choices inside a Dialogue to continue the conversation as long as you want.
Extra video demonstrating a final product.