GetPlayerStat
The level of record of a core stat.
Syntax
Section titled “Syntax”GetPlayerStat(pid, stat)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
stat |
string | the stat’s name |
Returns
Section titled “Returns”number - the level the server set; 0 = never set (the character’s own level is not read back)
Example
Section titled “Example”if GetPlayerStat(pid, "strength") < 13 then SetPlayerStat(pid, "strength", 13) endSee also
Section titled “See also”SetPlayerStat · GetPlayerSkill · the Vitals, stats and skills group of the index
