Difference between revisions of "+functions/stats"
From Masq
Ihavenomouth (Talk | contribs) (Created page with ''''statmatch(<stat>)'''<br> '''statn(<text>)'''<br> '''[p]stat(<player>,<stat>)''' '''statmatch()''' returns the attribute name where a stat may be located. '''statn()''' ret…') |
Ihavenomouth (Talk | contribs) m |
||
| Line 38: | Line 38: | ||
You say "5"</tt> | You say "5"</tt> | ||
| + | [[Category:Help]] | ||
| + | [[Category:+help]] | ||
Latest revision as of 17:30, 4 January 2011
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"