Data class for skills.
The skill ID.
The skill name.
The skill's icon graphic file name.
The skill description.
Scope of the skill's effects (0: none, 1: one enemy, 2: all enemies, 3: one ally, 4: all allies, 5: 1 ally--HP 0, 6: all allies--HP 0, 7: the user).
When the skill may be used (0: always, 1: only in battle, 2: only from the menu, 3: never).
The animation ID when using the skill.
The animation ID when on the receiving end of the skill.
SE played when skill is used on the menu screen (RPG::AudioFile).
The Common Event ID.
Number of SP consumed.
The skill's power.
The skill's attack power F rating.
The skill's evasion F rating.
The skill's strength F rating.
The skill's dexterity F rating.
The skill's agility F rating.
The skill's intelligence F rating.
The skill's hit probability.
The skill's physical defense F rating.
The skill's magic defense F rating.
The skill's degree of variance.
The skill's element. An Elemental ID array.
States to add. A State ID array.
States to cancel. A State ID array.
module RPG class Skill def initialize @id = 0 @name = "" @icon_name = "" @description = "" @scope = 0 @occasion = 1 @animation1_id = 0 @animation2_id = 0 @menu_se = RPG::AudioFile.new("", 80) @common_event_id = 0 @sp_cost = 0 @power = 0 @atk_f = 0 @eva_f = 0 @str_f = 0 @dex_f = 0 @agi_f = 0 @int_f = 100 @hit = 100 @pdef_f = 0 @mdef_f = 100 @variance = 15 @element_set = [] @plus_state_set = [] @minus_state_set = [] end attr_accessor :id attr_accessor :name attr_accessor :icon_name attr_accessor :description attr_accessor :scope attr_accessor :occasion attr_accessor :animation1_id attr_accessor :animation2_id attr_accessor :menu_se attr_accessor :common_event_id attr_accessor :sp_cost attr_accessor :power attr_accessor :atk_f attr_accessor :eva_f attr_accessor :str_f attr_accessor :dex_f attr_accessor :agi_f attr_accessor :int_f attr_accessor :hit attr_accessor :pdef_f attr_accessor :mdef_f attr_accessor :variance attr_accessor :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) |