Is it possible to check how many members are in my party and create a variable from that information?

Context: This is to do with hud maker ultra & the battle core windows not lining up properly. But the plugins themselves don't really matter. All I need to do is tell hud maker that there is less than 4 party members in my crew and then I can generate new hud layouts accordingly.

1713289440578.png


In the image above you can see Hud Maker displaying my character's image and stats as if there are four party members, but Battle Core is auto centering the commands because there's only one party member available.


Hud Maker can take in variables, so all I need is to do is tell a variable to react to the number of members I have in my crew. Then I can feed that variable into hud maker as a display condition.

So super simply, how do I make the number of party members in my crew affect a variable? Doable?
does "$gameParty.members().length" get you what you want?
does "$gameParty.members().length" get you what you want?
It very well might, but I'm still wet behind the ears and don't know where to place that. Could you elaborate? Thanks.
Hud Maker can take in variables, so all I need is to do is tell a variable to react to the number of members I have in my crew. Then I can feed that variable into hud maker as a display condition.
Im not familiar with hudmaker, but if you needed to get the number of party members the player has, any space thatll accept script will take that line and return the number. It could be an event with a variable control variable command.

additionally, if hudmaker is capable of using script directly you can skip the variable and put that as the condition
Im not familiar with hudmaker, but if you needed to get the number of party members the player has, any space thatll accept script will take that line and return the number. It could be an event with a variable control variable command.

additionally, if hudmaker is capable of using script directly you can skip the variable and put that as the condition
Interesting. I'm always struggling to communicate and understand quick answers, because there are big holes in my knowledge of the RMMZ engine and programming in general. I'll take a good look tomorrow and try to fill in one of those fundamental principles. My gut tells me this is the solution and will prove to be an invaluable avenue for investigation.
Then I can feed that variable into hud maker as a display condition.
You answered this yourself in the first post? You would put in the display condition $gameParty.members().length <4 or whatever
Im not familiar with hudmaker, but if you needed to get the number of party members the player has, any space thatll accept script will take that line and return the number. It could be an event with a variable control variable command.

additionally, if hudmaker is capable of using script directly you can skip the variable and put that as the condition
I got there with my stupid brain eventually. I did it via a variable. I'm sure you're right and you could skip that bit and do it directly in Hud Maker. I just can't get my head around even the very basics of JS syntax.

Anyhoo, it works. Victory is mine. Thankyou very much.

Here are a couple of screenshots for the next noobish fool that asks this question. Resolved!

1713349513601.png
1713349574953.png


p.s. Hud Maker Ultra is sooo good!
I'm sure in that Conditions list you have in your screenshot there's an option to use a JavaScript condition instead of a variable condition.

The problem with what you're doing is making sure that variable is always up to date with the correct number of current party members.
I'm sure in that Conditions list you have in your screenshot there's an option to use a JavaScript condition instead of a variable condition.

The problem with what you're doing is making sure that variable is always up to date with the correct number of current party members.
There is. It's right here.
1713355960389.png

I'm just too amateur to understand how to write even the most basic script syntax properly in that box. I figured it would be something like "$gameParty.members().length=3;". But again, even the very basics of JS syntax defeats me.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-check-how-many-members-are-in-my-party-and-create-a-variable-from-that-information.167794/