Data class for state.
State ID.
State name.
The state's icon number.
Sets restrictions (0: none, 1: can't use magic, 2: always attack enemies, 3: always attack allies, 4: can't move, 5: can't move or evade).
State priority (0..10).
Attack percentage.
Defense percentage.
Spirit percentage.
Agility percentage.
Truth value of the [Nonresistance] option.
Truth value of the [Offset By Opp.] option.
Truth value of the [Slip Damage] option.
Truth value of the [Reduce Hit Ratio] option.
Truth value of whether the state wears off at battle end.
Truth value of whether the state wears after receiving damage.
Probability of wearing off is auto_release_prob % after hold_turn turns have passed.
Messages. For an actor, for an enemy, remaining, releasing.
Elements to guard. An Element ID array.
States to cancel. A State ID array.
The text of the note.
module RPG class State def initialize @id = 0 @name = "" @icon_index = 0 @restriction = 0 @priority = 5 @atk_rate = 100 @def_rate = 100 @spi_rate = 100 @agi_rate = 100 @nonresistance = false @offset_by_opposite = false @slip_damage = false @reduce_hit_ratio = false @battle_only = true @release_by_damage = false @hold_turn = 0 @auto_release_prob = 0 @message1 = "" @message2 = "" @message3 = "" @message4 = "" @element_set = [] @state_set = [] @note = "" end attr_accessor :id attr_accessor :name attr_accessor :icon_index attr_accessor :restriction attr_accessor :priority attr_accessor :atk_rate attr_accessor :def_rate attr_accessor :spi_rate attr_accessor :agi_rate attr_accessor :nonresistance attr_accessor :offset_by_opposite attr_accessor :slip_damage attr_accessor :reduce_hit_ratio attr_accessor :battle_only attr_accessor :release_by_damage attr_accessor :hold_turn attr_accessor :auto_release_prob attr_accessor :message1 attr_accessor :message2 attr_accessor :message3 attr_accessor :message4 attr_accessor :element_set attr_accessor :state_set attr_accessor :note end end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |