Battle with 3 party members even if your party is larger than 3?

Let's say my party consists of 8 characters, but I only want to use 3 for any sort of battle. Is there a script for this, or some sort of work around in the natural mechanics of the engine?
And do you have followers turned off, or do you only want 2 to follow instead of 3?

In that case, pop this into a new slot below Materials and above Main:

Code:
class Game_Party < Game_Unit
  def max_battle_members
    return 3
  end
end

The number returned above is used to determine how many will battle, but also how many party members you'll see on the map. If you want to affect one but not the other, it will be a little bit more complicated.
And do you have followers turned off, or do you only want 2 to follow instead of 3?

In that case, pop this into a new slot below Materials and above Main:

Code:
class Game_Party < Game_Unit
  def max_battle_members
    return 3
  end
end

The number returned above is used to determine how many will battle, but also how many party members you'll see on the map. If you want to affect one but not the other, it will be a little bit more complicated.
Thank you! You're awesome. I'm assuming that the first three party members will be the battlers?
yes, that's right.

Original thread: https://forums.rpgmakerweb.com/threads/battle-with-3-party-members-even-if-your-party-is-larger-than-3.90538/