current_item_id
Global of Kamidori Alchemy Meister: the cell G:0x2d2846, of type int, index-pointer, values ITINIT item id (1..1999); 0 = none.
Shared item argument/selection slot. ITMES@0x00006.. compares item_category[current_item_id]; DRAWTOOLTIP@0x00037, CALCARM@0x00000, USEITEM@0x00001, ADDITEM@0x00041 and ADDSTOCK@0x00021 all index ITINIT arrays with it. Also observed: [maps decode, named current_costume_item_id] COINIT selector (eq local0, G[0x2d2846], K, COINIT@0x1d..). ENHANCE, CALCARM, GAMESTART set it before calling the 0x3d4280 chain.
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.
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 |
|---|---|---|---|
ITMES | 1013 | 0 | 0 |
$3$ITMES | 279 | 0 | 0 |
ENHANCE | 42 | 7 | 0 |
INFO3 | 40 | 2 | 0 |
DRAWTOOLTIP | 35 | 0 | 0 |
FELLOW | 26 | 7 | 0 |
$1$ITMES | 25 | 0 | 0 |
SELORN | 18 | 6 | 0 |
COINIT | 23 | 0 | 0 |
USEITEM | 22 | 1 | 0 |
$2$ITMES | 22 | 0 | 0 |
ADDITEM | 22 | 0 | 0 |
SHOP | 14 | 7 | 0 |
CHECKIMPROVE | 16 | 1 | 0 |
SELGEM | 9 | 6 | 0 |
SALE | 8 | 4 | 0 |
$3$SC2920 | 0 | 11 | 0 |
ALCHEMY | 7 | 4 | 0 |
ARRANGE | 7 | 3 | 0 |
CALCARM | 10 | 0 | 0 |
SC0750 | 0 | 10 | 0 |
ADDSTOCK | 8 | 0 | 0 |
SC1160 | 0 | 8 | 0 |
$3$SC2910 | 0 | 7 | 0 |
$3$SC2960 | 0 | 7 | 0 |
SC0800 | 0 | 7 | 0 |
$3$SC2940 | 0 | 6 | 0 |
$3$SC2950 | 0 | 6 | 0 |
FIELD | 1 | 5 | 0 |
SC0740 | 0 | 6 | 0 |
CHANGEARM | 5 | 0 | 0 |
SC6990 | 0 | 5 | 0 |
SELSEWUP | 5 | 0 | 0 |
GAMESTART | 0 | 4 | 0 |
INFO4 | 3 | 1 | 0 |
SC0000 | 0 | 4 | 0 |
$1$COINIT | 3 | 0 | 0 |
$3$SC2930 | 0 | 3 | 0 |
CALCREVISE | 1 | 2 | 0 |
DEBUGADV | 0 | 3 | 0 |
SC1520 | 0 | 3 | 0 |
$3$SC2900 | 0 | 2 | 0 |
DEBUGMAP | 0 | 2 | 0 |
FELLOWSTATUS | 0 | 2 | 0 |
SC0320 | 0 | 2 | 0 |
SC0700 | 0 | 2 | 0 |
SC0760 | 0 | 2 | 0 |
SC1060 | 0 | 2 | 0 |
SC1150 | 0 | 2 | 0 |
SC1250 | 0 | 2 | 0 |
SC1270 | 0 | 2 | 0 |
SC1280 | 0 | 2 | 0 |
SC1390 | 0 | 2 | 0 |
SC1600 | 0 | 2 | 0 |
SC3550 | 0 | 2 | 0 |
UNITECH | 0 | 2 | 0 |
$1$SC2630 | 0 | 1 | 0 |
$2$SC2700 | 0 | 1 | 0 |
CHANGECOS | 1 | 0 | 0 |
COMMITBTL | 0 | 1 | 0 |
DEBUGAM | 0 | 1 | 0 |
DEBUGMAP2 | 0 | 1 | 0 |
INVITECH | 0 | 1 | 0 |
RECEIPT | 0 | 1 | 0 |
REWARD | 0 | 1 | 0 |
SC0050 | 0 | 1 | 0 |
SC0170 | 0 | 1 | 0 |
SC0470 | 0 | 1 | 0 |
SC0500 | 0 | 1 | 0 |
SC0510 | 0 | 1 | 0 |
SC0560 | 0 | 1 | 0 |
SC0580 | 0 | 1 | 0 |
SC0710 | 0 | 1 | 0 |
SC0830 | 0 | 1 | 0 |
SC0900 | 0 | 1 | 0 |
SC1020 | 0 | 1 | 0 |
SC1090 | 0 | 1 | 0 |
SC1100 | 0 | 1 | 0 |
SC1170 | 0 | 1 | 0 |
SC1190 | 0 | 1 | 0 |
SC1290 | 0 | 1 | 0 |
SC1300 | 0 | 1 | 0 |
SC1500 | 0 | 1 | 0 |
SC1510 | 0 | 1 | 0 |
SC1730 | 0 | 1 | 0 |
SC1800 | 0 | 1 | 0 |
SC2020 | 0 | 1 | 0 |
SC4520 | 0 | 1 | 0 |
SC6150 | 0 | 1 | 0 |
SETSTUDIO | 0 | 1 | 0 |
STAGECLEAR | 0 | 1 | 0 |