Cheat Menu – Part 5 – Item Spawners – 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

Item Spawners are an ever so classic mod that’s usually added to a game’s cheat menu. Item spawners can turn a game into a massive sandbox, allowing the player an immense amount of freedom to do pretty much anything he/she wants to do with the game. Watch the video above to learn about how to make these Item Spawners for your game’s cheat menu!

This advice video uses the following plugins:

You can grab the copy/paste code here:


Item Spawner – Option Parameters


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

Settings

Help Description:
Obtain any item from the game.
Symbol:
spawnItem
Show/Hide:
var length = SceneManager._stack.length;
var lastScene = SceneManager._stack[length - 1];
show = lastScene !== Scene_Title;
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);
Process OK Code:
this.playOkSound();
var goods = [];
var length = Math.min($dataItems.length, 2001);
for (var i = 0; i < length; ++i) {
 var item = $dataItems[i];
 if (!item) continue;
 if (item.name.trim() === '') continue;
 goods.push([0, item.id, 1, 0]);
}
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
Cursor Right Code:
Cursor Left Code:
Default Config Code:
Save Config Code:
Load Config Code:


Weapon Spawner – Option Parameters


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

Settings

Help Description:
Obtain any weapon from the game.
Symbol:
spawnWeapon
Show/Hide:
var length = SceneManager._stack.length;
var lastScene = SceneManager._stack[length - 1];
show = lastScene !== Scene_Title;
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);
Process OK Code:
this.playOkSound();
var goods = [];
var length = Math.min($dataWeapons.length, 2001);
for (var i = 0; i < length; ++i) {
 var item = $dataWeapons[i];
 if (!item) continue;
 if (item.name.trim() === '') continue;
 goods.push([1, item.id, 1, 0]);
}
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
Cursor Right Code:
Cursor Left Code:
Default Config Code:
Save Config Code:
Load Config Code:


Armor Spawner – Option Parameters


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

Settings

Help Description:
Obtain any armor from the game.
Symbol:
spawnArmor
Show/Hide:
var length = SceneManager._stack.length;
var lastScene = SceneManager._stack[length - 1];
show = lastScene !== Scene_Title;
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);
Process OK Code:
this.playOkSound();
var goods = [];
var length = Math.min($dataArmors.length, 2001);
for (var i = 0; i < length; ++i) {
 var item = $dataArmors[i];
 if (!item) continue;
 if (item.name.trim() === '') continue;
 goods.push([2, item.id, 1, 0]);
}
SceneManager.push(Scene_Shop);
SceneManager.prepareNextScene(goods, false);
Cursor Right Code:
Cursor Left Code:
Default Config Code:
Save Config Code:
Load Config Code:


Happy RPG Making!