MV Disabling Item usage for a few battles?

I'm making a boxing event in my game and I'd like for the access to the item command to be temporally disabled for the whole event. How do I make the bouts only feature skills and the standard attack command? (I can disable magic easily.) Do I need a plug-in?
You probably need a plugin, yes. I think Caethyril's tweaks plugin does this – not sure if she has that for MV, but it will likely work in both MV and MZ.
Code:
Window_ActorCommand.prototype.addItemCommand = function() {
    this.addCommand(TextManager.item, 'item', !this._actor.isStateAffected(id));
};
this._actor.isStateAffected(id), ID = the ID number of your state. Then you just set a turn limit on the state you made for it.
Code:
Window_ActorCommand.prototype.addItemCommand = function() {
    this.addCommand(TextManager.item, 'item', !this._actor.isStateAffected(id));
};
this._actor.isStateAffected(id), ID = the ID number of your state. Then you just set a turn limit on the state you made for it.

So I add this code before the match (using a new script command) in a text box when the bout starts. Then I'm supposed to go to the states tab, add a new one (I called it no item and used the 16th slot), set the removal to At Battle End. Then I replace the "!this_actor.isStateAffected" with the name of my boxer, right?

If that's not correct, tell me what I have to do step by step, because I've not used this java script thing before.
Sorry, You have to make this a plugin. Copy that entire thing and pop it into wordpad/notepad. Change the ID to the number of the STATE you want to use. Change the extension from TXT/RTF to JS. place into your plugins folder. Add the plugin to your project through the plugins tab. Adjust State to your liking and your all set!
Sorry, You have to make this a plugin. Copy that entire thing and pop it into wordpad/notepad. Change the ID to the number of the STATE you want to use. Change the extension from TXT/RTF to JS. place into your plugins folder. Add the plugin to your project through the plugins tab. Adjust State to your liking and your all set!
Okay, I'll try that. I'm not very good at making plug-ins, so this might not work.

No, I got it. Thanks a lot.
Okay, I'll try that. I'm not very good at making plug-ins, so this might not work.

No, I got it. Thanks a lot.
Glad to hear it
Glad to hear it
Thanks again for your help. One more question: Would the plugin I made have any issues with the other plugins I'm using?

(For example: I used the Some Random Dude's Pokemon nature plugin, then I used the YEP ItemCore plugin later and noticed that it seemed to have disabled the Pokemon Nature plugin, so I turned it off and got my Pokemon nature back to working in my game.)
Thanks again for your help. One more question: Would the plugin I made have any issues with the other plugins I'm using?

(For example: I used the Some Random Dude's Pokemon nature plugin, then I used the YEP ItemCore plugin later and noticed that it seemed to have disabled the Pokemon Nature plugin, so I turned it off and got my Pokemon nature back to working in my game.)
I shouldn't... I have nearly 50 plugins active in my project, including most of Yanfly's, some of Victor's, amongst various other's, and this doesn't clash with any of them.

Original thread: https://forums.rpgmakerweb.com/threads/disabling-item-usage-for-a-few-battles.183716/