Hey everyone! In the past 2 years I’ve been working on a singleplayer story game.
And after developing all systems and buildings, I finally came to what I consider the most important part: The save progress
This is very important, as my game is very long, so it is good that people doesn’t lost all their progress after lefting the game.
What do you want to achieve?
A save progress that saves the player progress in the story so they continue playing from where they left. The save could be scripted, but not chapter based, because beside my game having a bunch of different chapters, they are very long so it’s not a big deal to save between them (increasing the number of chapters is an option).
How the game works?
Basically everything is scripted. The player goes do something then the next script plays (I hope you got it).
What have you tried so far?
One thing that I’ve planned in my mind is inserting a leaderstat value called “State” then when every script that handles the story is running it increases the “State” value, so when the the player values are saved and the player lefts it gets the “State” value and calls a script that requires that specific value and it “continues” from where the player left.
I don’t know if this is the best or most optimal way to do that, so I’m open for opinions. Thank you for reading this long and boring text