RPG::Actor

Data class for actors.

Superclass

Attributes

id

The actor ID.

name

The actor name.

class_id

The actor class ID.

initial_level

The actor's initial level.

exp_basis

The value on which the experience curve is based (10..40).

exp_inflation

The amount of experience curve inflation (20..50).

character_name

The actor's character graphic file name.

character_index

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

face_name

The actor's face graphic file name.

face_index

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

parameters

2-dimensional array containing base parameters for each level (Table).

Generally takes the form parameters[kind, level].

kind indicates the parameter type (0: MaxHP, 1: MaxMP, 2: Attack, 3: Defense, 4: Spirit, 5: Agility).

weapon_id

ID of the actor's initially equipped weapon.

armor1_id

ID of the actor's initially equipped shield.

armor2_id

ID of the actor's initially equipped helmet.

armor3_id

ID of the actor's initially equipped body armor.

armor4_id

ID of the actor's initially equipped accessory.

two_swords_style

Truth value of the [Two Swords Style] option.

fix_equipment

Truth value of the [Fix Equipment] option.

auto_battle

Truth value of the [Auto Battle] option.

super_guard

Truth value of the [Super Guard] option.

pharmacology

Truth value of the [Pharmacology] option.

critical_bonus

Truth value of the [Critical Bonus] option.

Definition

module RPG
  class Actor
    def initialize
      @id = 0
      @name = ""
      @class_id = 1
      @initial_level = 1
      @exp_basis = 25
      @exp_inflation = 35
      @character_name = ""
      @character_index = 0
      @face_name = ""
      @face_index = 0
      @parameters = Table.new(6,100)
      for i in 1..99
        @parameters[0,i] = 400+i*50
        @parameters[1,i] = 80+i*10
        @parameters[2,i] = 15+i*5/4
        @parameters[3,i] = 15+i*5/4
        @parameters[4,i] = 20+i*5/2
        @parameters[5,i] = 20+i*5/2
      end
      @weapon_id = 0
      @armor1_id = 0
      @armor2_id = 0
      @armor3_id = 0
      @armor4_id = 0
      @two_swords_style = false
      @fix_equipment = false
      @auto_battle = false
      @super_guard = false
      @pharmacology = false
      @critical_bonus = false
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :class_id
    attr_accessor :initial_level
    attr_accessor :exp_basis
    attr_accessor :exp_inflation
    attr_accessor :character_name
    attr_accessor :character_index
    attr_accessor :face_name
    attr_accessor :face_index
    attr_accessor :parameters
    attr_accessor :weapon_id
    attr_accessor :armor1_id
    attr_accessor :armor2_id
    attr_accessor :armor3_id
    attr_accessor :armor4_id
    attr_accessor :two_swords_style
    attr_accessor :fix_equipment
    attr_accessor :auto_battle
    attr_accessor :super_guard
    attr_accessor :pharmacology
    attr_accessor :critical_bonus
  end
end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)