RPG::Event::Page::Condition

The data class for the event page conditions.

Superclass

Referrer

Attributes

switch1_valid

The truth value indicating whether the first [Switch] condition is valid.

switch2_valid

The truth value indicating whether the second [Switch] condition is valid.

variable_valid

The truth value indicating whether the [Variable] condition is valid.

self_switch_valid

The truth value indicating whether the [Self Switch] condition is valid.

item_valid

The truth value indicating whether the [Item] condition is valid.

actor_valid

The truth value indicating whether the [Actor] condition is valid.

switch1_id

The ID of that switch if the first [Switch] condition is valid.

switch2_id

The ID of that switch if the second [Switch] condition is valid.

variable_id

The ID of that variable if the [Variable] condition is valid.

variable_value

The standard value of that variable (x and greater) if the [Variable] condition is valid.

self_switch_ch

The letter of that self switch ("A".."D") if the [Self Switch] condition is valid.

item_id

The ID of that item if the [Item] condition is valid.

actor_id

The ID of that actor if the [Actor] condition is valid.

Definition

class RPG::Event::Page::Condition
  def initialize
    @switch1_valid = false
    @switch2_valid = false
    @variable_valid = false
    @self_switch_valid = false
    @item_valid = false
    @actor_valid = false
    @switch1_id = 1
    @switch2_id = 1
    @variable_id = 1
    @variable_value = 0
    @self_switch_ch = 'A'
    @item_id = 1
    @actor_id = 1
  end
  attr_accessor :switch1_valid
  attr_accessor :switch2_valid
  attr_accessor :variable_valid
  attr_accessor :self_switch_valid
  attr_accessor :item_valid
  attr_accessor :actor_valid
  attr_accessor :switch1_id
  attr_accessor :switch2_id
  attr_accessor :variable_id
  attr_accessor :variable_value
  attr_accessor :self_switch_ch
  attr_accessor :item_id
  attr_accessor :actor_id
end