Have outfit

From Kolmafia
Revision as of 17:35, 7 March 2010 by imported>StDoodle (Created page with '{{#vardefine:name|have_outfit}} {{#vardefine:return_type|boolean}} {{FunctionPage| name={{#var:name}}| function_category=Equipment| function1={{Function| name={{#var:name}}| ag…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search



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. You can specify an in-game or custom outfit for name.

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?)