Hermit: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
Created page with '{{#vardefine:name|hermit}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Item Management| second_category=Adventuring| function1={{Fu…'
 
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|hermit}}
{{
{{#vardefine:return_type|boolean}}
#vardefine:name|hermit}}{{
#vardefine:return_type|boolean}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Item Management|
function_category=Item Management|

Revision as of 21:13, 8 March 2010

needs(code_samples);

Function Syntax

boolean hermit(int qty ,item get )

  • qty is the quantity to acquire
  • get is the hermit item to trade for

Attempts to acquire qty amount of item get. Will adventure in the sewer, buying chewing gum on a string as needed. Reports success based on whether it acquired as many of item get as possible. If get is not a hermit item, this function will return true. This function will fail to return any value and abort completely if unable to buy the required chewing gum on a string.

CLI Equivalent

The CLI command "hermit" with the parameter "item" works similarly.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific questions have been raised:

  • What does this function return if you attempt to grab more clovers than available (true if it gets as many as possible, or false)?
  • What's the order of operations for chewing gum check vs. able to adventure check?
  • What does out of adventures return?