MV Limit the number of actor in battle

I have 6 actors in the party, but i want to appear only 3 actors at the same time in the battle.
The enemy is similar. Is there a way to do this?
Copy-paste this into a .js file and enable it as a plugin:
JavaScript:
Game_Party.prototype.maxBattleMembers = function() {
    return 3;
};

For enemies, just set up your troops so that only 3 appear at any one time.
Moved to: Plugin Requests
Copy-paste this into a .js file and enable it as a plugin:
JavaScript:
Game_Party.prototype.maxBattleMembers = function() {
    return 3;
};

For enemies, just set up your troops so that only 3 appear at any one time.
Thank you very much, Solar_Flare. It works, by the way. Not sure that I will ever need it, but I just wanted to try putting something in Trihan's plugin skeleton:


Might have a go with something else simple at some point, maybe something that I have had a go at on my own.
Edit: Just in case anyone is interested, I will attempt to include what I ended up with here.
//============================================================================= // threeBattlePartyMembers.js //============================================================================= /*: * @plugindesc *This plugin changes the default 4 party members who take part in battles to 3. * @author Code - Solar Flare, plugin "Skeleton" - Trihan, combined - Piyan Glupak * version 1.0 * @help * * Plug in and play, no parameters or script commands to use. * * TERMS OF USE * Freely available for use in commercial and non-commercial games. No liability * accepted for its use. * * COMPATIBILITY * No compatability issues known of */ Game_Party.prototype.maxBattleMembers = function() { return 3; };

;

Original thread: https://forums.rpgmakerweb.com/threads/limit-the-number-of-actor-in-battle.140798/