📜
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
  • id
  • name
  • tileset_name
  • autotile_names
  • panorama_name
  • panorama_hue
  • fog_name
  • fog_hue
  • fog_opacity
  • fog_blend_type
  • fog_zoom
  • fog_sx
  • fog_sy
  • battleback_name
  • passages
  • priorities
  • terrain_tags
  • Definition
  1. Game Library
  2. RPGXP Data Structures

RPG::Tileset

Data class for tilesets.

PreviousRPG::Animation::TimingNextRPG::CommonEvent

Last updated 1 year ago

Superclass

Attributes

id

The tileset ID.

name

The tileset name.

tileset_name

The tileset's graphic file name.

autotile_names

The autotile graphic's file name array ([0]..[6]).

panorama_name

The panorama graphic file name.

panorama_hue

The adjustment value for the panorama graphic's hue (0..360).

fog_name

The fog graphic's file name.

fog_hue

The adjustment value for the fog graphic's hue (0..360).

fog_opacity

The fog's opacity.

fog_blend_type

The fog's blending mode.

fog_zoom

The fog's zoom level.

fog_sx

The fog's SX (automatic X-axis scrolling speed).

fog_sy

The fog's SY (automatic Y-axis scrolling speed).

battleback_name

The battle background's graphic file name.

passages

The tile ID is used as a subscript. Each bit is handled as follows:

  • 0x01: Cannot move down.

  • 0x02: Cannot move left.

  • 0x04: Cannot move right.

  • 0x08: Cannot move up.

  • 0x40: Bush flag.

  • 0x80: Counter flag.

priorities

The tile ID is used as a subscript.

terrain_tags

The tile ID is used as a subscript.

Definition

module RPG
  class Tileset
    def initialize
      @id = 0
      @name = ""
      @tileset_name = ""
      @autotile_names = [""]*7
      @panorama_name = ""
      @panorama_hue = 0
      @fog_name = ""
      @fog_hue = 0
      @fog_opacity = 64
      @fog_blend_type = 0
      @fog_zoom = 200
      @fog_sx = 0
      @fog_sy = 0
      @battleback_name = ""
      @passages = Table.new(384)
      @priorities = Table.new(384)
      @priorities[0] = 5
      @terrain_tags = Table.new(384)
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :tileset_name
    attr_accessor :autotile_names
    attr_accessor :panorama_name
    attr_accessor :panorama_hue
    attr_accessor :fog_name
    attr_accessor :fog_hue
    attr_accessor :fog_opacity
    attr_accessor :fog_blend_type
    attr_accessor :fog_zoom
    attr_accessor :fog_sx
    attr_accessor :fog_sy
    attr_accessor :battleback_name
    attr_accessor :passages
    attr_accessor :priorities
    attr_accessor :terrain_tags
  end
end

Passage table. A 1-dimensional array () containing passage flags, Bush flags, and counter flags.

Priority table. A 1-dimensional array () containing priority data.

Terrain tag table A 1-dimensional array () containing terrain tag data.

Object
Table
Table
Table