# RPG::EventCommand

## Superclass

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

## Referrers

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

## 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-eventcommand.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
