RPG::System

Data class for the system.

Superclass

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).

battle_bgm

The battle BGM (RPG::AudioFile).

battle_end_me

The battle end ME (RPG::AudioFile).

gameover_me

The gameover ME (RPG::AudioFile).

cursor_se

The cursor SE RPG::AudioFile).

decision_se

The decision SE (RPG::AudioFile).

cancel_se

The cancel SE (RPG::AudioFile).

buzzer_se

The buzzer SE (RPG::AudioFile).

equip_se

The equip SE (RPG::AudioFile).

shop_se

The shop SE (RPG::AudioFile).

save_se

The save SE (RPG::AudioFile).

load_se

The load SE (RPG::AudioFile).

battle_start_se

The battle start SE (RPG::AudioFile).

escape_se

The escape SE (RPG::AudioFile).

actor_collapse_se

The actor collapse SE (RPG::AudioFile).

enemy_collapse_se

The enemy collapse SE (RPG::AudioFile).

words

Terms (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 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

Definition

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
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)