Create: Difference between revisions

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


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

Revision as of 21:14, 8 March 2010

needs(code_samples);

Function Syntax

boolean create(int qty ,item make )

  • qty is the quantity to create
  • make is the item to create

Attempts to create qty of make, following your KoLmafia settings regarding purchases to gather ingredients & require boxen. Returns true if all items are successfully created, and false otherwise.

CLI Equivalent

The CLI command "create" works similarly when supplied with an item as a parameter.

See Also

retrieve_item()


Attention KoLmafia Experts!

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

The following specific question has been raised:

  • Is the return value given correct? Any exceptions?