This is currently much more of a question than a request as I am unsure if I even want to do this yet.
Basically I am wondering if it's even possible to make a script that deletes the loaded save file in the event the player gets a game over.
Or perhaps puts something on the save file slot to indicate that the character is dead, disabling loading said save (grey out the option maybe?), giving only an option to delete the save.
100% freedom in anything is impossible...
I wont argue about freedom or anything....
Back to topic
So here is the case
Player loaded the save file 1
After some playthroughs, player saved the game in slot 2
Played dies.
Which will be deleted? All of them? Of save slot 2? Or you only have single save file?
On the original topic:
I thing Ruby can do file manipulation.
Thus there CAN be a script that deletes a file.
Since RPG Maker saves with certain naming, like Save1, Save2 it is possible to make a script that deletes a save.
I can understand by your thoughts that you are planning to create a rogue-like game.
There are ways to do this.
But just keep in mind that rogue like games are really VERY hard to be made, even for experienced programmers. 😉
If that is just about the difficulty though, It will not be a problem, except if the game will be huge and by doing so, you make it very hard.
Ever heard of Extra Credits? Someone here told me about them. 😉
They are nice!!!
Could I just check my understanding of what you've posted? You seem to be saying that even those who have not chosen hardcore will only have one save slot.
If that is what you mean, I think you might want to reconsider that. With only one save slot it is quite easy for the player to save themselves into an unwinnable position. If things go wrong, the player will not be able to go back to an earlier save, but must start the whole thing all over again - in effect you have designed it so that they are faced with the same consequences as a player who has specifically chosen to start all over again.
One thing you might want to do is make it so that if hardcode mode is selected, there is no save button. Many games that have a hardcode option only let you save the game if you are quitting for the day. Otherwise, you only have the autosave and that is it.
Look up how Jagged Alliance 2 and Wizardry 8 did it for an idea of implementation. Both games are set so that if you check ironman (their version of hardcore) the only option is to save and quit at the same time. Otherwise, you only have the autosaves.
Are there flaws? Sure. You could end up in the position ksjp17 mentioned and the game is unwinnable. However, that is the risk of playing hardcode. A warning message to the extent that this mode is not recommended for first time players of the game would probably be enough to (hopefully) prevent that. You can do that with difficulty settings too (anyone remember Nightmare mode in Doom? It had the warning this mode is not even remotely fair, are you sure you want to do this before you committed to it).
As for how to do it by a script...not sure. I know Dr Todd has an autosave script that you can use to have the game autosave at fixed points. But, you would need a script written to lock it into one save point, autosave when called, and set it to only have a save and quit option. Probably doable though. Does that sound close to what you want?