Data class for actors.
The actor ID.
The actor name.
The actor class ID.
The actor's initial level.
The value on which the experience curve is based (10..40).
The amount of experience curve inflation (20..50).
The actor's character graphic file name.
The actor's character index of the graphic file (0..7).
The actor's face graphic file name.
The actor's face index of the graphic file (0..7).
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).
ID of the actor's initially equipped weapon.
ID of the actor's initially equipped shield.
ID of the actor's initially equipped helmet.
ID of the actor's initially equipped body armor.
ID of the actor's initially equipped accessory.
Truth value of the [Two Swords Style] option.
Truth value of the [Fix Equipment] option.
Truth value of the [Auto Battle] option.
Truth value of the [Super Guard] option.
Truth value of the [Pharmacology] option.
Truth value of the [Critical Bonus] option.
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) |