Difference between revisions of "Is goal"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
(Created page with '{{ #vardefine:name|is_goal}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function_category=Adventuring| function1={{Function| name={{#var:name}}| agg…')
 
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Adventuring|
 
  
 
function1={{Function|
 
function1={{Function|
Line 22: Line 21:
 
see_also={{SeeAlso|adventure|add_item_condition}}|
 
see_also={{SeeAlso|adventure|add_item_condition}}|
 
}}
 
}}
 +
 +
[[Category:Adventuring]]

Revision as of 22:18, 21 May 2010

needs(code_samples);

Function Syntax

boolean is_goal(item want )

  • want is checked to see if it is a goal

Checks to see if any adventuring goals would be satisfied by a want. Unfortunately there is currently no way to check for a non-item goal.

See Also

adventure() | add_item_condition()