📜
RGSS Reference Manual
  • RGSS Reference Manual
  • RGSS Specifications
  • Ruby Syntax
    • Syntax and Expressions
    • Variables and Constants
    • Literals
    • Operator Expressions
    • Control Structures
    • Method Calls
    • Class and Method Definitions
  • Standard Library
    • Built-in Functions
    • Built-in Variables
    • Built-in Classes
      • Object
        • Array
        • Exception
        • FalseClass
        • Hash
        • IO
          • File
        • MatchData
        • Module
          • Class
        • NilClass
        • Numeric
          • Integer
            • Bignum
            • Fixnum
          • Float
        • Range
        • Proc
        • Regexp
        • String
        • Symbol
        • Time
        • TrueClass
    • Built-in Modules
      • Comparable
      • Enumerable
      • Errno
      • FileTest
      • GC
      • Kernel
      • Marshal
      • Math
    • Built-in Exception Classes
  • Game Library
    • RGSS Built-in Functions
    • RGSS Built-in Classes
      • Bitmap
      • Color
      • Font
      • Plane
      • Rect
      • Sprite
      • Table
      • Tilemap
      • Tone
      • Viewport
      • Window
      • RGSSError
      • RPG::Sprite
      • RPG::Weather
    • RGSS Built-in Modules
      • Audio
      • Graphics
      • Input
      • RPG
      • RPG::Cache
    • RPGXP Data Structures
      • RPG::Map
      • RPG::MapInfo
      • RPG::Event
      • RPG::Event::Page
      • RPG::Event::Page::Condition
      • RPG::Event::Page::Graphic
      • RPG::EventCommand
      • RPG::MoveRoute
      • RPG::MoveCommand
      • RPG::Actor
      • RPG::Class
      • RPG::Class::Learning
      • RPG::Skill
      • RPG::Item
      • RPG::Weapon
      • RPG::Armor
      • RPG::Enemy
      • RPG::Enemy::Action
      • RPG::Troop
      • RPG::Troop::Member
      • RPG::Troop::Page
      • RPG::Troop::Page::Condition
      • RPG::State
      • RPG::Animation
      • RPG::Animation::Frame
      • RPG::Animation::Timing
      • RPG::Tileset
      • RPG::CommonEvent
      • RPG::System
      • RPG::System::Words
      • RPG::System::TestBattler
      • RPG::AudioFile
  • Appendix
    • Regular Expression
    • sprintf Format
Powered by GitBook
On this page
  • Superclass
  • Attributes
  • magic_number
  • party_members
  • elements
  • switches
  • variables
  • windowskin_name
  • title_name
  • gameover_name
  • battle_transition
  • title_bgm
  • battle_bgm
  • battle_end_me
  • gameover_me
  • cursor_se
  • decision_se
  • cancel_se
  • buzzer_se
  • equip_se
  • shop_se
  • save_se
  • load_se
  • battle_start_se
  • escape_se
  • actor_collapse_se
  • enemy_collapse_se
  • words
  • start_map_id
  • start_x
  • start_y
  • test_battlers
  • test_troop_id
  • battleback_name
  • battler_name
  • battler_hue
  • edit_map_id
  • Inner Classes
  • Definition
  1. Game Library
  2. RPGXP Data Structures

RPG::System

Data class for the system.

PreviousRPG::CommonEventNextRPG::System::Words

Last updated 2 years ago

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

battle_bgm

battle_end_me

gameover_me

cursor_se

decision_se

cancel_se

buzzer_se

equip_se

shop_se

save_se

load_se

battle_start_se

escape_se

actor_collapse_se

enemy_collapse_se

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

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

The title BGM ().

The battle BGM ().

The battle end ME ().

The gameover ME ().

The cursor SE ).

The decision SE ().

The cancel SE ().

The buzzer SE ().

The equip SE ().

The shop SE ().

The save SE ().

The load SE ().

The battle start SE ().

The escape SE ().

The actor collapse SE ().

The enemy collapse SE ().

Terms ().

Party settings for battle tests. An array.

Object
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::AudioFile
RPG::System::Words
RPG::System::TestBattler
RPG::System::Words
RPG::System::TestBattler