Difference between revisions of "Add item condition"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
m
imported>Bale
(remove_item_condition is new in r9093)
Line 22: Line 22:
 
needscode=yes|
 
needscode=yes|
  
see_also={{SeeAlso|adventure|is_goal}}|
+
see_also={{SeeAlso|adventure|is_goal|remove_item_condition}}|
 
cli_equiv=The CLI command "condition" offers similar functionality.|
 
cli_equiv=The CLI command "condition" offers similar functionality.|
 
}}
 
}}
  
 
[[Category:Adventuring]]
 
[[Category:Adventuring]]

Revision as of 06:32, 23 February 2011

needs(code_samples);

Function Syntax

void add_item_condition(int qty ,item want )

  • qty is the desired quantity
  • want is the desired item

Adds qty of want to your current adventuring conditions. Auto-adventuring through KoLmafia or the adventure() function will stop if your current conditions are met.

Note that this function adds items in "+ mode" rather than the standard "total mode" done via the Adventuring pane of KoLmafia; ie it will add a condition to get qty additional items, rather than a condition to have qty total items in inventory.

CLI Equivalent

The CLI command "condition" offers similar functionality.

See Also

adventure() | is_goal() | remove_item_condition()