Outfit

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



needs(code_samples);

Function Syntax

boolean outfit(string name )

  • name is an outfit to wear

This function attempts to put on the outfit specified as name, and returns true if it does so successfully, and false if it does not.

CLI Equivalent

The CLI command command "outfit" with works similarly when supplied an outfit name as a parameter.

See Also

have_outfit()


Attention KoLmafia Experts!

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

The following specific question has been raised:

  • What does this function return when attempting to switch to an outfit one cannot wear; false, as I would assume? Or does it only return false for programmatic / page load failures?)