RPG::Enemy::Action

The data class for enemy [Actions].

Superclass

Referrer

Attributes

skill_id

The ID of skills to be employed as actions.

condition_type

The type of condition.

condition_param1
condition_param2

An action condition parameter. Shared by all types.

For example, if the condition is [HP], then condition_param1 will be the minimum value and condition_param2 will be the maximum value.

rating

The action's priority rating (1..10).

Definition

class RPG::Enemy::Action
  def initialize
    @skill_id = 1
    @condition_type = 0
    @condition_param1 = 0
    @condition_param2 = 0
    @rating = 5
  end
  attr_accessor :skill_id
  attr_accessor :condition_type
  attr_accessor :condition_param1
  attr_accessor :condition_param2
  attr_accessor :rating
end