Cheat Menu – Part 1 – “God Mode” – RPG Maker MV

Yanfly Engine Plugins is a plugin library made for RPG Maker MV, a wonderful piece of software to help you make that role playing game of your dreams. You can find out more about RPG Maker MV here.

Support Team Yanfly on Patreon.

This is the beginning of a new video series that will explain, step by step, how to create a cheat menu/assist mode for your game! Cheat menus/Assist Mode are features in modern games that are becoming more and more common. As play styles types vary from player to player, so will be what they expect out of their games. And what a better way to start things off than with the ever so staple “God Mode” cheat?

This advice video uses the following plugins:

You can grab the copy/paste code here:


Enable Cheats – Option Parameters


This section gives the exact plugin parameters used for the “Enable Cheats” option found in the video above.

Settings

Help Description: 
Turning this ON will allow the options below to take effect.
Set this as OFF to disable all Cheat options.
Symbol: 
CheatsEnabled
Show/Hide: 
show = true;
Enable: 
enabled = true;
Ext: 
ext = 0;

Functions

Make Option Code:
this.addCommand(name, symbol, enabled, ext);
Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
this.drawOptionsOnOff(index);
Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);
Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);
Default Config Code:
ConfigManager[symbol] = false;
Save Config Code:
config[symbol] = ConfigManager[symbol];
Load Config Code:
ConfigManager[symbol] = !!config[symbol];

Line Break – Option Parameters


This section gives the exact plugin parameters used for the “Line Break” option found in the video above.

Settings

Help Description: 
Symbol:
none
Show/Hide: 
show = true;
Enable: 
enabled = true;
Ext: 
ext = 0;

Functions

Make Option Code:
this.addCommand(name, symbol, enabled, ext);
Draw Option Code:
Process OK Code:
Cursor Right Code:
Cursor Left Code:
Default Config Code:
Save Config Code:
Load Config Code:

 


God Mode – Option Parameters


This section gives the exact plugin parameters used for the “God Mode” option found in the video above.

Settings

Help Description: 
Allies cannot be K.O'd in battle
even if they are at 0 HP.
Symbol: 
CheatGodMode
Show/Hide: 
show = true;
Enable: 
enabled = true;
Ext: 
ext = 0;

Functions

Make Option Code:
this.addCommand(name, symbol, enabled, ext);
Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
this.drawOptionsOnOff(index);
Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);
Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);
Default Config Code:
ConfigManager[symbol] = false;
Save Config Code:
config[symbol] = ConfigManager[symbol];
Load Config Code:
ConfigManager[symbol] = !!config[symbol];

God Mode State – Notebox Code


Insert the following code into the God Mode State’s Notebox.

<Custom Passive Condition>
condition = ConfigManager.CheatsEnabled && ConfigManager.CheatGodMode;
</Custom Passive Condition>

This requires Auto Passive States to be installed. Remember to place this state’s ID in the Actors List in the Auto Passive States plugin parameters!


Happy RPG Making!