Creatable amount: Difference between revisions
Jump to navigation
Jump to search
imported>MapleMario New page: '''int creatable_amount( item it )''' <br />Returns the amount of the item that you are capable of creating with your current inventory and skills. <p>Example: <br /><pre># end-of-ascens... |
imported>Bale Just to make this explicit since I suddenly care. |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | |||
#vardefine:name|creatable_amount}}{{ | |||
#vardefine:return_type|int}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | |||
function1={{Function| | |||
name={{#var:name}}| | |||
aggregate={{#var:aggregate}}| | |||
return_type={{#var:return_type}}| | |||
return_also={{#var:return_also}}| | |||
parameter1={{Param|item|check}}| | |||
p1desc={{Pspan|check}} is the item to inquire about| | |||
}}| | |||
function_description=Returns the total number of {{pspan|check}} that you can currently create within the limits of your current inventory, skills, etc. This will even consider a Sauceror's ability to mix three times as many potions.| | |||
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}}| | |||
cli_equiv=The CLI command "create" offers similar information, but on all possibilities at once, when supplied no parameters.| | |||
}} | |||
[[Category:Item Management]] | |||
Latest revision as of 21:15, 10 June 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. This will even consider a Sauceror's ability to mix three times as many potions.
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.