item_category
Global of Kamidori Alchemy Meister: the cell G:0x2dd428, of type int[2000], data-table, values 0 innate/basic attack, 1 key, 2 costume, 3 invention, 4 consumable, 5 growth stone, 6 costume orb (gem), 7 furniture, 8 sell-only treasure, 9 alchemy material, 10 accessory, 11 hammer, 12 staff, 13 sword, 14 bow, 15 crystal, 16 pipe (kiseru), 17 glove, 18 fang, 19 spear, 20 scythe, 21 claw/knuckle, 22 vacuum, 23 kettle, 24 bucket/vessel, 25 fan; the game names them in item_category_names.
Every record sets it. ITMES@0x00006.. dispatches on it first (eq 0,1,2,3...), and ITMES titles carry the matching prefix (【基本攻撃】【重要】【衣装】【発明】【消費】【成長】【宝珠】【家具】【売専】【素材】【装飾】【鉄槌】【杖】【剣】【弓】【水晶】【煙管】【手袋】【牙】【槍】【鎌】【鈎爪】【掃除機】【薬缶】【器物】【扇子】). SETARMSTATE@0x0007f tests the character's equip mask bit by category. CALCARM@0x00038 handles costumes (2). USEITEM@0x00001 handles growth stones (5). CALCSCOPE@0x00413 builds the weapon-category bit for skill_required_weapon_category_mask.
OME’s registry gives it with high confidence, from investigation. The base mod kamidori-base exports the name, so Lua and an event’s fields can use it.
Record tables
It is a field of the table item, as item.id.category.
Scripts that use it
The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.
| Script | Reads | Writes | Indexes |
|---|---|---|---|
ITINIT | 0 | 992 | 0 |
$3$ITINIT | 0 | 279 | 0 |
ITMES | 0 | 0 | 26 |
$1$ITINIT | 0 | 25 | 0 |
$2$ITINIT | 0 | 22 | 0 |
DRAWTOOLTIP | 0 | 0 | 12 |
FELLOW | 0 | 0 | 6 |
INFO3 | 0 | 0 | 6 |
SELGEM | 0 | 0 | 5 |
ALCHEMY | 0 | 0 | 4 |
SETARMSTATE | 0 | 0 | 3 |
SETTOOLLIST | 0 | 0 | 3 |
SHOP | 0 | 0 | 3 |
ADDITEM | 0 | 0 | 2 |
CALCSCOPE | 0 | 0 | 2 |
DEBUGMAP | 0 | 0 | 2 |
FIELD | 0 | 0 | 2 |
GAMECLEAR | 0 | 0 | 2 |
GAMESTART | 0 | 0 | 2 |
SELORN | 0 | 0 | 2 |
SETUSABLE | 0 | 0 | 2 |
USEITEM | 0 | 0 | 2 |
ADDEXP | 0 | 0 | 1 |
CALCARM | 0 | 0 | 1 |
CGMODE | 0 | 0 | 1 |
DEBUGAM | 0 | 0 | 1 |
DEBUGMAP2 | 0 | 0 | 1 |
ENHANCE | 0 | 0 | 1 |
INFO4 | 0 | 0 | 1 |
REWARD | 0 | 0 | 1 |
SALE | 0 | 0 | 1 |
SETEQUIP | 0 | 0 | 1 |