Hello! In the game I'm making, I don't need the weapon or armor slots, so I'd like to remove them to make the item menu screen a little less bulky. I've downloaded SR Dude's Super Tools Engine, and it lets me edit the amount of columns in the item menu, but I can't choose which columns/item categories to remove. Are there any plugins that allow me to remove or at least rearrange certain item categories?
MV Removing item categories?
JS Plugin RequestsMoved to: Plugin Requests
The lines of code which shows the categories can be found starting from line 1888 in your rpg_windows.js file
You could delete or comment out the lines regarding weapons/armor.
Alternatively you could make a copy of the code but without the weapon/armor, and save it as a plugin.
JavaScript:
Window_ItemCategory.prototype.makeCommandList = function() {
this.addCommand(TextManager.item, 'item');
this.addCommand(TextManager.weapon, 'weapon');
this.addCommand(TextManager.armor, 'armor');
this.addCommand(TextManager.keyItem, 'keyItem');
};
You could delete or comment out the lines regarding weapons/armor.
Alternatively you could make a copy of the code but without the weapon/armor, and save it as a plugin.
An alternative is to ignore certain symbols in
Like what AphoticAmaranth suggested (which should work A-OK), this just removes specific
addCommand, e.g.
JavaScript:
/*:
* @target MV MZ
* @plugindesc Remove Weapon/Armor categories from the inventory.
* @author Caethyril
* @url https://forums.rpgmakerweb.com/threads/158380/
* @help Free to use and/or modify for any project, no credit required.
*/
;void (function(alias) {
'use strict';
// Symbols to skip.
const IGNORE = ["weapon", "armor"];
// Add command only if its symbol is not in the IGNORE list.
Window_ItemCategory.prototype.addCommand = function(name, symbol, enabled, ext) {
if (!IGNORE.contains(symbol))
alias.apply(this, arguments);
};
})(Window_ItemCategory.prototype.addCommand);
addCommand calls. However, it's a patch rather than a full override so it stands a slightly better chance of being compatible with similar plugins.Thank you, that worked!
Original thread: https://forums.rpgmakerweb.com/threads/removing-item-categories.158380/