Difference between revisions of "Creatable amount"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(added code sample)
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Item Management|
 
  
 
function1={{Function|
 
function1={{Function|
Line 31: Line 30:
 
cli_equiv=The CLI command "create" offers similar information, but on all possibilities at once, when supplied no parameters.|
 
cli_equiv=The CLI command "create" offers similar information, but on all possibilities at once, when supplied no parameters.|
 
}}
 
}}
 +
 +
[[Category:Item Management]]

Revision as of 21:47, 21 May 2010

Function Syntax

int creatable_amount(item check )

  • check is the item to inquire about

Returns the total number of check that you can currently create within the limits of your current inventory, skills, etc.

Code Sample

Enumerates total number of scrolls of ancient forbidden unspeakable evil.

item afue = $item[scroll of ancient forbidden unspeakable evil];
print("Total possible AFUE scrolls is: "+ to_string(available_amount(afue) + creatable_amount(afue)));

CLI Equivalent

The CLI command "create" offers similar information, but on all possibilities at once, when supplied no parameters.

See Also

create()