Albic's Game Settings by Yourself

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
525
First Language
Javascript
Primarily Uses
RMMZ
Thanks for this nice and easy to use script. BD I did have to edit a few variable names to get it to work though.

Line 75 GameSettings::MAX_Level_EDIT to GameSettings::MAX_LEVEL_EDIT

Line 76 GameSettings::MAX_Level to GameSettings::MAX_LEVEL

Edited Script:

Code:
#==============================================================================# ~~Game Settings by Yourself~~															 v1.0 (26/03/2012)#==============================================================================# Script by:#		Albic#==============================================================================# Terms of use:# * You are allowed to use this script in commercial and non-commercial products,#   but if you use it in a commercial product, you have to send me an e-mail, to#   let me know to: "albic@spellcraftgaming.net"!## * You are allowed to edit everything for yourself, but you are not allowed to#   post this script as yours or post it at other websites without permission!## * You have to credit me as well!#==============================================================================# Introduction:# * Simply edit the command class!## * Set the things, you don't want to be changed to "false"#==============================================================================#----------------------------------------------------------------------------#   Command class# Edit this class, if you want some settings to be changed!#----------------------------------------------------------------------------module GameSettings  #--------------------------------------------------------------------------  # Set this to the maximum Level, you want in your game  #--------------------------------------------------------------------------  MAX_LEVEL_EDIT = true  MAX_LEVEL = 99  #--------------------------------------------------------------------------  # Set this to the maximum amount of gold, your party is able to have  #--------------------------------------------------------------------------  MAX_GOLD_EDIT = true  MAX_GOLD = 99999999  #--------------------------------------------------------------------------  # Set this to the maximum amount of items, your party is able to have per  # item type  #--------------------------------------------------------------------------  MAX_ITEM_AMOUNT_EDIT = true  MAX_ITEM_AMOUNT = 99  #--------------------------------------------------------------------------  # Set this to the maximum amount of items, your party is able to have per  # item type  #--------------------------------------------------------------------------  VEHICLE_MOVE_SPEED_EDIT = true  VEHICLE_MOVE_SPEED_BOAT = 4  VEHICLE_MOVE_SPEED_SHIP = 5  VEHICLE_MOVE_SPEED_AIRSHIP = 6end#============================================================================#   Script classes# Do not edit this, if you don't know what you're doing!#============================================================================#----------------------------------------------------------------------------#   Game_Actor#----------------------------------------------------------------------------class Game_Actor < Game_Battler  def max_level	if GameSettings::MAX_LEVEL_EDIT	  return GameSettings::MAX_LEVEL	else	  return actor.max_level	end  end  def param_base(param_id)	b = self.class.params[param_id, 1]	i = self.class.params[param_id, 2]	return b + i * (@level - 1)  endend#----------------------------------------------------------------------------#   Game_Party#----------------------------------------------------------------------------class Game_Party < Game_Unit  def max_gold	if GameSettings::MAX_GOLD_EDIT	  return GameSettings::MAX_GOLD	else	  return 99999999	end  end  def max_item_number(item)	if GameSettings::MAX_ITEM_AMOUNT_EDIT	  return GameSettings::MAX_ITEM_AMOUNT	else	  return 99	end  endend#----------------------------------------------------------------------------#   Game_Vehicle#----------------------------------------------------------------------------class Game_Vehicle < Game_Character  def init_move_speed	if GameSettings::VEHICLE_MOVE_SPEED_EDIT	  @move_speed = GameSettings::VEHICLE_MOVE_SPEED_BOAT if @type == :boat	  @move_speed = GameSettings::VEHICLE_MOVE_SPEED_SHIP if @type == :ship	  @move_speed = GameSettings::VEHICLE_MOVE_SPEED_AIRSHIP if @type == :airship	else	  @move_speed = 4 if @type == :boat	  @move_speed = 5 if @type == :ship	  @move_speed = 6 if @type == :airship	end  endend
 
Last edited by a moderator:

Tiregs

Villager
Member
Joined
Jan 19, 2020
Messages
24
Reaction score
2
First Language
german
Primarily Uses
RMVXA
Here is a cleaned up version of the script. Didn't change anything, just added the linebreaks:


