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
Name | Type | Short description |
Name | Property | The name of the hero |
Degree | Property | The degree of the hero |
Level | Property | The level of the hero |
HP | Property | The health points of the hero |
MP | Property | The magic points of the hero |
AttackDiff | Property | The difference of the hero's attack points |
DefenseDiff | Property | The difference of the hero's defense points |
MindDiff | Property | The difference of the hero's mind points |
AgilityDiff | Property | The difference of the hero's agility points |
MaxHPDiff | Property | The difference of the hero's maximum health points |
MaxMPDiff | Property | The difference of the hero's maximum magic points |
EXP | Property | The expansion points of the hero |
Description
This is the current name of the hero.
Syntax
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").
Description
This is the current degree of the hero.
Syntax
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").
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
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).
Description
This the current health point value of the hero.
Syntax
Data type
Dword
Type
Property
Example
At the end v[1] whould contain the health points of the first hero (in this case probably 48).
Description
This is the current magic point value of the hero.
Syntax
Data type
Dword
Type
Property
Example
At the end v[1] whould be the current magic points of the first hero (in this case probably 38).
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
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
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
Data type
Dword
Type
Property
Example
1
2
$
v[1] = Actor[1].MindDiff
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
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
Data type
Dword
Type
Property
Example
1
2
$
v[1] = Actor[1].MaxHPDiff
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
Data type
Dword
Type
Property
Example
1
2
$
v[1] = Actor[1].MaxMPDiff
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
Data type
Dword
Type
Property
Example