RPG::Actor

The data class for actors.

Superclass

Attributes

nickname

The actor's nickname.

class_id

The actor's class ID.

initial_level

The actor's initial level.

max_level

The actor's max level

character_name

The file name of the actor's walking graphic.

character_index

The index (0..7) of the actor's walking graphic.

face_name

The file name of the actor's face graphic.

face_index

The index (0..7) of the actor's face graphic.

equips

The actor's initial equipment. An array of weapon IDs or armor IDs with the following subscripts:

Definition

class RPG::Actor < RPG::BaseItem
  def initialize
    super
    @nickname = ''
    @class_id = 1
    @initial_level = 1
    @max_level = 99
    @character_name = ''
    @character_index = 0
    @face_name = ''
    @face_index = 0
    @equips = [0,0,0,0,0]
  end
  attr_accessor :nickname
  attr_accessor :class_id
  attr_accessor :initial_level
  attr_accessor :max_level
  attr_accessor :character_name
  attr_accessor :character_index
  attr_accessor :face_name
  attr_accessor :face_index
  attr_accessor :equips
end