Outfit: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
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…'
 
imported>StDoodle
mNo edit summary
Line 1: Line 1:
{{#vardefine:name|outfit}}
{{
{{#vardefine:return_type|boolean}}
#vardefine:name|outfit}}{{
#vardefine:return_type|boolean}}{{


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

Revision as of 21:23, 8 March 2010

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