Adventure
Function Syntax
boolean adventure(int adventures ,location place )
boolean adventure(int adventures ,location place ,string filter )
- int is the number of adventures to spend.
- place is the adventuring location.
- filter is a combat action filter (more info needed).
This function runs the specified number of adventures at the given place, keeping up your current mood & obeying restore settings.
If filter is omitted or assigned an empty string, this function will use your current CCS / battle action.
This function does not have to make use of its return value, but if you wish to do so, it will return true if all adventures were used, and false if it is unable to do so for any reason (not enough adventures, location unavailable, etc.).
Note that adventures is the number of adventures to spend, and any "free" turns will not count towards this total.
Note also that adventure() checks against goals set via add_item_condition() or via other methods of specifying goals in KoLmafia.
Code Sample
Adventure 5 times at the Giant's Castle:
adventure(5 , $location[giant's castle]);
CLI Equivalent
The CLI command "adv" works similarly.
See Also