Ruby:
#==============================================================================
# ~~Game Settings by Yourself~~                                                             v1.0 (26/03/2012)
#==============================================================================
# Script by:
#        Albic
#==============================================================================
# Terms of use:
# * You are allowed to use this script in commercial and non-commercial products,
#   but if you use it in a commercial product, you have to send me an e-mail, to
#   let me know to: "albic@spellcraftgaming.net"!
#
# * You are allowed to edit everything for yourself, but you are not allowed to
#   post this script as yours or post it at other websites without permission!
#
# * You have to credit me as well!
#==============================================================================
# Introduction:
# * Simply edit the command class!
#
# * Set the things, you don't want to be changed to "false"
#==============================================================================
#----------------------------------------------------------------------------
#   Command class
# Edit this class, if you want some settings to be changed!
#----------------------------------------------------------------------------
module GameSettings 
  #-------------------------------------------------------------------------- 
  # Set this to the maximum Level, you want in your game 
  #-------------------------------------------------------------------------- 
  MAX_LEVEL_EDIT = true 
  MAX_LEVEL = 99 
  #-------------------------------------------------------------------------- 
  # Set this to the maximum amount of gold, your party is able to have 
  #-------------------------------------------------------------------------- 
  MAX_GOLD_EDIT = true 
  MAX_GOLD = 99999999 
  #-------------------------------------------------------------------------- 
  # Set this to the maximum amount of items, your party is able to have per 
  # item type 
  #-------------------------------------------------------------------------- 
  MAX_ITEM_AMOUNT_EDIT = true 
  MAX_ITEM_AMOUNT = 99 
  #-------------------------------------------------------------------------- 
  # Set this to the maximum amount of items, your party is able to have per 
  # item type 
  #-------------------------------------------------------------------------- 
  VEHICLE_MOVE_SPEED_EDIT = true 
  VEHICLE_MOVE_SPEED_BOAT = 4 
  VEHICLE_MOVE_SPEED_SHIP = 5 
  VEHICLE_MOVE_SPEED_AIRSHIP = 6
  end
  #============================================================================
  #   Script classes
  # Do not edit this, if you don't know what you're doing!
  #============================================================================
  #----------------------------------------------------------------------------
  #   Game_Actor
  #----------------------------------------------------------------------------
  class Game_Actor < Game_Battler 
    def max_level   
      if GameSettings::MAX_LEVEL_EDIT     
        return GameSettings::MAX_LEVEL   
      else     
        return actor.max_level   
      end 
    end 
    def param_base(param_id)   
      b = self.class.params[param_id, 1]   
      i = self.class.params[param_id, 2]   
      return b + i * (@level - 1) 
    end
  end
  #----------------------------------------------------------------------------
  #   Game_Party
  #----------------------------------------------------------------------------
  class Game_Party < Game_Unit 
    def max_gold   
      if GameSettings::MAX_GOLD_EDIT     
        return GameSettings::MAX_GOLD   
      else     
        return 99999999   
      end 
    end 
    def max_item_number(item)   
      if GameSettings::MAX_ITEM_AMOUNT_EDIT     
        return GameSettings::MAX_ITEM_AMOUNT   
      else     
        return 99   
      end 
    end
  end
  #----------------------------------------------------------------------------
  #   Game_Vehicle
  #----------------------------------------------------------------------------
  class Game_Vehicle < Game_Character 
    def init_move_speed   
      if GameSettings::VEHICLE_MOVE_SPEED_EDIT     
        @move_speed = GameSettings::VEHICLE_MOVE_SPEED_BOAT
        if @type == :boat     
          @move_speed = GameSettings::VEHICLE_MOVE_SPEED_SHIP
          if @type == :ship     
            @move_speed = GameSettings::VEHICLE_MOVE_SPEED_AIRSHIP
            if @type == :airship   
            else     
              @move_speed = 4 if @type == :boat     
              @move_speed = 5 if @type == :ship     
              @move_speed = 6 if @type == :airship   
            end 
          end
        end
      end
    end
  end
 

Latest Threads

Latest Posts

Latest Profile Posts

The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.
Gamedev for relaxing? yes or no?
I've been having a rough couple of months and as such let down some friends of mine in the RPG Maker community. I still need time to get back to my normal self, but it's nice to be back, to read articles, and to design again (albeit at a slow pace). Hope to give updates on Kid Crescent soon.
Friendly reminder that you don't have to be able to do absolutely everything. It's okay to scale back features or assets if things are too much - especially if you're the only one working on the game! And you can always add things in later. <3
My new cutscene system makes it so much easier to add parallel stuff happening in the background, I can easily fill the whole screen with action.

Forum statistics

Threads
107,734
Messages
1,031,737
Members
139,869
Latest member
Anzi
Top