9.12 Actor object

Description

You can get/set the properties of an hero with the Actor object. This object requires an index to specify which hero shall be responded. This index is the same as the hero id in the RPG-Maker 2000 database.

List of methods/properties

NameTypeShort description
NamePropertyThe name of the hero
DegreePropertyThe degree of the hero
LevelPropertyThe level of the hero
HPPropertyThe health points of the hero
MPPropertyThe magic points of the hero
AttackDiffPropertyThe difference of the hero's attack points
DefenseDiffPropertyThe difference of the hero's defense points
MindDiffPropertyThe difference of the hero's mind points
AgilityDiffPropertyThe difference of the hero's agility points
MaxHPDiffPropertyThe difference of the hero's maximum health points
MaxMPDiffPropertyThe difference of the hero's maximum magic points
EXPPropertyThe expansion points of the hero

Name

Description

This is the current name of the hero.

Syntax

1
Actor[Index].Name

Data type

String

Type

Property

Example

1
2
$
a[1] = Actor[1].Name
At the end a[1] whould contain the name of the first hero (in this case probably "Alex").

Degree

Description

This is the current degree of the hero.

Syntax

1
Actor[Index].Degree

Data type

String

Type

Property

Example

1
2
$
a[1] = Actor[1].Degree
At the end a[1] whould contain the degree of the first hero (in this case probably "Soldier").

Level

Description

This is the current level of the hero. If you change this property then the expansion points won't be changed automatically, too.

Syntax

1
Actor[Index].Level

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].Level
At the end v[1] whould contain the current level of the first hero (in this case probably 1).

HP

Description

This the current health point value of the hero.

Syntax

1
Actor[Index].HP

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].HP
At the end v[1] whould contain the health points of the first hero (in this case probably 48).

MP

Description

This is the current magic point value of the hero.

Syntax

1
Actor[Index].MP

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].MP
At the end v[1] whould be the current magic points of the first hero (in this case probably 38).

AttackDiff

Description

This is the difference between the current attack points to the normal attack points of the hero's level. (e. g. if the hero whould usually have 10 attack points on the current level, but totally has 12 attack points, then the difference whould be 2)

Syntax

1
Actor[Index].AttackDiff

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].AttackDiff

DefenseDiff

Description

This is the difference between the current defense points to the normal defense points of the hero's level. (For a difference example see AttackDiff)

Syntax

1
Actor[Index].DefenseDiff

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].DefenseDiff

MindDiff

Description

This is the difference between the current mind points to the normal mind points of the hero's level. (For a difference example see AttackDiff)

Syntax

1
Actor[Index].MindDiff

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].MindDiff

AgilityDiff

Description

This is the difference between the current agility points to the normal agility points of the hero's level. (For a difference example see AttackDiff)

Syntax

1
Actor[Index].AgilityDiff

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].AgilityDiff

MaxHPDiff

Description

This is the difference between the current maximum health points to the normal maximum health points of the hero's level. (For a difference example see AttackDiff)

Syntax

1
Actor[Index].MaxHPDiff

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].MaxHPDiff

MaxMPDiff

Description

This is the difference between the current maximum magic points to the normal maximum health points of the hero's level. (For a difference example see AttackDiff)

Syntax

1
Actor[Index].MaxMPDiff

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].MaxMPDiff

EXP

Description

This is the expansion point value of the hero. If you change this value the level of the hero will not be changed automatically, too.

Syntax

1
Actor[Index].EXP

Data type

Dword

Type

Property

Example

1
2
$
v[1] = Actor[1].EXP