My primestat: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
No edit summary
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|my_primestat}}
{{
{{#vardefine:return_type|stat}}
#vardefine:name|my_primestat}}{{
#vardefine:return_type|stat}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|
function_category=Your Character|

Revision as of 14:48, 8 March 2010

Function Syntax

stat my_primestat()

Returns the stat associated with your class.

Code Samples

The following example attempts to create as many scrumpdiddlyumptious solutions as you have scrumptious reagents if you are a mysticality class.

if(my_primestat() == $stat[mysticality]) {
   retrieve_item(item_amount($item[scrumptious reagent]) , $item[delectable catalyst]);
   use(item_amount($item[delectable catalyst]) , $item[delectable catalyst]);
}

See Also

retrieve_item() | item_amount() | use()

Special

When not logged in, this function returns $stat[moxie] (Needs spading).