Albic's Game Settings by Yourself

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
652
Reaction score
187
First Language
Javascript
Primarily Uses
RMMV
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

i watched the sonic movie it was pretty good i hope they make a sequel
tomorrow I'ma go on a cruise for the first time ever... lets hope I'll survive the experience!
Omg! 8 years in this forum :o
Ksi
Streaming the last of the RMN Valentiny event games so feel free to drop on by and watch me cry (whether that's from laughter, rage or sheer pain, who knows?)
Today I went to sleep without setting an alarm, so I could sleep more than 2 hours. I woke up after 2 hours.

Forum statistics

Threads
94,309
Messages
919,827
Members
124,060
Latest member
jloppnow
Top