If you use a plugin like VS Party system, I think it automatically adjusts when you change max battle members.
But if you want to do it without, I think it's like (change 24 to how much reduction you need):
Sprite_Gauge.prototype.bitmapWidth = function() {
if (SceneManager._scene instanceof Scene_Battle){
return 128 - ($gameParty.battleMembers().length === 5 ? 24 : 0);
} else {
return 128;
}
};
Tried the script, but it only changed the fifth party member
It was meant as a plugin file, not as a script. But anyway, do you have something else that draws your actor stuff? Like some plugins that affect that?
The only plugins I have don't affect battles
Edit: It worked when I added the fifth member before the battle
Yeah, that only works if you add the fifth member before battle (I might have misread your opening a bit). If you want it to change during battle, I think you need to target the gauge sprites' scale or something, but I've no motivation to try and check how to do that.
EDIT: Or how are you doing the 5th member adding? Do you have the empty spot when the summoner is in the group? Then I think you could check for maxBattleMembers() (instead of battleMembers().length).
I'll try to work around that and just always have the fifth member outside of combat.