- Joined
- Feb 22, 2016
- Messages
- 1,845
- Reaction score
- 1,595
- First Language
- English
- Primarily Uses
- RMMV
So in my game's inventory page, every item has a the "Use" option on the 1st line. My question is, how do I remove this if it's grayed out (i.e. the item has no use function). I'd like to dig into the JS and add in a conditional so that the "Use" command doesn't appear if it's grayed out. I believe it would have to do w/ YEP_ItemCore, otherwise maybe YEP_EquipCore?
Screenshot:

So I found this snippet in YEP_ItemCore.js...but what should I put for the conditional?
Screenshot:

So I found this snippet in YEP_ItemCore.js...but what should I put for the conditional?
JavaScript:
Window_ItemActionCommand.prototype.makeCommandList = function() {
if (!this._item) return;
this.addUseCommand();
this.addCustomCommandsA();
this.addCustomCommandsB();
this.addCustomCommandsC();
this.addCustomCommandsD();
this.addCustomCommandsE();
this.addCustomCommandsF();
this.addCancelCommand();
};
Last edited: