Hey!
I want the players save files to get deleted upon a universe-restarting event. Any easy ways to do this?
Thanks!
I want the players save files to get deleted upon a universe-restarting event. Any easy ways to do this?
Thanks!
for (let id = DataManager.maxSavefiles(); id >= 0; id--) {
StorageManager.remove(DataManager.makeSavename(id));
}
DataManager.removeInvalidGlobalInfo();
makeSavename, not makeSaveName;removeInvalidGlobalInfo call to remove this session's deleted save records.Sorry for the late reply, im gonna be honest i was too stressed to remember i posted this. Back on track now, if i did this correctly i made a script thingy inside the event where it happens and pasted it in, and now when it happens it just says "Datamanager.makeSaveName" is not a function
makeSavename, not makeSaveName. I corrected my earlier post and made a couple of other changes.thanks, that worked! it didnt delete the autosave though
I'm guessing you only replaced the typo and didn't actually check my edit:
works perfectly, thank you so much 😀
Original thread: https://forums.rpgmakerweb.com/threads/delete-save-files-on-event.140900/