Removing option from item menu

● ARCHIVED · READ-ONLY
Started by Ameer 6 posts View original ↗
  1. Hey I don't want armors in my game so is there a way I can remove armor option in items menu
  2. From the top of my head, I believe Yanfly's Item Menu Categories plugin would allow you to do that, but I can't confirm it right now.
  3. Code:
    Window_ItemCategory.prototype.makeCommandList = function() {
        this.addCommand(TextManager.item,    'item');
        this.addCommand(TextManager.weapon,  'weapon');
        this.addCommand(TextManager.armor,   'armor');  // delete or comment out
        this.addCommand(TextManager.keyItem, 'keyItem');
    };
    
    Window_ItemCategory.prototype.maxCols = function() {
        return 4;  //return 3
    };
  4. gstv87 said:
    Code:
    Window_ItemCategory.prototype.makeCommandList = function() {
        this.addCommand(TextManager.item,    'item');
        this.addCommand(TextManager.weapon,  'weapon');
        this.addCommand(TextManager.armor,   'armor');  // delete or comment out
        this.addCommand(TextManager.keyItem, 'keyItem');
    };
    
    Window_ItemCategory.prototype.maxCols = function() {
        return 4;  //return 3
    };

    Adding to this, for OP's benefit, this code can be found in rpg_windows.js inside the js folder in your project folder.
  5. @PHAZE7 Thanks for suggestion but it messed up my custom menu layout
    @gstv87 Thanks it worked
    @PHAZE7 Thanks i updated code
  6. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.