Have outfit: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Jasonharper
m no custom outfits
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|have_outfit}}
{{
{{#vardefine:return_type|boolean}}
#vardefine:name|have_outfit}}{{
#vardefine:return_type|boolean}}{{


{{FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Equipment|
function_category=Equipment|

Revision as of 21:20, 8 March 2010

needs(code_samples);

Function Syntax

boolean have_outfit(string name )

  • name is an outfit to check for

This function returns true if you have all parts of the outfit name and meet all of the stat requirements to equip it. Only in-game outfits are currently supported, not custom outfits.

CLI Equivalent

The CLI command command "outfit" with the parameter "list" gives information on the in-game outfits you have available (but does not list custom outfits or check for whether the outfit can be equipped).

See Also

outfit()


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific questions have been raised:

  • Does this function check for misc. requirements such as torso & chefstaff wielding ability?
  • The custom outfit part was already listed; but how? (It doesn't work for me, is a specific prefix required? What?)