RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Max Members Fix

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 97
2014 Best RPG Maker User - Engine2014 Most Unsung Member2013 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best RPG Maker User (Scripting)2011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best Use of Avatar and Signature Space2010 Favourite Staff Member2010 Most Mature Member
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


Code: [Select]
#==============================================================================
#    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


  • modern algebra

Thanks

  • Lysop, for the request

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.