Removing option from item menu

Status
Not open for further replies.

Ameer

Veteran
Veteran
Joined
Oct 13, 2018
Messages
85
Reaction score
13
First Language
English
Primarily Uses
RMMV
Hey I don't want armors in my game so is there a way I can remove armor option in items menu
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,252
First Language
Spanish
Primarily Uses
RMVXA
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
};
 

PHAZE7

Veteran
Veteran
Joined
Jan 25, 2016
Messages
42
Reaction score
22
First Language
Portuguese
Primarily Uses
RMVXA
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.
 

Ameer

Veteran
Veteran
Joined
Oct 13, 2018
Messages
85
Reaction score
13
First Language
English
Primarily Uses
RMMV
@PHAZE7 Thanks for suggestion but it messed up my custom menu layout
@gstv87 Thanks it worked
@PHAZE7 Thanks i updated code
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,228
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top