Get ingredients: Difference between revisions
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:name|get_ingredients}} | {{ | ||
{{#vardefine:return_type|int [item]}} | #vardefine:name|get_ingredients}}{{ | ||
{{#vardefine:aggregate|yes}} | #vardefine:return_type|int [item]}}{{ | ||
#vardefine:aggregate|yes}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function_category=Item Management| | function_category=Item Management| |
Revision as of 20:41, 8 March 2010
Function Syntax
int [item] get_ingredients(item parse_me )
- parse_me is the creatable item to list the ingredients for
Returns a map keyed by item names with the values equal to the quantity of each ingredient required to make parse_me. Note that for multi-stage crafting (where you combine several items to get intermediate items, and then combine those for the final result), only the last stage of requirements is listed. This function will parse items that can be created through multi-use of items as well as "traditional" creation methods such as cooking, cocktailcrafting, and smithing.
More Information
See the Coldfront's wiki page on Discoveries for more information.
Special
Returns an empty map for items that cannot be created. Depleted Grimacite items are NOT parsed by this function.
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:
- Are there any creation types this function won't parse besides depleted Grimacite?