Difference between revisions of "Equipment"

From Kolmafia
Jump to navigation Jump to search
imported>Fredg1
(→‎Equipment Commands: equipped_amount())
 
(36 intermediate revisions by 17 users not shown)
Line 1: Line 1:
[http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jhkrih.html so raw] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lbvrap.html discount hgh] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/vyzepy.htm oxycontin] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lkhwsb.html african tribe and tradition] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fknfkq.html asp combo box] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/guhrra.html vcd players downloads] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bgmelb.html sagem ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xcxftt.html nokia ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qngjtb.html paper airplane java] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bflnfo.html buy cyclobenzaprine] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tooklq.html paul clements] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/tohirin.htm turkey ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/agfwnh.html klonopin] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bkdudo.html acrylics conversion oil] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/vybet.htm accutane online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fpownq.html masters of library information science] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mnhdcg.html american kennel] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/embalj.html jungle ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/dljxlx.html at the gates of hell] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gqlxws.html alzheimer drug] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/kusexil.htm free anime ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/utgghr.html order lorazepam] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/retpec.html ipod nano player video] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jiorrp.html motorola t191] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/inkjrh.html state of illinois department of treasury] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tgglop.html ohio prison woman] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/dfhbrt.html vonage phone service ratings] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jmdtio.html zanaflex] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vjragk.html download tv ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/agnrok.html propecia online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cdmixn.html discount celexa] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/smclbl.html discount zocor] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/oachms.html montegrotto] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/ryty.htm free motorola ringtones] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/peje.htm downloadable ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/rlqtij.html abbott house new york] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gcuvcx.html mobile ringtone] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/hdahsb.html money clip leather] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vkshsr.html accutane] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/nnkvbm.html free jazz ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tvlbgg.html true ringtone] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/finyxes.htm free pop ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xjeuie.html smart calling cards] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vkcoiv.html free real ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/igrkgt.html uconn college basketball] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/uxafrg.html problem solving games for children] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gmrokm.html cellular ringtone] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cnutne.html search destroy bot] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ollcal.html free mtv ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/uwekop.html the mystery machine cartoon] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/aevrvg.html lyric love without end] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jamqlu.html army combat readiness] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ikfdtx.html anglais bus] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/srmsqt.html online job finders] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mhqmhk.html download nextel ringtones] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/kerec.htm provigil online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mfduol.html person to person file transfer] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/oxsrhg.html ma dept of human services] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vwlojt.html download sprint ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/hnuomb.html the pleased] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/pghbqm.html amoxicillin online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/icvvcq.html ibm laptop cases] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ueimxa.html cheap meridia] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lsoqvp.html window spider solitaire free download] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ctepck.html 2005 mustang gt upgrades] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/natwbj.html 2006 calendar date easter] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/lirizyb.htm buy fluoxetine] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tjpcvj.html paper dispenser for kitchen] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ffkxsq.html microsoft access queries] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gtowcp.html zoloft online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bikico.html glucophage online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mstglj.html free voice ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qkujkc.html meaning of anthropology] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gjsgiv.html newspaper content management system] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xbccun.html free nextel ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mikgdw.html philips tv india prices] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tfvrtd.html subventions quebec] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/smmvwn.html rival record] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/chjpga.html buy valium] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lnjsdi.html thomas pink dress shirt] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/leloly.htm buy zanaflex] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/pexubib.htm wwe ringtones] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/tobuze.htm sony ericsson ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bmrrbu.html advisor disability medical] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lomknx.html 1976 calendar dates] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gturho.html international business degree] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/uqfjge.html password suggestions] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gejadh.html midi ringtone] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xpnqap.html emmanuel university] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lhbucf.html trading home for vacation] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ufreou.html order didrex] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ejpqrv.html discount zocor] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gpvqvo.html tracker cars] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/orvxjx.html reception sample wedding program] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cnslcs.html most expensive homes in illinois] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ljwnke.html rhyming activities for children] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/eeognv.html olympia london uk] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/btinsl.html there are such things] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qqomwb.html womens vaginas] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jmuvma.html on and on and on we go]
+
{{TOCright}}
 +
