Cheat Menu – Part 4 – Infinite Resources – 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

The Cheat Menu series continues! Another thing that we often find in Cheat Menus are things that affect the flow of resources. This is often found in the form of infinite ammo or the like. Unfortunately, doing something like that can’t really be done without the help of plugins, but we can certainly use events to make something similar! Check out in this video how we can make HP, MP, and TP be virtually limitless!

This advice video uses the following plugins:

You can grab the copy/paste code here:


HP Recovery – Conditional Branch Script


Insert this code into a Conditional Branch event for a troop using the Base Troop Events plugin!

ConfigManager.CheatsEnabled && ConfigManager.CheatRecoverHp

Make sure this is one line!


HP Recovery – Option Parameters


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

Settings

Help Description:
Allies will recover full HP at the start of battle,
the start of each turn, and at the end of each turn.
Symbol:
CheatRecoverHp
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];


MP Recovery – Conditional Branch Script


Insert this code into a Conditional Branch event for a troop using the Base Troop Events plugin!

ConfigManager.CheatsEnabled && ConfigManager.CheatRecoverMp

Make sure this is one line!


MP Recovery – Option Parameters


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

Settings

Help Description:
Allies will recover full MP at the start of battle,
the start of each turn, and at the end of each turn.
Symbol:
CheatRecoverMp
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];


TP Recovery – Conditional Branch Script


Insert this code into a Conditional Branch event for a troop using the Base Troop Events plugin!

ConfigManager.CheatsEnabled && ConfigManager.CheatRecoverTp

Make sure this is one line!


TP Recovery – Option Parameters


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

Settings

Help Description:
Allies will recover full TP at the start of battle,
the start of each turn, and at the end of each turn.
Symbol:
CheatRecoverTp
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];


Happy RPG Making!