Little Problem with Yanfly's Party Sized Menu Script...

EDIT: I just realized I put this in the completely wrong forum. This is what happens when you post things at 5 AM, sleep deprived...
Sorry about that... This will be the last time. :LZSteary:


Hiya RPG makers! I'm having a little problem with this script and I cannot really find any help online... Not only that, I know almost nothing about RGSS (even though I kinda want to learn it). :LZSsad:
First, here's the source for Yanfly's Ace Menu Engine (required for the Party System script), their Party System script (which seems to be required for the Party Sized Menu script even though it never says so...) and their Party Sized Menu script:

https://raw.githubusercontent.com/Archeia/YEARepo/master/Menu/Ace_Menu_Engine.rb
https://raw.githubusercontent.com/Archeia/YEARepo/master/Menu/Party_System.rb
https://raw.githubusercontent.com/Archeia/YEARepo/master/Core/Party_Sized_Menu.rb

[I think] That's a lot, but my problem is not too complicated at all, so no worries. :LZSproud:

Anyway, when you have one actor in the party and you're going to select the actor, it highlights like this...:
Spoiler
bc0a9bd5716b5300c577e6158c9c7a07.png

(Sorry for the badly-drawn censoring, I don't want spoilers. Haha... sigh...)

Also, if you have two actors, this happens:
Spoiler
1b95bd008b44182f002913eed9f0c5ed.png

(Maybe... Maybe I should've used a demo...)

Were these intentional? If so... uh...
I was just wondering if there was any way I can make it so that the padding between actors decreases only when there's a fifth member, like here:
Spoiler
psm.jpg

I figured out where this whole padding-"problem"-thing happens. It starts with line 54 in the Party Sized Menu script:
Spoiler
#--------------------------------------------------------------------------
# overwrite method: item_height
#--------------------------------------------------------------------------
def item_height
return (height - standard_padding * 2) / member_size
end

Any way to change this so it occurs only when there's a 5th party member? Thanks! :LZScheeze:
You could try:
Spoiler
Code:
def item_height
  return (height - standard_padding * 2)  / [member_size,4].max
end
And remember to use code tags for your code lines in your posts! 😛

Btw, this seems like the right forum for this topic.
Thank you so, so, so much, Sixth!! ;_; That works perfectly!! :LZScheeze: I'll be sure to credit you. 🙂

I forgot the code tags were things... :dizzy:
Just for your information, you adjust this in the Party System script. Line 98 allows you to use a variable. You add one each time a member joins the party. The advantage of this is that it adjusts everything for how many members there are e.g. battle screens where you don't have those empty spaces on the HUD, the save screen if you're using Yanfly's Save Engine, and so on.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/little-problem-with-yanflys-party-sized-menu-script.87700/