RPG::System

The data class for the system.

Superclass

Attributes

game_title

The game title.

version_id

A random number used for update checks. The number changes every time data is saved in RPG Maker.

japanese

Always true in the Japanese version.

party_members

The initial party. An array of actor IDs.

currency_unit

The unit of currency.

window_tone

The window color (Tone)B

elements

A list of elements. A string array using element IDs as subscripts, with the element in the 0 position being nil.

skill_types

A list of skill types. A string array using skill type IDs as subscripts, with the element in the 0 position being nil.

weapon_types

A list of weapon types. A string array using weapon type IDs as subscripts, with the element in the 0 position being nil.

armor_types

A list of armor types. A string array using armor type IDs as subscripts, with the element in the 0 position being nil.

switches

A switch name list. A string array using switch IDs as subscripts, with the element in the 0 position being nil.

variables

A variable name list. A string array using variable IDs as subscripts, with the element in the 0 position being nil.

boat

Boat settings (RPG::System::Vehicle).

ship

Ship settings (RPG::System::Vehicle).

airship

Airship settings (RPG::System::Vehicle).

title1_name

The file name of the title (background) graphic.

title2_name

The file name of the title (frame) graphic.

opt_draw_title

The truth value of the [Draw Game Title] option.

opt_use_midi

The truth value of the [Initialize MIDI at Startup] option.

opt_transparent

The truth value of the [Start Transparent] option.

opt_followers

The truth value of the [Show Player Followers] option.

opt_slip_death

The truth value of the [K.O. by Slip Damage] option.

opt_floor_death

The truth value of the [K.O. by Floor Damage] option.

opt_display_tp

The truth value of the [Display TP in Battle] option.

opt_extra_exp

The truth value of the [Reserve Members' EXP] option.

title_bgm

The title BGM (RPG::BGM).

battle_bgm

The battle BGM (RPG::BGM).

battle_end_me

The battle end ME (RPG::ME).

gameover_me

The gameover ME (RPG::ME).

sounds

Sound effects. An RPG::SE array.

start_map_id

The map ID of the player's initial position.

start_x

The map's x-coordinate of the player's initial position.

start_y

The map's y-coordinate of the player's initial position.

terms

Terms (RPG::System::Terms).

test_battlers

Party settings for battle tests. An RPG::System::TestBattler array.

test_troop_id

The enemy troop ID for battle tests.

battleback1_name

The file name of the battle background (floor) graphic for use in editing enemy troops and battle tests.

battleback2_name

The file name of the battle background (wall) graphic for use in editing enemy troops and battle tests.

battler_name

The battler graphic file name for use in editing animations.

battler_hue

The adjustment value for the battler graphic's hue (0..360) for use in editing animations.

edit_map_id

The ID of the map currently being edited. For internal use.

Inner Classes

Definition

class RPG::System
  def initialize
    @game_title = ''
    @version_id = 0
    @japanese = true
    @party_members = [1]
    @currency_unit = ''
    @elements = [nil, '']
    @skill_types = [nil, '']
    @weapon_types = [nil, '']
    @armor_types = [nil, '']
    @switches = [nil, '']
    @variables = [nil, '']
    @boat = RPG::System::Vehicle.new
    @ship = RPG::System::Vehicle.new
    @airship = RPG::System::Vehicle.new
    @title1_name = ''
    @title2_name = ''
    @opt_draw_title = true
    @opt_use_midi = false
    @opt_transparent = false
    @opt_followers = true
    @opt_slip_death = false
    @opt_floor_death = false
    @opt_display_tp = true
    @opt_extra_exp = false
    @window_tone = Tone.new(0,0,0)
    @title_bgm = RPG::BGM.new
    @battle_bgm = RPG::BGM.new
    @battle_end_me = RPG::ME.new
    @gameover_me = RPG::ME.new
    @sounds = Array.new(24) { RPG::SE.new }
    @test_battlers = []
    @test_troop_id = 1
    @start_map_id = 1
    @start_x = 0
    @start_y = 0
    @terms = RPG::System::Terms.new
    @battleback1_name = ''
    @battleback2_name = ''
    @battler_name = ''
    @battler_hue = 0
    @edit_map_id = 1
  end
  attr_accessor :game_title
  attr_accessor :version_id
  attr_accessor :japanese
  attr_accessor :party_members
  attr_accessor :currency_unit
  attr_accessor :skill_types
  attr_accessor :weapon_types
  attr_accessor :armor_types
  attr_accessor :elements
  attr_accessor :switches
  attr_accessor :variables
  attr_accessor :boat
  attr_accessor :ship
  attr_accessor :airship
  attr_accessor :title1_name
  attr_accessor :title2_name
  attr_accessor :opt_draw_title
  attr_accessor :opt_use_midi
  attr_accessor :opt_transparent
  attr_accessor :opt_followers
  attr_accessor :opt_slip_death
  attr_accessor :opt_floor_death
  attr_accessor :opt_display_tp
  attr_accessor :opt_extra_exp
  attr_accessor :window_tone
  attr_accessor :title_bgm
  attr_accessor :battle_bgm
  attr_accessor :battle_end_me
  attr_accessor :gameover_me
  attr_accessor :sounds
  attr_accessor :test_battlers
  attr_accessor :test_troop_id
  attr_accessor :start_map_id
  attr_accessor :start_x
  attr_accessor :start_y
  attr_accessor :terms
  attr_accessor :battleback1_name
  attr_accessor :battleback2_name
  attr_accessor :battler_name
  attr_accessor :battler_hue
  attr_accessor :edit_map_id
end