The scripting event DialogChoiceSelected holds two arguments - the player object and the object of the choice the player selects. If you’re accomplished with Roblox Lua, you can add even more functionality to your NPC part. Here’s an example of a Dialog being used. Friendly is green, Neutral is blue and Enemy is red. Quest is a !, Help is a ? and Shop is a $.ĭialog/Tone: This is the color of the conversation - the speech bubble, and the choice GUI. If you start within the distance and then walk out of it, the conversation will end.ĭialog/Purpose: These are the different icons that appear above the part for you to click on. Note: These are only the properties that will have a visible effect in game.ĭialog/ConversationDistance: Set this to the maximum distance from which you can talk to the part. You can customise your Dialog further with additional properties. To do this, all you need to do is complete the previous step but instead of inserting DialogChoice objects into the original Dialog object, you insert them into an existing DialogChoice objects. Additionally, we can add choices to those choices, creating a larger conversation with the part. Our Dialog now has several choices from the user to choose from, which result in the part giving a response. You can add as many DialogChoice objects to the original Dialog object to give the user that amount of choices. The property DialogChoice/ResponseDialog is what the part will say when the user selects that option, change it to what you want that to be. This is the choice that the user will be given, not the name of it or any other properties. In the properties window that you should have open, you will see a property called DialogChoice/UserDialog. Select the original Dialog object and click Insert, then Basic Objects, and from the window select DialogChoice. That’s great and all, but you can’t talk to it, can you?
![dialog maker online dialog maker online](https://forums.rpgmakerweb.com/data/attachments/116/116246-22aa264357cd0b3e5febbfda8f6c515c.jpg)
Hooray! You’ve got your first part to speak when you click on its icon! Adding choices Change this to what you want the part to say as soon as you click on the speech bubble. In the properties window (View -> Properties), you will see the Dialog/InitialPrompt property. There’s your initial dialog object created! You won’t be able to see a speech bubble appear until you run the game with a character in (online or test solo). Click Insert, select Basic Objects, and in the window that appears select Dialog. In explorer (View -> Explorer), select the part you want the speech bubble to appear above. Creating a basic Dialog Making the speech bubbleįirst, open Roblox Studio and create a new place. The DialogChoice then gives the user the choice of replies from the DialogChoice objects inside itself. The Dialog object displays the initial prompt, which then gives the user the choice of replies from the DialogChoice objects.
![dialog maker online dialog maker online](https://www.sitespinner.com/support/sspwebhelp/geometryeditordb.png)
*Anything really, just use your imagination! Basic Overviewĭialogs are actually very easy to use, with no scripting necessary for those of you who aren’t accomplished in Lua. *Create NPC characters that reward you, or give you quests. However, you can add extra functionality with the event Dialog/DialogChoiceSelected. It’s very easy to use, and doesn’t even require scripting. Dialogs are objects that allow you to create NPC characters that you can talk with, using a built-in interface.