# RPG::System

## Superclass

* [Object](https://enls.gitbook.io/rgss-reference-manual/standard-library/built-in-classes/object)

## Attributes

### magic\_number

Magic number used for update checks. Updates changed values every time data is saved in RPGXP.

### party\_members

The initial party. An array of actor IDs.

### elements

Element list. Text array using element IDs as subscripts, with the element in the 0 position being nil.

### switches

Switch list. Text array using switch IDs as subscripts, with the element in the 0 position being nil.

### variables

Variable list. Text array using variable IDs as subscripts, with the element in the 0 position being nil.

### windowskin\_name

The window skin (or "windowskin") graphic file name.

### title\_name

The title graphic file name.

### gameover\_name

The "Game Over" graphic file name.

### battle\_transition

The file name of the transition graphic, displayed when entering battle.

### title\_bgm

The title BGM ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### battle\_bgm

The battle BGM ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### battle\_end\_me

The battle end ME ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### gameover\_me

The gameover ME ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### cursor\_se

The cursor SE [RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### decision\_se

The decision SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### cancel\_se

The cancel SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### buzzer\_se

The buzzer SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### equip\_se

The equip SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### shop\_se

The shop SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### save\_se

The save SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### load\_se

The load SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### battle\_start\_se

The battle start SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### escape\_se

The escape SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### actor\_collapse\_se

The actor collapse SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### enemy\_collapse\_se

The enemy collapse SE ([RPG::AudioFile](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-audiofile)).

### words

Terms ([RPG::System::Words](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-system-words)).

### start\_map\_id

The map ID of the player's initial position.

### start\_x

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

### start\_y

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

### test\_battlers

Party settings for battle tests. An [RPG::System::TestBattler](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-system-testbattler) array.

### test\_troop\_id

The troop ID for battle tests.

### battleback\_name

The battle background graphic file name, for battle tests and internal use.

### battler\_name

The battler graphic file name, for internal use.

### battler\_hue

The adjustment value for the battler graphic's hue (0..360), for internal use.

### edit\_map\_id

The ID of the map currently being edited, for internal use.

## Inner Classes

* [RPG::System::Words](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-system-words)
* [RPG::System::TestBattler](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-system-testbattler)

## Definition

```ruby
module RPG
  class System
    def initialize
      @magic_number = 0
      @party_members = [1]
      @elements = [nil, ""]
      @switches = [nil, ""]
      @variables = [nil, ""]
      @windowskin_name = ""
      @title_name = ""
      @gameover_name = ""
      @battle_transition = ""
      @title_bgm = RPG::AudioFile.new
      @battle_bgm = RPG::AudioFile.new
      @battle_end_me = RPG::AudioFile.new
      @gameover_me = RPG::AudioFile.new
      @cursor_se = RPG::AudioFile.new("", 80)
      @decision_se = RPG::AudioFile.new("", 80)
      @cancel_se = RPG::AudioFile.new("", 80)
      @buzzer_se = RPG::AudioFile.new("", 80)
      @equip_se = RPG::AudioFile.new("", 80)
      @shop_se = RPG::AudioFile.new("", 80)
      @save_se = RPG::AudioFile.new("", 80)
      @load_se = RPG::AudioFile.new("", 80)
      @battle_start_se = RPG::AudioFile.new("", 80)
      @escape_se = RPG::AudioFile.new("", 80)
      @actor_collapse_se = RPG::AudioFile.new("", 80)
      @enemy_collapse_se = RPG::AudioFile.new("", 80)
      @words = RPG::System::Words.new
      @test_battlers = []
      @test_troop_id = 1
      @start_map_id = 1
      @start_x = 0
      @start_y = 0
      @battleback_name = ""
      @battler_name = ""
      @battler_hue = 0
      @edit_map_id = 1
    end
    attr_accessor :magic_number
    attr_accessor :party_members
    attr_accessor :elements
    attr_accessor :switches
    attr_accessor :variables
    attr_accessor :windowskin_name
    attr_accessor :title_name
    attr_accessor :gameover_name
    attr_accessor :battle_transition
    attr_accessor :title_bgm
    attr_accessor :battle_bgm
    attr_accessor :battle_end_me
    attr_accessor :gameover_me
    attr_accessor :cursor_se
    attr_accessor :decision_se
    attr_accessor :cancel_se
    attr_accessor :buzzer_se
    attr_accessor :equip_se
    attr_accessor :shop_se
    attr_accessor :save_se
    attr_accessor :load_se
    attr_accessor :battle_start_se
    attr_accessor :escape_se
    attr_accessor :actor_collapse_se
    attr_accessor :enemy_collapse_se
    attr_accessor :words
    attr_accessor :test_battlers
    attr_accessor :test_troop_id
    attr_accessor :start_map_id
    attr_accessor :start_x
    attr_accessor :start_y
    attr_accessor :battleback_name
    attr_accessor :battler_name
    attr_accessor :battler_hue
    attr_accessor :edit_map_id
  end
end
```
