I found this open source thingy:
After the initial release of the first version of this system I decided to remake the entire thing from scratch to not only make it perform better but for it to be far more flexible and customizable.
You can find the older version of this system here:
Now then, here’s a small preview of the dialogue system in action:
This is a very simple dialogue that I put together in a couple of minutes using the node presets I created for the dialogue system. Now here’s how it looks inside the…
Which if you dont want to use it, you can at least look at the code to see how to go about it.
Dialogue Kit V1
Dialogue Kit V1 is a quick and easy way to create interactive NPC dialogues using a ModuleScript.
[DialogueKitV1]
[KitText]
Dialogue Kit V2 is out now! Check it out here.
I haven’t seen anyone do Dialogues the way I have, which is why this exists!
I made Dialogue Kit V1 to provide Roblox Developers with a quick & easy way to interact with NPC’s.
You can create a simple dialogue by going into the “Dialogues” ModuleScript and editing everything in there, everythin…
Theres also that ^
My personal method though usually involves a table looking like this:
local dialogueExample = {
[1] = {Text = 'Hello World',Name = 'Name',Action = 'Next',Next = 2}
[2] = {Text = 'Woah',Action = 'Bye'}
['Bye'] = {Text = 'Goodbye', Action = 'Close'}
}
This is an example of dialogue, what I would do with my dialogue system is first start at one, then after their done talking or whatever I would tell what the action is, if its next , then I go to whatever next is set too. If its Bye Then I would go to the Bye dialogue, if its close , well I just close the UI.
You could also by changing stuff up use buttons, but thats just how I go about it :]
2 Likes