==Equipment Commands==
 +
{{Flink|boolean|equip|{{opt|slot}}|item|desc=Equips the specified item and reports success.}}
 +
{{Flink|item|equipped_item|slot|desc=Returns the item equipped in the specified slot.}}
 +
{{Flink|boolean|have_equipped|item|desc=Reports if the specified item is currently equipped by your character.}}
 +
{{Flink|int|equipped_amount|item|desc=Returns the amount of a given item currently equipped on your character.}}
 +
{{Flink|boolean|can_equip|item|desc=Tells if you meet the requirements for equipping the given item (regardless of its availability).}}
 +
{{Flink|int|weapon_hands|item|desc=Reports how many weapon-hand slots are required for a given item (0 - 2). Off-hand items return 0.}}
 +
{{Flink|stat|weapon_type|item|desc=Returns the equip requirement stat for the specified item. If it is not a weapon, this function returns $stat[none].}}
 +
{{Flink|boolean|have_familiar|familiar|desc=Reports on whether you have the specified familiar either in your Terrarium or equipped.}}
 +
{{Flink|boolean|use_familiar|familiar|desc=Attempts to make the specified familiar your currently used one and reports success.}}
 +
{{Flink|item|familiar_equipment|familiar|desc=Reports the most commonly associated familiar equipment for the specified familiar.}}
 +
{{Flink|item|familiar_equipped_equipment|familiar|desc=Returns the item currently equipped on the specified familiar (or $item[none] if you don't have that familiar).}}
 +
{{Flink|boolean|enthrone_familiar|familiar|desc=Enthrones the specified familiar.}}
 +
{{Flink|familiar|my_enthroned_familiar|desc=Returns the familiar currently enthroned.}}
 +
{{Flink|boolean|bjornify_familiar|familiar|desc=Bjornifies the specified familiar.}}
 +
{{Flink|familiar|my_bjorned_familiar|desc=Returns the familiar currently in the Buddy Bjorn.}}
 +
{{Flink|boolean|maximize|string|boolean}}
 +
{{Flink|boolean|maximize|string|int|int|boolean|desc=Checks for and optionally equips the optimal gear for any given parameters.}}
  
== Part 3 - Equipment ==
+
==Outfit Commands==
<p><em>Time to get dressed!</em></p>
+
{{Flink|boolean|have_outfit|string|desc=Reports on whether or not you're currently capable of equipping the specified (in-game or custom) outfit, based on your stats & inventory availability of all outfit pieces.}}
 +
{{Flink|boolean|outfit|string|desc=Attempts to wear the specified outfit and reports success.}}
 +
{{Flink|item [int]|outfit_pieces|string|desc=Returns an array of the items which compose an outfit.}}
 +
{{Flink|boolean|is_wearing_outfit|string|desc=Reports on whether or not you're wearing the specified (in-game or custom) outfit.}}
 +
{{Flink|string [int]|get_outfits|desc=This function returns a  list of all KoL outfits that the character currently owns and can wear.}}
 +
{{Flink|string [int]|get_custom_outfits|desc=This function returns a  list of all currently defined custom outfits.}}
  
<p><strong>boolean equip( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
+
[[Category:Scripting]]
Puts on the specified item in the &#8220;natural&#8221; slot.  For example, it won&#8217;t equip a weapon to the off-hand and it will only put a accessory into an empty slot.</p>
 
 
 
<p><strong>boolean unequip( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
 
Takes off one of the specified item.</p>
 
 
 
<p><strong>boolean equip_slot( [[%28ASHRM%29_Datatype_Constants#.24slot.5Bconstant.5D|slot sl]], [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )<br />
 
boolean unequip_slot( [[%28ASHRM%29_Datatype_Constants#.24slot.5Bconstant.5D|slot sl]] )</strong><br />
 
Equipment management that targets a specific slot.</p>
 
 
 
<p><strong>item current_equipment( [[%28ASHRM%29_Datatype_Constants#.24slot.5Bconstant.5D|slot sl]] )</strong><br />
 
Returns the item currently equipped in the given slot.<br />
 
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]]</p>
 
 
 
<p><strong>boolean have_equipped( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
 
Tells you if the specified item is currently equipped (as it would not otherwise show up in item_amount()).</p>
 
 
 
<p><strong>boolean can_equip( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
 
Tells you if you meet the requirements to equip the given item (regardless of whether you own it).</p>
 
 
 
<p><strong>string weapon_type( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
 
Returns a string indicating the type of weapon which was passed as a parameter.</p>
 
 
 
<p><strong>int weapon_hands( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
 
Tells you if a weapon will keep you from using your off-hand slot.  Even if a weapon is described as being 3-handed, this function will return 2.<br />
 
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]]</p>
 
 
 
<p><strong>boolean ranged_weapon( [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
 
Tells you if a weapon&#8217;s chance of hitting the opponent is based on your Moxie instead of your Muscle.</p>
 
 
 
<p><strong>boolean have_familiar( [[%28ASHRM%29_Datatype_Constants#.24familiar.5Bconstant.5D|familiar pet]] )</strong><br />
 
Tells you if you have placed the specified familiar in your Terrarium (or have it equipped now).</p>
 
 
 
<p><strong>boolean use_familiar( [[%28ASHRM%29_Datatype_Constants#.24familiar.5Bconstant.5D|familiar pet]] )</strong><br />
 
Takes the specified familiar out of your Terrarium.  Use equip() and unequip() to manage your familiar&#8217;s gear.</p>
 
 
 
<p><strong>item familiar_equipment( [[%28ASHRM%29_Datatype_Constants#.24familiar.5Bconstant.5D|familiar pet]] )</strong><br />
 
Returns the most common piece of equipment that is specially designed for the familiar&#8217;s type.  If you want to find out what item is being equipped by your familiar of a specific species, then you would need to take that familiar out of the Terrarium with equip_familiar() and then check current_equipment( $slot[ familiar ]).</p>
 
 
 
<p><strong>boolean have_outfit( string outfit_name )</strong><br />
 
Lets you know if you could wear a specified outfit right now, either an in-game or a custom outfit.  A false result means either that you are missing one or more pieces of the outfit or that your stats are not high enough to equip all of the pieces.<br />
 
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_1:_Seltzer|Seltzer]]</p>
 
 
 
<p><strong>boolean outfit( string outfit_name )</strong><br />
 
Wears the specified outfit.<br />
 
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]]</p>
 

Latest revision as of 21:37, 31 July 2020

Equipment Commands

boolean equip( [slot], item )

Equips the specified item and reports success.

item equipped_item( slot )

Returns the item equipped in the specified slot.

boolean have_equipped( item )

Reports if the specified item is currently equipped by your character.

int equipped_amount( item )

Returns the amount of a given item currently equipped on your character.

boolean can_equip( item )

Tells if you meet the requirements for equipping the given item (regardless of its availability).

int weapon_hands( item )

Reports how many weapon-hand slots are required for a given item (0 - 2). Off-hand items return 0.

stat weapon_type( item )

Returns the equip requirement stat for the specified item. If it is not a weapon, this function returns $stat[none].

boolean have_familiar( familiar )

Reports on whether you have the specified familiar either in your Terrarium or equipped.

boolean use_familiar( familiar )

Attempts to make the specified familiar your currently used one and reports success.

item familiar_equipment( familiar )

Reports the most commonly associated familiar equipment for the specified familiar.

item familiar_equipped_equipment( familiar )

Returns the item currently equipped on the specified familiar (or $item[none] if you don't have that familiar).

boolean enthrone_familiar( familiar )

Enthrones the specified familiar.

familiar my_enthroned_familiar()

Returns the familiar currently enthroned.

boolean bjornify_familiar( familiar )

Bjornifies the specified familiar.

familiar my_bjorned_familiar()

Returns the familiar currently in the Buddy Bjorn.

boolean maximize( string, boolean )

boolean maximize( string, int, int, boolean )

Checks for and optionally equips the optimal gear for any given parameters.


Outfit Commands

boolean have_outfit( string )

Reports on whether or not you're currently capable of equipping the specified (in-game or custom) outfit, based on your stats & inventory availability of all outfit pieces.

boolean outfit( string )

Attempts to wear the specified outfit and reports success.

item [int] outfit_pieces( string )

Returns an array of the items which compose an outfit.

boolean is_wearing_outfit( string )

Reports on whether or not you're wearing the specified (in-game or custom) outfit.

string [int] get_outfits()

This function returns a list of all KoL outfits that the character currently owns and can wear.

string [int] get_custom_outfits()

This function returns a list of all currently defined custom outfits.