Difference between revisions of "My primestat"

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
imported>Grotfang
Line 1: Line 1:
[[stat]] [[my_primestat()]]
+
{{#vardefine:name|my_primestat}}
 +
{{#vardefine:return_type|stat}}
  
Returns the [[stat]] associated with your class.
+
{{FunctionPage|
 +
name={{#var:name}}|
 +
function_category=Your Character|
  
The following example attempts to create as many scrumpdiddlyumptious solutions as you have scrumptious reagents if you are a mysticality class.
+
function1={{Function|
 +
name={{#var:name}}|
 +
aggregate={{#var:aggregate}}|
 +
return_type={{#var:return_type}}|
 +
return_also={{#var:return_also}}
 +
}}|
  
<code>
+
function_description=Returns the stat associated with your class.|
  if ([[my_primestat()]] == $[[stat]][mysticality]){
 
    [[retrieve_item()|retrieve_item]]([[item_amount()|item_amount]]($[[item]][scrumptious reagent]), $[[item]][delectable catalyst]);
 
    [[use()|use]]([[item_amount()|item_amount]]($[[item]][delectable catalyst]), $[[item]][delectable catalyst]);
 
  }
 
</code>
 
[[Category:Your Character | My primestat()]]
 
[[Category:Ash Functions |My primestat()]]
 
  
When not logged in, this function returns $stat[moxie].
+
code1={{CodeSample|
 +
title=Code Samples|
 +
description=The following example attempts to create as many scrumpdiddlyumptious solutions as you have scrumptious reagents if you are a mysticality class.|
 +
code=
 +
<syntaxhighlight>
 +
if(my_primestat() == $stat[mysticality]) {
 +
  retrieve_item(item_amount($item[scrumptious reagent]) , $item[delectable catalyst]);
 +
  use(item_amount($item[delectable catalyst]) , $item[delectable catalyst]);
 +
}
 +
</syntaxhighlight>
 +
}}|
 +
 
 +
see_also={{SeeAlso|retrieve_item|item_amount|use}}|
 +
special=When not logged in, this function returns $stat[moxie] (Needs spading).
 +
}}

Revision as of 13:57, 1 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).