Corrupting the game on purpose?

Is there any way I could permanently corrupt a save file if you get a certain ending?
I know how to crash the game but I don't want the player to be able to reopen the game with no consequences.
Either a way to corrupt the save or a way to make that ending mess up certain parts of the game.
Or I guess If anyone knows any bugs I can exploit to get the same effect
RPG Maker MV Script Call List


Erase Save File : StorageManager.remove(index)

Just go to that thread and click the link.
Search for Erase Save File
Or search for Save

Then instead of the save file being corrupted it can just be deleted.
depends what you mean by corrupt. do you want to simulate a corrupted file with a certain effect when you load the game anew? that could be done with switches. do you want to make the savegame totally inaccessible? use the delete method above (StorageManager). do you actually want to corrupt the file with garbage save data? you can grab a sample save file and figure out how you'd like to corrupt it, rewrite the save string accordingly, and replace whatever save data with that string.
You should delete it and replace it with one that contains a plaintext message for the player if ever opens it to check! 😉
depends what you mean by corrupt. do you want to simulate a corrupted file with a certain effect when you load the game anew? that could be done with switches. do you want to make the savegame totally inaccessible? use the delete method above (StorageManager). do you actually want to corrupt the file with garbage save data? you can grab a sample save file and figure out how you'd like to corrupt it, rewrite the save string accordingly, and replace whatever save data with that string.
@Starbird_Resources Actually I kinda need both, uh how would you manage to make the game break in a new save or something if you get an ending? Do switches not go away if you load?
RPG Maker MV Script Call List


Erase Save File : StorageManager.remove(index)

Just go to that thread and click the link.
Search for Erase Save File
Or search for Save

Then instead of the save file being corrupted it can just be deleted.
Oh this actually is verry helpful!

Original thread: https://forums.rpgmakerweb.com/threads/corrupting-the-game-on-purpose.125872/