Effective way of making a dialogue system with textlabels

The plan is to make a dialogue system.

I already know how to make it look visually good.

Question is, how do I make this system efficient and easy to access?

My idea is to make a dialogue function and make the parameters into text, but I don’t think that would be too efficient, when you consider that this system will have an answering system.

Any insight will help!

I found this open source thingy:

Which if you dont want to use it, you can at least look at the code to see how to go about it.

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 :]

1 Like

Yes, I think these will help.

It’s just storing the lines somewhere and calling the correct lines to use that is tricky here, but i’ll manage it.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.