Skip to content

GetActorStat

The level SetActorStat gave one of an actor’s stats.

GetActorStat(id, stat)
Parameter Type
id number the actor or animal
stat string the stat’s name

number | nil - the level; nil when the mode never set it (the body’s own soul decides)

if (GetActorStat(id, "strength") or 0) < 10 then SetActorStat(id, "strength", 10) end

SetActorStat · the NPC actors group of the index