How do I remove Escape, Item, and Guard commands from battles?

I am attempting to make a rhythm game that has minimal combat features. Is there a way to hide these commands, because my game design doesn't need them? (Is there a way to change the size of the border so that it doesn't look empty?)
(Is there a way to change the size of the border so that it doesn't look empty?)
Try putting this in a plugin:
JavaScript:
Window_ActorCommand.prototype.numVisibleRows = function() {
    return 2;
};

Change 2 to whatever you want.
Try putting this in a plugin:
JavaScript:
Window_ActorCommand.prototype.numVisibleRows = function() {
    return 2;
};

Change 2 to whatever you want.
Thanks for the reply. I created a new plugin with this script, but it's not changing anything. I still see Item and Guard choices even though I'm trying to get rid of them.
I am going off of MV here, but it should be the same or similar in MZ. You want to edit the method makeCommandList in Window_ActorCommand:

JavaScript:
Window_ActorCommand.prototype.makeCommandList = function() {
    if (this._actor) {
        this.addAttackCommand();
        this.addSkillCommands();
        //this.addGuardCommand();
        //this.addItemCommand();
    }
};


This will remove the Guard and Item commands from the Actor's command window. The escape command is in Window_PartyCommand. Simply find the method that adds the command and comment it out.
Here is a visual representation that might help me explain. (I also intend to get rid of the HP / MP bars seen here.)
I am going off of MV here, but it should be the same or similar in MZ. You want to edit the method makeCommandList in Window_ActorCommand:

JavaScript:
Window_ActorCommand.prototype.makeCommandList = function() {
    if (this._actor) {
        this.addAttackCommand();
        this.addSkillCommands();
        //this.addGuardCommand();
        //this.addItemCommand();
    }
};


This will remove the Guard and Item commands from the Actor's command window. The escape command is in Window_PartyCommand. Simply find the method that adds the command and comment it out.
Thanks! Can those HP and MP bars also be removed?
Thanks! Can those HP and MP bars also be removed?
If you only want them removed in battle, you'd have to make copies of the Window_Base drawActorHp and drawActorMp methods specifically for Window_BattleStatus and Window_BattleActor and comment out the part that draws a gauge.
If you only want them removed in battle, you'd have to make copies of the Window_Base drawActorHp and drawActorMp methods specifically for Window_BattleStatus and Window_BattleActor and comment out the part that draws a gauge.
I don't need them in battle or elsewhere. There's no HP or MP in the game design. What's the easiest way to nuke them?
I don't need them in battle or elsewhere. There's no HP or MP in the game design. What's the easiest way to nuke them?
HP and MP are drawn in a lot of places by default, you'd have to find each instance of drawActorHp and drawActorMp in the default js files and just comment them out.
HP and MP are drawn in a lot of places by default, you'd have to find each instance of drawActorHp and drawActorMp in the default js files and just comment them out.
I see. Is there a particular section of code that repeats which I can look for?
Hi there!

Was fun to make this! Without overwriting any method. At least, techinically ^^''
You want something like that?
1774061056839.png


Just install the plugin and mess with the plugin parameters.
Thanks for the reply. I created a new plugin with this script, but it's not changing anything. I still see Item and Guard choices even though I'm trying to get rid of them.
The code I gave you previously wasn't for getting rid of the Item and Guard choices. It was supposed to change the height of the command window. Thus, you'd use it in combination with @Coolie's code, assuming it works that is. (Or you can just use Eliaquim's plugin instead.)

HP and MP are drawn in a lot of places by default, you'd have to find each instance of drawActorHp and drawActorMp in the default js files and just comment them out.
Or just… make them do nothing.

JavaScript:
Window_Base.prototype.drawActorHp = () => null;
Window_Base.prototype.drawActorMp = () => null;
Hi there!

Was fun to make this! Without overwriting any method. At least, techinically ^^''
You want something like that?
View attachment 363281

Just install the plugin and mess with the plugin parameters.
Thanks so much, I will try this ASAP!
I tried the code you sent both as a plugin and as an event script. Unfortunately, for me it did not remove the HP and MP bars in the battle. How did you intend this section of code to be used?
The code I gave you previously wasn't for getting rid of the Item and Guard choices. It was supposed to change the height of the command window. Thus, you'd use it in combination with @Coolie's code, assuming it works that is. (Or you can just use Eliaquim's plugin instead.)


Or just… make them do nothing.

JavaScript:
Window_Base.prototype.drawActorHp = () => null;
Window_Base.prototype.drawActorMp = () => null;
Hi there!

Was fun to make this! Without overwriting any method. At least, techinically ^^''
You want something like that?
View attachment 363281

Just install the plugin and mess with the plugin parameters.
I tried installing this plugin and also your required core plugin. Unfortunately, the rhythm minigame plugin I am using no longer works, and it does a normal battle instead.
I tried installing this plugin and also your required core plugin. Unfortunately, the rhythm minigame plugin I am using no longer works, and it does a normal battle instead.
I don't understand. Your rhythm minigame plugin stoped working after you instaled my two plugins?
If yes, did you try to change plugin order?
EliMZ_Book must be above any other Eli plugin.

If still does not work, then it's a compatibility issue =/

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-remove-escape-item-and-guard-commands-from-battles.182964/