# RPG::Event::Page

## Superclass

* [Object](https://enls.gitbook.io/rgss-reference-manual/standard-library/built-in-classes/object)

## Referrer

* [RPG::Event](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-event)

## Attributes

### condition

The event condition ([RPG::Event::Page::Condition](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-event-page-condition)).

### graphic

The event graphic ([RPG::Event::Page::Graphic](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-event-page-graphic)).

### move\_type

Type of movement (0: fixed, 1: random, 2: approach, 3: custom).

### move\_speed

Movement speed (1: slowest, 2: slower, 3: slow, 4: fast, 5: faster, 6: fastest).

### move\_frequency

Movement frequency (1: lowest, 2: lower, 3: low ,4: high, 5: higher, 6: highest).

### move\_route

Movement route ([RPG::MoveRoute](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-moveroute)). Referenced only when the movement type is set to Custom.

### walk\_anime

Truth value of the \[Moving Animation] option.

### step\_anime

Truth value of the \[Stopped Animation] option.

### direction\_fix

Truth value of the \[Fixed Direction] option.

### through

Truth value of the \[Move Through] option.

### always\_on\_top

Truth value of the \[Always On Top] option.

### trigger

Event trigger (0: action button, 1: contact with player, 2: contact with event, 3: autorun, 4: parallel processing).

### list

Program contents. An [RPG::EventCommand](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-eventcommand) array.

## Inner Classes

* [RPG::Event::Page::Condition](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-event-page-condition)
* [RPG::Event::Page::Graphic](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-event-page-graphic)

## Definition

```ruby
module RPG
  class Event
    class Page
      def initialize
        @condition = RPG::Event::Page::Condition.new
        @graphic = RPG::Event::Page::Graphic.new
        @move_type = 0
        @move_speed = 3
        @move_frequency = 3
        @move_route = RPG::MoveRoute.new
        @walk_anime = true
        @step_anime = false
        @direction_fix = false
        @through = false
        @always_on_top = false
        @trigger = 0
        @list = [RPG::EventCommand.new]
      end
      attr_accessor :condition
      attr_accessor :graphic
      attr_accessor :move_type
      attr_accessor :move_speed
      attr_accessor :move_frequency
      attr_accessor :move_route
      attr_accessor :walk_anime
      attr_accessor :step_anime
      attr_accessor :direction_fix
      attr_accessor :through
      attr_accessor :always_on_top
      attr_accessor :trigger
      attr_accessor :list
    end
  end
end
```
