Making a Visual Novel style game so dialogue has a few variables that are checked every time you click forward in dialogue. Left_Actor_Pose, Right_Actor_Pose, Current_Dialogue_Line, Current_Dialogue_Speaker, etc. and I'll probably add more.
My current way of setting up all the data for each dialogue scene is that I have a bunch of arrays that all get their values set up when the scene is triggered. Now... that works for small 10 line scene but when you start reaching 40+ lines with 5+ arrays that all need each value and index to be manually typed in. And if you wanna remove 1 line you have to go through every single array index after and change it.
This is just not it...
My question is, is there a more manageable way of writing down the data for a dialogue system. I would preferably have some kind of system where you don't have to manually write down the index for each line. So if if you wanna delete 1 line, or add 1 line, all the following lines just adjust their indexes automatically, or are generated as you progress the scene.
I would also prefer if I could write down all the data need for the current dialogue line in just 1 string and each section getting extracted, something like.
leftpose,rightpose,dialogueline,dialoguespeaker,leftmovement,rightmovement
04,13,"hello world","Sara",shake,still
I hope this wasn't too much. Thank you for any help.