Data class for state.
State ID.
State name.
The state's animation ID.
Sets restrictions (0: none, 1: can't use magic, 2: always attack enemies, 3: always attack allies, 4: can't move).
Truth value of the [Nonresistance] option.
Truth value of the [Regard as HP 0] option.
Truth value of the [Can't Get EXP] option.
Truth value of the [Can't Evade] option.
Truth value of the [Slip Damage] option.
State rating (0..10).
Hit percentage.
Maximum HP percentage.
Maximum SP percentage.
Strength percentage.
Dexterity percentage.
Agility percentage.
Intelligence percentage.
Attack percentage.
Physical defense percentage.
Magic defense percentage.
Evasion correction.
Truth value of whether the state wears off at battle end.
Percent probability of wearing off after the number of turns in hold_turn have passed.
Percent probability of wearing off after receiving physical damage.
Elemental defense. An Elemental ID array.
States to add. A State ID array.
States to cancel. A State ID array.
module RPG class State def initialize @id = 0 @name = "" @animation_id = 0 @restriction = 0 @nonresistance = false @zero_hp = false @cant_get_exp = false @cant_evade = false @slip_damage = false @rating = 5 @hit_rate = 100 @maxhp_rate = 100 @maxsp_rate = 100 @str_rate = 100 @dex_rate = 100 @agi_rate = 100 @int_rate = 100 @atk_rate = 100 @pdef_rate = 100 @mdef_rate = 100 @eva = 0 @battle_only = true @hold_turn = 0 @auto_release_prob = 0 @shock_release_prob = 0 @guard_element_set = [] @plus_state_set = [] @minus_state_set = [] end attr_accessor :id attr_accessor :name attr_accessor :animation_id attr_accessor :restriction attr_accessor :nonresistance attr_accessor :zero_hp attr_accessor :cant_get_exp attr_accessor :cant_evade attr_accessor :slip_damage attr_accessor :rating attr_accessor :hit_rate attr_accessor :maxhp_rate attr_accessor :maxsp_rate attr_accessor :str_rate attr_accessor :dex_rate attr_accessor :agi_rate attr_accessor :int_rate attr_accessor :atk_rate attr_accessor :pdef_rate attr_accessor :mdef_rate attr_accessor :eva attr_accessor :battle_only attr_accessor :hold_turn attr_accessor :auto_release_prob attr_accessor :shock_release_prob attr_accessor :guard_element_set attr_accessor :plus_state_set attr_accessor :minus_state_set end end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |