Superclass
Attributes
id
State ID.
name
State name.
animation_id
The state's animation ID.
restriction
Sets restrictions (0: none, 1: can't use magic, 2: always attack enemies, 3: always attack allies, 4: can't move).
nonresistance
Truth value of the [Nonresistance] option.
zero_hp
Truth value of the [Regard as HP 0] option.
cant_get_exp
Truth value of the [Can't Get EXP] option.
cant_evade
Truth value of the [Can't Evade] option.
slip_damage
Truth value of the [Slip Damage] option.
rating
State rating (0..10).
hit_rate
Hit percentage.
maxhp_rate
Maximum HP percentage.
maxsp_rate
Maximum SP percentage.
str_rate
Strength percentage.
dex_rate
Dexterity percentage.
agi_rate
Agility percentage.
int_rate
Intelligence percentage.
atk_rate
Attack percentage.
pdef_rate
Physical defense percentage.
mdef_rate
Magic defense percentage.
eva
Evasion correction.
battle_only
Truth value of whether the state wears off at battle end.
hold_turnauto_release_prob
Percent probability of wearing off after the number of turns in hold_turn have passed.
shock_release_prob
Percent probability of wearing off after receiving physical damage.
guard_element_set
Elemental defense. An Elemental ID array.
plus_state_set
States to add. A State ID array.
minus_state_set
States to cancel. A State ID array.
Definition
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