Currently I’m trying to attempt to make a dialog system. I have a module script where it holds all the dialog and how many lines the dialog has. The only thing i can’t figure out is how to count how many lines the dialog has to say in order to stop
A little bit of more explanation:
This is my DialogLib where i store all the lines i currently have 6 lines for this NPC making 6 the maximum it can go
Inside the script i know running a for i, = 1, #b.WatchDogsPlayz do
will warn all the lines in the module. I’m wondering how to set the max Lines to 6 and being able to tell the current line when the player progresses through the dialog (Example: lets say they finished the first line of dialog now they go to the second.) (Another Example: lets say they finished the dialog they reached line 6 once they reach line 6 close the dialog)
I would really appreciate it if I could get some help sorry if this is a little confusing to explain