GetActorStat
The level SetActorStat gave one of an actor’s stats.
Syntax
Section titled “Syntax”GetActorStat(id, stat)| Parameter | Type | |
|---|---|---|
id |
number | the actor or animal |
stat |
string | the stat’s name |
Returns
Section titled “Returns”number | nil - the level; nil when the mode never set it (the body’s own soul decides)
Example
Section titled “Example”if (GetActorStat(id, "strength") or 0) < 10 then SetActorStat(id, "strength", 10) endSee also
Section titled “See also”SetActorStat · the NPC actors group of the index
