Have outfit: Difference between revisions
Jump to navigation
Jump to search
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…' |
imported>Jasonharper m no custom outfits |
||
Line 15: | Line 15: | ||
}}| | }}| | ||
function_description=This function returns true if you have all parts of the outfit {{Pspan|name}} and meet all of the stat requirements to equip it. | function_description=This function returns true if you have all parts of the outfit {{Pspan|name}} and meet all of the stat requirements to equip it. Only in-game outfits are currently supported, not custom outfits.| | ||
needscode=yes| | needscode=yes| |
Revision as of 19:17, 7 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
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?)