MZ How to get status window to appear more than 4 party members

Hi, I am currenty using Visustella Sideways Battle UI in conjunction wih Darkneondragontwins Party Plugin. I have managed to get it to work pretty well. Only remaining issue is that the Status UI does not appear for temporary party members added with summon skillif the party exceeds 4 actors with the summon. Is there a way to add Status UI with 5th and subsequent members of the party?

Edit. Added image to demonstrate what I mean. Notice how the summoned imp does not have a health bar or mana bar displayed. I tried other ui methods and they all work, escept the Visustella sideways battle ui, which is the one I want to use. Another image was provided showing the status screens being added properly with the default layout.
I quickly checked the plugin and it targets the battle status window (since that's used in base game). That VS sideview battle UI creates a number of windows based on your max battle members at battle start I think. So if you change your max battle members mid battle, like that plugin seems to do, there won't be a window to show new stuff.

So you can try to make a new window there when you summon the dude and remove it when they leave. Or just try to make an additional window at battle start which is probably easier, but you still probably have to find a way to hide the stuff when the summon leaves.
But yeah if you write to console that SceneManager._scene.createSideviewUiBattleStatusWindowsand click the function, even though it's obfuscated you can see that it seems to check max battle members in the loop. Just copy paste that and make a plugin where you add +1 to the formula so that it creates the fifth window there.
You need to change the max party size outside from battles. There's no standard way in RPG Maker to do that inside, so programming a plugin to support that isn't trivial. Therefore, most devs don't implement it at all instead of implementing something that is risky to break.
@Aerosys That plugin has written it like this:

Game_Party.prototype.maxBattleMembers = function() {
let base = Party.maxPartySize;
if ($gameSystem._tempGuests) {
base += $gameSystem._tempGuests.length;
}
if (Party.auto_team) {
base += Party.auto_team.length;
}
//Honestly, the code editor gave me this as a suggestion and it kinda just works...
return base;
};

The op said that it seems to work for them. But that VS side view battle the battle status window has heigth 0 so it isn't showing, instead there's 4 (I assume based on max battle members) Window_SideviewUiBattleStatus
This is what I meant with "there's no standard". Windows are initialized on battle start, then the plugins usually don't support adding or removing a window/column/row dynamically.
So basically what I seek to do is impossible with my current coding knowledge. Though what I am confused about is that further status windows are added fine with the default layout, its just the sideways battle ui plugin that is having trouble to do this. I also tried permanently increasing the partys size to 5 using visustella party system. Same issue, even with permanent party members, sideways battle ui refuses to show more than 5. So the issue does not lie with the summon plugin.

I also came across this thread when searching for a solution, where OP did somehow manage to add status windows for more than 4 using the same plugin. What I don't understand is how they did it.

Cool, yeah that's why I suggested they make it create a fifth window in the loop. And check if everything works since there's update battler tied to the window update.

EDIT: above is reply to Aerosys
So basically what I seek to do is impossible with my current coding knowledge. Though what I am confused about is that further status windows are added fine with the default layout, its just the sideways battle ui plugin that is having trouble to do this. I also tried permanently increasing the partys size to 5 using visustella party system. Same issue, even with permanent party members, sideways battle ui refuses to show more than 5. So the issue does not lie with the summon plugin.

I also came across this thread when searching for a solution, where OP did somehow manage to add status windows for more than 4 using the same plugin. What I don't understand is how they did it.


They are added in the default layout because the battle status window is one window that has max items as max battle members (I guess the plugin codes change the maxcolumns too). So when you refresh it with your new max battle members it draws all of them there. At least as far as I understand.

But with your VS Sideview plugin it creates a number of windows at battle start according to your max battle members. If you have less than max battlers some of the windows just stay "invisible".

You can't use that party plugin with VS Party plugin because some of the stuff overwrites same methods. I guess you can try to make a system with VS party plugin where you change max battlers with pre-battle common event (and change back post-battle). And have your summon appear as the 5th battler with just a common event and also disappear with a common event. But then you'll probably have to limit some of the actor/party switching stuff mid battle.

If you want to use the summon plugin you're currently used (you need to disable VS party plugin) you can try what I suggested. Go to console with F8 and go to console tab and write SceneManager._scene.createSideviewUiBattleStatusWindowsand press enter. Then click on the function and it will take you to sources tab. Click 'pretty print'. Then copy paste the function that as its name highlighter yellow to notepad. For me it looks like below.

Scene_Battle['prototype'][_0x2aaebd(0x195)] = function() {
const _0x4b8f27 = _0x2aaebd;
if (!BattleManager['isUsingSideviewUiLayout']())
return;
this['_sideviewUiBattleStatusWindows'] = [];
const _0x3d73a6 = $gameParty[_0x4b8f27(0xff)]();
for (let _0x4d90f0 = 0x0; _0x4d90f0 < _0x3d73a6 + 1; _0x4d90f0++) {
if (_0x4b8f27(0x1f6) === _0x4b8f27(0x1f6)) {
const _0x58c226 = new Window_SideviewUiBattleStatus(_0x4d90f0);
this[_0x4b8f27(0xf8)](_0x58c226),
this['_sideviewUiBattleStatusWindows'][_0x4b8f27(0xbf)](_0x58c226);
} else
this[_0x4b8f27(0x16e)]['updateSideviewUiPosition']();
}
}

In the loop it's creating those windows based on maxBattleMembers. I wrote + 1 there in the for loop. Do the same and then save the notepad as .js file to your plugin folder and add as a plugin.

I haven't tested if doing that is enough, but you can try it.

EDIT: go to console during battle, if you want to get the function with that line
They are added in the default layout because the battle status window is one window that has max items as max battle members (I guess the plugin codes change the maxcolumns too). So when you refresh it with your new max battle members it draws all of them there. At least as far as I understand.

But with your VS Sideview plugin it creates a number of windows at battle start according to your max battle members. If you have less than max battlers some of the windows just stay "invisible".

You can't use that party plugin with VS Party plugin because some of the stuff overwrites same methods. I guess you can try to make a system with VS party plugin where you change max battlers with pre-battle common event (and change back post-battle). And have your summon appear as the 5th battler with just a common event and also disappear with a common event. But then you'll probably have to limit some of the actor/party switching stuff mid battle.

If you want to use the summon plugin you're currently used (you need to disable VS party plugin) you can try what I suggested. Go to console with F8 and go to console tab and write SceneManager._scene.createSideviewUiBattleStatusWindowsand press enter. Then click on the function and it will take you to sources tab. Click 'pretty print'. Then copy paste the function that as its name highlighter yellow to notepad. For me it looks like below.

Scene_Battle['prototype'][_0x2aaebd(0x195)] = function() {
const _0x4b8f27 = _0x2aaebd;
if (!BattleManager['isUsingSideviewUiLayout']())
return;
this['_sideviewUiBattleStatusWindows'] = [];
const _0x3d73a6 = $gameParty[_0x4b8f27(0xff)]();
for (let _0x4d90f0 = 0x0; _0x4d90f0 < _0x3d73a6 + 1; _0x4d90f0++) {
if (_0x4b8f27(0x1f6) === _0x4b8f27(0x1f6)) {
const _0x58c226 = new Window_SideviewUiBattleStatus(_0x4d90f0);
this[_0x4b8f27(0xf8)](_0x58c226),
this['_sideviewUiBattleStatusWindows'][_0x4b8f27(0xbf)](_0x58c226);
} else
this[_0x4b8f27(0x16e)]['updateSideviewUiPosition']();
}
}

In the loop it's creating those windows based on maxBattleMembers. I wrote + 1 there in the for loop. Do the same and then save the notepad as .js file to your plugin folder and add as a plugin.

I haven't tested if doing that is enough, but you can try it.

EDIT: go to console during battle, if you want to get the function with that line
Is there any alternate way to open console? Because nothing happens when I press F8. Though in any case, I do wonder if it perhaps would be easier to return to the old summon system. Though summons taking a party slot an be annoying. Either that or restructure the battle screen to use default ui. Which UI do you gues think look the best? The sideways battle ui or the default battle ui?
Hmmm strange if nothing happens. Though if you use VisuStella stuff the console should open automatically when you playtest. Doesn't it like open two different "apps" or whatever you call those that you see in windows botton row when you playtest?

I like the sideview UI better myself, though you could always try to create something completely custom. And trying what I showed there isn't a difficult thing. If that doesn't work then editing it more would probably be more difficult.
They are added in the default layout because the battle status window is one window that has max items as max battle members (I guess the plugin codes change the maxcolumns too). So when you refresh it with your new max battle members it draws all of them there. At least as far as I understand.

But with your VS Sideview plugin it creates a number of windows at battle start according to your max battle members. If you have less than max battlers some of the windows just stay "invisible".

You can't use that party plugin with VS Party plugin because some of the stuff overwrites same methods. I guess you can try to make a system with VS party plugin where you change max battlers with pre-battle common event (and change back post-battle). And have your summon appear as the 5th battler with just a common event and also disappear with a common event. But then you'll probably have to limit some of the actor/party switching stuff mid battle.

If you want to use the summon plugin you're currently used (you need to disable VS party plugin) you can try what I suggested. Go to console with F8 and go to console tab and write SceneManager._scene.createSideviewUiBattleStatusWindowsand press enter. Then click on the function and it will take you to sources tab. Click 'pretty print'. Then copy paste the function that as its name highlighter yellow to notepad. For me it looks like below.

Scene_Battle['prototype'][_0x2aaebd(0x195)] = function() {
const _0x4b8f27 = _0x2aaebd;
if (!BattleManager['isUsingSideviewUiLayout']())
return;
this['_sideviewUiBattleStatusWindows'] = [];
const _0x3d73a6 = $gameParty[_0x4b8f27(0xff)]();
for (let _0x4d90f0 = 0x0; _0x4d90f0 < _0x3d73a6 + 1; _0x4d90f0++) {
if (_0x4b8f27(0x1f6) === _0x4b8f27(0x1f6)) {
const _0x58c226 = new Window_SideviewUiBattleStatus(_0x4d90f0);
this[_0x4b8f27(0xf8)](_0x58c226),
this['_sideviewUiBattleStatusWindows'][_0x4b8f27(0xbf)](_0x58c226);
} else
this[_0x4b8f27(0x16e)]['updateSideviewUiPosition']();
}
}

In the loop it's creating those windows based on maxBattleMembers. I wrote + 1 there in the for loop. Do the same and then save the notepad as .js file to your plugin folder and add as a plugin.

I haven't tested if doing that is enough, but you can try it.

EDIT: go to console during battle, if you want to get the function with that line
Extracted the code, though where do you want me to put the +1? This code is kinda gibberish to me.

Edit. did figure out how to create the plugin, but for some reason the game won't launch with it on.
In the same place I put it in the for loop:
for (let _0x4d90f0 = 0x0; _0x4d90f0 < _0x3d73a6 + 1; _0x4d90f0++)

(The code is gibberish but if it's name is createSideviewUiBattleStatusWindows and you see a for loop there that uses in the comparison a const that was declared earlier using something that you see is a $gameParty method, you can guess it's maxBattleMembers. And test it with console.log)

EDIT:
You seem to be missing some brackets at the bottom, compare it to my code.
In the same place I put it in the for loop:
for (let _0x4d90f0 = 0x0; _0x4d90f0 < _0x3d73a6 + 1; _0x4d90f0++)

(The code is gibberish but if it's name is createSideviewUiBattleStatusWindows and you see a for loop there that uses in the comparison a const that was declared earlier using something that you see is a $gameParty method, you can guess it's maxBattleMembers. And test it with console.log)

EDIT:
You seem to be missing some brackets at the bottom, compare it to my code.
Thank you, it worked, at least for a 5th member. I wonder if I can push it to more. Right now there doesn't seem to be a limit of the number to the amount of summons with the current system. And I am unsure how to implement a limit to the summons, except maybe the skills sharing a cooldown.

Do anyone know a way to create an even tha limits the total summons on screen to 1 or two?

Edit. This worked pretty decently. Look at the image with 7 members.
Cool.

For your new question, I didn't check the plugin code, but if you don't change the number of normal characters mid battle, I guess one way of doing it is using VS pre-battle common event to store the number of $gameParty.allBattleMembers().length to a variable. Then you can use VS JS Skill Enable notetags for the summon skills to check that (change variable id and amount of summons to what you want):

<JS Skill Enable>
enabled = $gameParty.allBattleMembers().length < $gameVariables.value(100) + 2;
</JS Skill Enable>
Cool.

For your new question, I didn't check the plugin code, but if you don't change the number of normal characters mid battle, I guess one way of doing it is using VS pre-battle common event to store the number of $gameParty.allBattleMembers().length to a variable. Then you can use VS JS Skill Enable notetags for the summon skills to check that (change variable id and amount of summons to what you want):

<JS Skill Enable>
enabled = $gameParty.allBattleMembers().length < $gameVariables.value(100) + 2;
</JS Skill Enable>
I did manage to figure out a solution, I simply made all summon skills share a cooldown of 99 turns, which resets at the start of each battle. Which effectively made it so that a single summoner can only summon one minion per battle, to a maximum of 4 minions if all 4 actors are classes that can summon, for a total of 8 party members. Noticed the summon plugin had no upper limit, so without it, you could summon a ridiculous number of additional actors, more than a bit broken.

Even with the global cooldown, summoner classes like the warlock or ranger are probably pretty strong. Might even be broken.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-status-window-to-appear-more-than-4-party-members.183693/