Flexible "find dialogue" method

Hey! I am looking for a method to make a flexible dialogue system which makes it easy for me to add new dialogues in the long run of my game’s development.

I already got the base system down but I now need to make it so the dialogue can be found by the system with ease. What I got in mind is a simple module script which returns info like the name of the dialogue NPC and dialogue Text.

Now here’s the reason why I opened up a new topic, is there a way for me to make it so the module has for example 5 different dialogues stored in one string? If so, how can the script switch between those 5 different dialogues?

  1. Store the different dialogues in a table
  2. Iterate through the table, and use your module’s function on that table value (which is the dialogue)
1 Like

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