> 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-commonevent.md).

# RPG::CommonEvent

Data class for common events.

## Superclass

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

## Attributes

### id

The event ID.

### name

The event name.

### trigger

The event trigger (0: none, 1: autorun; 2: parallel).

### switch\_id

The condition switch ID.

### list

List of event commands. An [RPG::EventCommand](/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-eventcommand.md) array.

## Definition

```ruby
module RPG
  class CommonEvent
    def initialize
      @id = 0
      @name = ""
      @trigger = 0
      @switch_id = 1
      @list = [RPG::EventCommand.new]
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :trigger
    attr_accessor :switch_id
    attr_accessor :list
  end
end
```
