Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Menu limited to 3 persons?

Juuhou

Sponsor

Like the title says, how can I limit my menu to only 3 people kinda like FFVII? By limit means that even if I start with 4 people in my database, it only shows 3 in the menu. I figured out how to keep them from showing within game by changing game_party but by default database Im not sure so it conflicts when I try to customize my menu. I hope thats understandable, thanks.
 
try changing this in Window_MenuStatus:
Code:
@item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
to:
Code:
@item_max = $game_party.actors.size-1
    for i in 0...@item_max

EDIT: You might also want to change:
Code:
y = i * 116
to:
Code:
 y = i *154 + 2/3
so the windows are more distributed
EDIT:: lol if you do that, you also have to change the cursor update:
Code:
self.cursor_rect.set(0, @index * 116, self.width - 32, 96)
to:
Code:
self.cursor_rect.set(0, @index * 154 + 2/3, self.width - 32, 96)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top