Difference between revisions of "Equipment"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m (moved (ASHRM) Equipment to Equipment over redirect)
imported>StDoodle
m
Line 4: Line 4:
 
{{Flink|boolean|can_equip|item|desc=Tells if you meet the requirements for equipping the given item (regardless of its availability).}}
 
{{Flink|boolean|can_equip|item|desc=Tells if you meet the requirements for equipping the given item (regardless of its availability).}}
 
{{Flink|string|item_type|item|desc=Returns the type of item specified.}}
 
{{Flink|string|item_type|item|desc=Returns the type of item specified.}}
{{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. (''Sample'':[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]])}}
+
{{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. (''Sample'': [[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]])}}
 
{{Flink|stat|weapon_type|item|desc=Reports the stat used to calculate to-hit percentage with the specified weapon or $stat[none] if the item is not a weapon. Still reports myst for stuff.}}
 
{{Flink|stat|weapon_type|item|desc=Reports the stat used to calculate to-hit percentage with the specified weapon or $stat[none] if the item is not a weapon. Still reports myst for stuff.}}
 
{{Flink|boolean|have_familiar|familiar|desc=Reports on whether you have the specified familiar either in your Terrarium or equipped.}}
 
{{Flink|boolean|have_familiar|familiar|desc=Reports on whether you have the specified familiar either in your Terrarium or equipped.}}

Revision as of 01:16, 2 March 2010

boolean equip( [slot], item )

Equips the specified item and reports success.

item equipped_item( slot )

Returns the item equipped in the specified slot. (Sample: Battlefield_gather)

boolean have_equipped( item )

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

boolean can_equip( item )

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

string item_type( item )

Returns the type of item specified.

int weapon_hands( item )

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

stat weapon_type( item )

Reports the stat used to calculate to-hit percentage with the specified weapon or $stat[none] if the item is not a weapon. Still reports myst for stuff.

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 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.