im still working on this but you can use it for a game with choices in dialogue . you might need to edit it and add more commands to it
a simple but handy dialogue system for rpg games that does the main part for you so you can add more features to it that you like
two main folders for your access . dialogue.cs is a scriptable object and you need to add a file for dialogue and choices and dialogueMan.cs both have ids which you need to use a number that for dialogue is unlimited and for choices is one . for dialogues add ids of choices you want to use which you have to count from the list and add a one to it . so the first dialogue in the list has id of 1 and etc . you can add voice if you like to it but doesn't matter the code needs a click effect which you can remove if you like .
There are commands and you can add them for RPG uses like speech and barter or etc ... that's up to you I already did write some commands so you can check them out to see how they work
there is also example scene that i suggest you look into for better understanding of the code you need Tmpro and buttons with DialogueMan.cs selected with an int value starting from 0 to the number of buttons your heart desires.