Difficulty settings

I want to have a difficulty setting in my game that does not just change enemy stats. As an example, on easy difficulty I want Game Over to be disabled and simply return the player to where they were before the battle. On the hardest difficulty level, there would be restrictions on where you can save, and possibly new game over conditions. Anyone know any good ways of doing this? I'm assuming I'm going to need to find plugins to get this to work.
Disabling the save anywhere will be easy enough to do. Just use the 'change save access' command and set it to 'disable'. At the same time turn on a switch that will activate save points throughout the game. You can do a lot of stuff regarding difficulty settings with just switches. The game over setting might be harder to pull off without plugins, though if you have on-map touch encounters, you can simply do this via a switch + conditional branch too. Like the conditional branch will check if the easy mode switch is on. If yes, it will simply transfer player to the start of the map. If no, then it will give a game over screen.
Well you can do that by using SRD Option Creator and a few basic knowledge of JS and MV scripts.

You could make a system, which when game difficulty is "Easy", variable "Diffitulty" Be 1, and when be Hard it be 2.After that, make the game save before battles(You can to inside Scene_Map.prototype.launchBattle and put a saving script inside there), go to RPG_Scenes.js file and change it(inside the part "Scene_GameOver") to, if variable is value be 1, it automatically load a save file, if not, it does something else(Like deleting the save and going back to title)

I don't know the scripts to automatically create, load and delete save files(To check variables inside JS files, you just need to use "if($gameVariables.value(VariableNumber) ===VALUE) {DOSOMETHING}; else{Do Something Else};"). But probably looking inside MV itself you can find them(Or searching on google)
If you use random encounters or have ways to die out of battle (floor damage) then you'll want to look into a Game Over plugin. I've used SumRndmDde's version and it worked well. Others exist too. The SRD version let's you call Common Events before, during and/or after the game over screen. You could check your difficulty setting in one of these and if it's on easy mode, heal the characters back up and transfer them to the last checkpoint.
2 parts:
Part 1 setting up the Duffuculty Variable:

Plugins:
SRD's Options Creator.(Requries His Game Uograde & Game Options Upgrade)

Pick a variable, I'm gonna call it Variable DifficultyValue, remember it's Id for this example I'm calling it "x". But for you it needs to be a number.

Each Diffuculty Mode I want is going to have a number this is what I'm using:

1 = easy
2 = normal
3 = hard.

So when the diffuculty variable is 1 it's in easy mode. When it's 2 it's normal and when it's 3 it's hard.

Now you need to set the mode up.

If you want the player to control it in the options then use SRD's Options Creator.

You can set it up so that the player can only have it in the title screen options/manpulate when they can see it by saying that this choice is only visable when Switch z is on or off using theese javascript comands:
Off:
!$gameSwitches.value(z)

On:
$gameSwitches.value(z).


If that is too much than make a simple choice event where Easy, Normal & Hard and then under each choice set it to 1, 2, 3 deoending on which mode is selected.

Make sure that either method you chose say something along the lines of:
"Easy lets you retry battles, Hard forces you to use Save points" or whatever. Just make sure the player knows this before picking a mode.

Part 2, how do Modes Work.
Plugins you need:
Yanfly Main Menu Manager
SRD Retry Costs (Requries His Game Over Core)

For the Easy mode, in SRD Retry Costs Parameter eval, write this javascript:
$gameVariables.value(x) === 1;
Ie if the value of Variable DifficultyValue is equal to 1 than you can retry the battle if not than you can. And remember for Easy the variable is equal to 1.

For Hard Mode in Yanfly Main Menu Manager, find the save command and next to the show parameter put:
$gameVariables.value(x) < 3.
This makes it where if the mode is not hard it will show, if it is hard it will not since the value of the DiffucultyValue Variable is 3 which is not less than 3.

Also make save point events that open the save menu. Set it up so that they only show when DiffucultyValue is 3 or more.


If you want more help you can PM me.

Original thread: https://forums.rpgmakerweb.com/threads/difficulty-settings.89494/