My buffedstat: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang Conform to template |
imported>Grotfang No edit summary |
||
Line 12: | Line 12: | ||
return_also={{#var:return_also}}| | return_also={{#var:return_also}}| | ||
parameter1={{Param|stat|st}}| | parameter1={{Param|stat|st}}| | ||
p1desc= | p1desc={{pspan|st}} is the stat you wish to return the buffed value of in the form of $stat[stat]. | ||
}}| | }}| | ||
Revision as of 14:03, 1 March 2010
Function Syntax
- st is the stat you wish to return the buffed value of in the form of $stat[stat].
Returns your current buffed value in the specified stat as an int. Passing $stat[submuscle], $stat[submysticality], or $stat[submoxie] to this function will always return 0.
Code Samples
This example prints your current buffed stats.
print("My buffed muscle: " + my_buffedstat($stat[muscle]));
print("My buffed mysticality: " + my_buffedstat($stat[mysticality]));
print("My buffed moxie: " + my_buffedstat($stat[moxie]));
See Also
Special
When not logged in, this function returns 0 regardless of parameter.