> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-eventcommand.md).

# RPG::EventCommand

## Superclass

* [Object](/rgss-reference-manual/standard-library/built-in-classes/object.md)

## Referrers

* [RPG::Event::Page](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-event-page.md)
* [RPG::Troop::Page](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-troop-page.md)
* [RPG::CommonEvent](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-commonevent.md)

## Attributes

### code

The event code.

### indent

The indent depth. Usually 0; the \[Conditional Branch] command, among others, adds 1 with every step deeper.

### parameters

Array containing the Move command arguments. The contents vary for each command.

## Definition

```ruby
module RPG
  class EventCommand
    def initialize(code = 0, indent = 0, parameters = [])
      @code = code
      @indent = indent
      @parameters = parameters
    end
    attr_accessor :code
    attr_accessor :indent
    attr_accessor :parameters
  end
end
```
