Difference between revisions of "My buffedstat"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Bale
m
 
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Your Character|
 
  
 
function1={{Function|
 
function1={{Function|
Line 32: Line 31:
 
special=When not logged in, this function returns 0 regardless of parameter.
 
special=When not logged in, this function returns 0 regardless of parameter.
 
}}
 
}}
 +
 +
[[Category:Your Character]]

Latest revision as of 21:34, 21 May 2010

Function Syntax

int my_buffedstat(stat st )

  • 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

my_basestat()

Special

When not logged in, this function returns 0 regardless of parameter.