Hello everyone! I’ve had this idea for a while that I can’t find a suitable solution for, so I decided to ask here to see what y’all think.
In short, I have a program that has some variables like these:
- string _line
- string _emotion
- string _talker
These variables are saved in a class called DialogueLine, and in the program the player can write them and save them in a json file. This process is done automatically, you just write the line, emotion and talker and press a button that generates the json.
However, I thought that it would be interesting to allow the user to modify the name of these variables. So, if they don’t want _emotion, they can change the name to _faceDescription, or anything.
How could I do that? Thank you in advance for your time.