Max Members Fix
Version: 1.0
Author: modern algebra
Date: December 19, 2010
Version History
- <Version 1.0> 12.19.2010 - Original Release
Description
There has always been the option to alter the MAX_MEMBERS in Game_Party and add more than four members to the party. However, there was no graphical support in either the default menu or battle scenes to show more than four members. This little script fixes that.
Features
- Allows you to see extra members in the Menu and Battle scenes, as well as in the target window of the Item and Skill scenes
- Can turn off the modifications to the battle scene if you are already using a script that graphcially represents extra members of the party
Screenshots Instructions
Paste this script into its own slot in the Script Editor (F11) above Main but below the default scripts.
Then, go to the default Game_Party script and change the MAX_MEMBERS constant at line 12 to the new maximum you want (I could've put an option to control that in this script, but I figured that would make things more confusing).
This script was designed for the default menu and battle scenes. It will not work with most custom menu or battle scenes unless they are very functionally and graphically similar to the default. If you only want it to change the menu status and are already using a battle system that remedies this, then just go to line 28 and change true to false.
Script
#==============================================================================
# Max Members Fix
# Version: 1.0
# Author: modern algebra (rmrk.net)
# Date: December 19, 2010
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Descriptions:
#
# There has always been the option to alter the MAX_MEMBERS in Game_Party
# and add more than four members to the party. However, there was no
# graphical support in either the default menu or battle scenes to show more
# than four members. This little script adds that.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Instructions:
#
# First, go to the default Game_Party script and change the MAX_MEMBERS
# constant at line 12 to the new maximum you want (I could've put an option
# to control that in this script, but I figured that would make things
# more confusing).
#
# This script was designed for the default menu and battle scenes. It will
# not work with most custom menu or battle scenes unless they are graphically
# similar to the default. If you only want it to change the menu status and
# are already using a battle system that remedies this, then just go to line
# 28 and change true to false.
#==============================================================================
MMF_FIX_BATTLE = true # Change this to false if using a CBS
#==============================================================================
# ** Window_MenuStatus
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - refresh
#==============================================================================
class Window_MenuStatus
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Refresh
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias maba_lysop_mxmbrsfix_refrsh_6yh3 refresh
def refresh (*args)
if $game_party.members.size * 96 > self.contents.height
self.contents.dispose
self.contents = Bitmap.new (width - 32, $game_party.members.size * 96)
end
maba_lysop_mxmbrsfix_refrsh_6yh3 (*args) # Run Original Method
end
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Update cursor
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modal_lysmxmbrs_updcurs_5th1 update_cursor
def update_cursor (*args)
modal_lysmxmbrs_updcurs_5th1 (*args) # Run Original Method
# Adjust scroll
if self.cursor_rect.y < self.oy
self.oy = self.cursor_rect.y
elsif self.cursor_rect.y + self.cursor_rect.height > (self.oy + (height - 32))
self.oy = (self.cursor_rect.y + self.cursor_rect.height) - (height - 32)
end
self.cursor_rect.y -= self.oy
end
end
#==============================================================================
# ** Window_BattleStatus
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - refresh
#==============================================================================
if MMF_FIX_BATTLE
class Window_BattleStatus
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Refresh
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modrn_maxmbrsfx_refh_3rn2 refresh
def refresh (*args)
if $game_party.members.size * WLH > self.contents.height
self.contents.dispose
self.contents = Bitmap.new (width - 32, $game_party.members.size * WLH)
end
modrn_maxmbrsfx_refh_3rn2 (*args) # Run Original Method
end
end
end
Credit
Thanks
Support
Please post in this topic at RMRK to report any bugs or give suggestions or ask for compatibility patches. Do not PM me, no matter how old this topic is.
Known Compatibility Issues
This script was designed for the default menu and battle scenes. It will not work with most custom menu or battle scenes. Most custom menu or battle scenes will have done this already, so I took no effort to do so.