+functions/stats

From Masq

statmatch(<stat>)
statn(<text>)
[p]stat(<player>,<stat>)


statmatch() returns the attribute name where a stat may be located.


statn() returns the name of a stat from a substring, picking the first available stat that matches the substring - multiple matches are not returned.


[p]stat() returns the value of a player's [permanent] stat.


For example,

> say statn(dri)

You say "Drive"


> say statmatch(Drive)

You say "Skills"


> say stat(#13,Drive)

You say "4"


> ex #13/SKILLS

SKILLS: Drive=4:5 Melee=2:2 <etc>


> say pstat(#13,Drive)

You say "5"