because it never really was an issue previously, I would save character data using 8 or so different PlayerPrefs values. But I want to attempt to make an RPG, and the amount of data needed to save would be astronomically time wasting and complicated to save everything as a different value.
What I was thinking of doing, is saving it all as a single string of data, as an example if these were the characters stats:
Level 2
EXP 12
HP 23/30
Strength 4
Intelligence 5
Speed 3
Charisma 6
It would save a string labeled as "0212023030040503060"
Saving the string would be easy, but I do not have the know how to have the game distinguish what parts of the string it needs to fill out the stats. How can I do this, or better yet, is there an easier way to do it?
↧