Hey guys, so I am building a game that uses a check point system, and I need a way to delete all the save files automatically if the player starts a new game.
Delete Save File Automatically
RPG Maker MV SupportCall a script with the "remove" method of StorageManager.
https://kinoar.github.io/rmmv-doc-web/interfaces/storagemanagerstatic.html#remove
https://kinoar.github.io/rmmv-doc-web/interfaces/storagemanagerstatic.html#remove
The script call to delete a single save file:
A simple script call where it loops to delete 20 save files:
I'm can't check if there's another way to do this but this is the easiest one I can think of at the top of my head.
You can also try adding this to StoreManager:
and script call will be:
Code:
StorageManager.remove(index);
A simple script call where it loops to delete 20 save files:
Code:
var i;
for (i = 0; i < 20; i++) {
StorageManager.remove(i);
}
I'm can't check if there's another way to do this but this is the easiest one I can think of at the top of my head.
You can also try adding this to StoreManager:
Code:
StorageManager.removeAllStorage = function() {
for (var i = 0; i < 20; i++) {
this.remove(i);
}
};
and script call will be:
Code:
StorageManager.removeAllStorage();
Thanks alot guys, that solved my problem
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/delete-save-file-automatically.101850/