What's the best way to implement dialogue in a visual novel?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Antip

Hey. I know there are already questions similar to this but they all seem to talk about dialogue for an RPG or something similar, where dialogue is a minor aspect of the game 's mechanics. My question is what would be the best way to implement dialogue for a visual novel, where dialogue is the main aspect of the game, and there are hundreds of lines of dialogue? A detailed explanation would be great and thank you in advance <3

:bust_in_silhouette: Reply From: pox

Simple and very basic way is to put this line in a node or a custom resource:

export (Array, String, MULTILINE) var dialogue

And then display it when appropriate

If you want to make complex visual novels I recommend searching the asset library before committing to make a custom system that can take a lot of time to make
Here are some addons you can try:

Another option is to use external tools that have an addon

Or a json parser like: