Hi there. So I have a character who has multiple variables (eg Level, Type, Name, etc), and I would like to write them to a file, so that the game can re-read them and load the variables to the same character when it's loaded afterwards, preferably in a text file instead of web/local-storage.
How should I do this?
What I had tried to find beforehand:
1) Savegame property. While this would definitely save the character, it would save the entire game & not just the specific character(s).
2) XMLs. While it could be read to fill the specific variables, I haven't found a way to write to the XML files directly, or even selecting the specific tags.
3) Individual text files for each variable. While this could definitely be used to store each variable, the task is tedious & requires each variable per file.
Any help is appreciated. Thanks in advance!