Creatable amount: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Bale
added code sample
Line 18: Line 18:
function_description=Returns the total number of {{pspan|check}} that you can currently create within the limits of your current inventory, skills, etc.|
function_description=Returns the total number of {{pspan|check}} that you can currently create within the limits of your current inventory, skills, etc.|


needscode=yes|
code1={{CodeSample|
title=Code Sample|
description=Enumerates total number of scrolls of ancient forbidden unspeakable evil.|
code=
<syntaxhighlight>
item afue = $item[scroll of ancient forbidden unspeakable evil];
print("Total possible AFUE scrolls is: "+ to_string(available_amount(afue) + creatable_amount(afue)));
</syntaxhighlight>
}}|


see_also={{SeeAlso|create}}|
see_also={{SeeAlso|create}}|
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.|
}}
}}

Revision as of 09:35, 10 March 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()