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

# RPG::Actor

## Superclass

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

## Attributes

### id

The actor ID.

### name

The actor name.

### class\_id

The actor class ID.

### initial\_level

The actor's initial level.

### final\_level

The actor's final level.

### exp\_basis

The value on which the experience curve is based (10..50).

### exp\_inflation

The amount of experience curve inflation (10..50).

### character\_name

The actor's character graphic file name.

### character\_hue

The adjustment value for the character graphic's hue (0..360).

### battler\_name

The actor's battler graphic file name.

### battler\_hue

The adjustment value for the battler graphic's hue (0..360).

### parameters

2-dimensional array containing base parameters for each level ([Table](/rgss-reference-manual/game-library/rgss-built-in-classes/table.md)).

Generally takes the form parameters\[kind, level].

kind indicates the parameter type (0: max HP, 1: max SP, 2: strength, 3: dexterity, 4: agility, 5: intelligence).

### weapon\_id

ID of the actor's initially equipped weapon.

### armor1\_id

ID of the actor's initially equipped shield.

### armor2\_id

ID of the actor's initially equipped helmet.

### armor3\_id

ID of the actor's initially equipped body armor.

### armor4\_id

ID of the actor's initially equipped accessory.

### weapon\_fix

Flag making the actor's weapon unremovable.

### armor1\_fix

Flag making the actor's shield unremovable.

### armor2\_fix

Flag making the actor's helmet unremovable.

### armor3\_fix

Flag making the actor's body armor unremovable.

### armor4\_fix

Flag making the actor's accessory unremovable.

## Definition

```ruby
module RPG
  class Actor
    def initialize
      @id = 0
      @name = ""
      @class_id = 1
      @initial_level = 1
      @final_level = 99
      @exp_basis = 30
      @exp_inflation = 30
      @character_name = ""
      @character_hue = 0
      @battler_name = ""
      @battler_hue = 0
      @parameters = Table.new(6,100)
      for i in 1..99
        @parameters[0,i] = 500+i*50
        @parameters[1,i] = 500+i*50
        @parameters[2,i] = 50+i*5
        @parameters[3,i] = 50+i*5
        @parameters[4,i] = 50+i*5
        @parameters[5,i] = 50+i*5
      end
      @weapon_id = 0
      @armor1_id = 0
      @armor2_id = 0
      @armor3_id = 0
      @armor4_id = 0
      @weapon_fix = false
      @armor1_fix = false
      @armor2_fix = false
      @armor3_fix = false
      @armor4_fix = false
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :class_id
    attr_accessor :initial_level
    attr_accessor :final_level
    attr_accessor :exp_basis
    attr_accessor :exp_inflation
    attr_accessor :character_name
    attr_accessor :character_hue
    attr_accessor :battler_name
    attr_accessor :battler_hue
    attr_accessor :parameters
    attr_accessor :weapon_id
    attr_accessor :armor1_id
    attr_accessor :armor2_id
    attr_accessor :armor3_id
    attr_accessor :armor4_id
    attr_accessor :weapon_fix
    attr_accessor :armor1_fix
    attr_accessor :armor2_fix
    attr_accessor :armor3_fix
    attr_accessor :armor4_fix
  end
end
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-actor.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.
