My primestat: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
No edit summary
imported>Zarqon
more links, consistent formatting, logged-out info
Line 1: Line 1:
'''stat my_primestat()'''<br/>
[[stat]] [[my_primestat()]]
Returns the stat associated with your class.
 
Returns the [[stat]] associated with your class.
 
The following example attempts to create as many scrumpdiddlyumptious solutions as you have scrumptious reagents if you are a mysticality class.
 
<code>
  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:Your Character | My primestat()]]
[[Category:Ash Functions |My primestat()]]
[[Category:Ash Functions |My primestat()]]
<pre>#If primestat returns mysticality, script will retrieve X amount of delectable catalyst
#(X = amount of scrumptious reagents in inventory). Then it will use all of the delectable catalyst in your inventory.
#Designed to create scrumpdiddlyumptious solutions equal to the amount of scrumptious reagents in your inventory.


if(my_primestat() == $stat[mysticality]){
When not logged in, this function returns $stat[moxie].
retrieve_item(item_amount($item[scrumptious reagent]), $item[delectable catalyst]);
use(item_amount($item[delectable catalyst]), $item[delectable catalyst]);
}
</pre>

Revision as of 07:35, 29 January 2009

stat my_primestat()

Returns the stat associated with your class.

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]);
 }

When not logged in, this function returns $stat[moxie].