Talk:Item
I would like to create an item page that tells more about what you can do with items, instead of redirecting to a Data Types section that has almost no KoLMafia information. It would look like this. Basically, I start with the Data Types section, followed by a list of relevant functions culled from the Master List, and ending with the table of proxy record fields from the Proxy Records page. I would like to do this for all the data types (except the simple types wouldn't have proxy record tables). What do you think?
item
Any item in all of KoL is valid for this datatype. Note that unlike most special datatypes, item references can make use of the item ID number.
For example, you could assign the item plexiglass pants as follows:
item it = $item[ 1234 ];
The full range, besides $item[ none ], is too much to list and keep up with here: please see the Wiki Items page for more information.
Related Functions
void add_item_condition( int, item )
boolean autosell( int, item )
boolean boolean_modifier( item, string )
boolean buy( [coinmaster], int, item )
int buy_price( coinmaster, item )
boolean buy_using_storage( int, item )
int buy_using_storage( int, item, int )
boolean buys_item( coinmaster, item )
boolean can_equip( item )
boolean chew( int, item )
class class_modifier( item, string )
boolean craft( string, int, item, item )
string craft_type( item )
int creatable_turns( [item], [int], [boolean] )
boolean create( int, item )
item daily_special()
boolean drink( int, item )
boolean eat( int, item )
boolean eatsilent( int, item )
effect effect_modifier( item, string )
boolean equip( [slot], item )
int [item] extract_items( string )
item familiar_equipment( familiar )
item familiar_equipped_equipment( familiar )
int [item] get_campground()
int [item] get_chateau()
int [item] get_clan_lounge()
item get_dwelling()
int [item] get_ingredients( item )
int [item] get_inventory()
int [item] get_related( item, string )
int [item] get_shop()
boolean have_equipped( item )
boolean hermit( int, item )
float historical_age( item )
boolean is_coinmaster_item( item )
boolean is_discardable( item )
boolean is_displayable( item )
boolean is_giftable( item )
boolean is_goal( item )
boolean is_npc_item( item )
boolean is_tradeable( item )
boolean is_trendy( item/familiar/skill/string )
boolean is_unrestricted( item/familiar/skill/string )
float item_drop_modifier()
int [item] item_drops( [monster] )
record [int] item_drops_array( [monster] )
string item_type( item )
string last_item_message()
float numeric_modifier( item, string )
float numeric_modifier( familiar, string, int, item )
item [int] outfit_pieces( string )
boolean overdrink( int, item )
boolean put_closet( int, [item] )
boolean put_display( int, item )
boolean put_shop( int, int, [int], item )
boolean put_stash( int, item )
void remove_item_condition( int, item )
boolean retrieve_item( int, item )
boolean sell( coinmaster, int, item )
int sell_price( coinmaster, item )
boolean sells_item( coinmaster, item )
boolean take_closet( int, [item] )
boolean take_display( int, item )
boolean take_shop( [int], item )
boolean take_stash( int, item )
boolean take_storage( int, item )
buffer throw_item( item )
buffer throw_items( item, item )
item to_item( int )
string to_plural( item )
slot to_slot( item )
boolean use( int, item )
stat weapon_type( item )
Proxy Record Fields
Field | Data type | Default value | ASH Accessor Function / Notes |
---|---|---|---|
plural | string | "" | |
descid | string | "" | |
image | string | "" | |
smallimage | string | "" | |
levelreq | int | 0 | |
quality | string | "" | |
adventures | string | "" | |
muscle | string | "" | |
mysticality | string | "" | |
moxie | string | "" | |
fullness | int | 0 | |
inebriety | int | 0 | |
spleen | int | 0 | |
minhp | int | 0 | |
maxhp | int | 0 | |
minmp | int | 0 | |
maxmp | int | 0 | |
dailyusesleft | int | 0 | |
notes | string | "" | |
quest | boolean | false | |
gift | boolean | false | |
tradeable | boolean | false | |
discardable | boolean | false | |
combat | boolean | false | |
combat_reusable | boolean | false | |
usable | boolean | false | |
reusable | boolean | false | |
multi | boolean | false | |
fancy | boolean | false | |
candy | boolean | false | |
seller | coinmaster | none | |
buyer | coinmaster | none | |
name_length | int | 0 |
--Aventuristo (talk) 20:31, 27 September 2017 (EDT)