Hey there folks,
The other day, not so long ago, I saw this thread was posted.
In summary, the user created an autosave system using the basic script commands that automatically overwrites the currently active save file, however it removes any data in save slot 1 (so basically, you can't save to save slot 1, if I understand him correctly)
The base idea of autosaves that overwrite the currently active save file is the functionality I want, however, I would like to let users use save slot 1.
In order to compensate for the possible error of attempting to save to a save file that hasn't been defined yet, my plan was to effectively force players to create a save at the start of the game. So I suppose that leads me to my questions:
1)How would I modify this to fit my needs? (source: from above linked thread)
I'm certain I just remove the "StorageManager.remove(1); StorageManager.cleanBackup(1);", but I am a dummy when it comes to these things so I just want to confirm this is right.
[question 1 has been solved.]
2) What script can I use in a conditional branch to check to see if a save file has been written?
Thank you so much for your help as always.
The other day, not so long ago, I saw this thread was posted.
In summary, the user created an autosave system using the basic script commands that automatically overwrites the currently active save file, however it removes any data in save slot 1 (so basically, you can't save to save slot 1, if I understand him correctly)
The base idea of autosaves that overwrite the currently active save file is the functionality I want, however, I would like to let users use save slot 1.
In order to compensate for the possible error of attempting to save to a save file that hasn't been defined yet, my plan was to effectively force players to create a save at the start of the game. So I suppose that leads me to my questions:
1)
Code:
var AutoSave = DataManager.lastAccessedSavefileId();
$gameSystem.onBeforeSave();
if (DataManager.saveGame(AutoSave)) {
StorageManager.cleanBackup(AutoSave);
}
StorageManager.remove(1);
StorageManager.cleanBackup(1);
[question 1 has been solved.]
2) What script can I use in a conditional branch to check to see if a save file has been written?
Thank you so much for your help as always.
) so I commented things to help me, hopefully these comments help others too!