Auto overwrite save files

Hello everyworld, I'm having a certain issue with the saving method I'm working with, to put you into context, I'm working in a game with the possibility of choice the difficulty level, and I have 4 levels of difficulty, in the first 3, you can save direct from the menu, but in the hardest one, you would be able to save only at a certain time (at night in game time) in certain places (when you go to sleep next to bonfires or in an inn), the problem is, for this to work, you must select a saving file right after choosing the hardest difficulty, so, I need a script who avoids the execution of the cancel button (to avoid crashings) while you are choosing a save file and a script to automatically overwrite the save file in question right after go to sleep.
Moved to: RGSS3 Script Requests
How are you selecting the difficulty? Is it a script or evented?
How are you selecting the difficulty? Is it a script or evented?
It's evented, I used variants and triggers to set configurations
Then when setting the hardest difficulty turn the save function off (command in event) and when only being able to save at a specific location just use the call save command.

Original thread: https://forums.rpgmakerweb.com/threads/auto-overwrite-save-files.133453/