Retrieve item: Difference between revisions
Jump to navigation
Jump to search
imported>Jasonharper order of operations |
imported>StDoodle mNo edit summary |
||
Line 24: | Line 24: | ||
see_also={{SeeAlso|buy}}| | see_also={{SeeAlso|buy}}| | ||
cli_equiv=The CLI command "acquire" works similarly.| | cli_equiv=The CLI command "acquire" works similarly.| | ||
special=Unlike a few other ASH commands, retrieve_item() will still return false on attempts to acquire items that are not possible to get (such as a sparkly engagement ring). | special=Unlike a few other ASH commands, retrieve_item() will still return false on attempts to acquire items that are not possible to get (such as a sparkly engagement ring).| | ||
more_info=For information on order of operations, see [[Retrieval order]].| | |||
}} | }} | ||
{{RFI|Are there exceptions to the info listed under Special?}} | {{RFI|Are there exceptions to the info listed under Special?}} |
Revision as of 17:58, 5 March 2010
needs(code_samples);
Function Syntax
boolean retrieve_item(int qty ,item get )
- qty is the quantity to acquire
- get is the item to acquire
Uses KoLmafia's internal logic to gather the items in the least destructive manner. Returns true if items are acquired as specified and false if not.
CLI Equivalent
The CLI command "acquire" works similarly.
See Also
More Information
For information on order of operations, see Retrieval order.
Special
Unlike a few other ASH commands, retrieve_item() will still return false on attempts to acquire items that are not possible to get (such as a sparkly engagement ring).
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 exceptions to the info listed under Special?