player_money
Global of Kamidori Alchemy Meister: the cell G:0x7ea39, of type int, counter, values signed, clamped to +/-9,999,999.
Player money (所持金). RECEIPT@0x729 adds quest_reward_money on success; FIELD@0x8626 adds a money card's rolled amount; CHECKREWARD@0x247 counts consecutive negative-balance settlements; GAMESTART@0x883 inherits it on new-game option bit3 (GSMES 11). Also observed: [items decode, named player_money] ADDITEM@0x00088, USEITEM@0x0020d, SHOP@0x014b3 and CHANGEARM@0x00103 add sale proceeds through 0xfec0c and clamp to 0x98967f. [alchemy decode, named economy_money] ARRANGE@0xcfe checks it against studio_extension_costs (増築費用が不足しています) and @0xe11 deducts; SALE@0xd93 adds sale proceeds; DRAWSTUDIOLV@0x27d and INFO1@0xd40 draw it.
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 |
|---|---|---|---|
SC3520 | 26 | 15 | 0 |
$3$SC2970 | 15 | 15 | 0 |
SHOP | 17 | 12 | 0 |
SC1070 | 16 | 12 | 0 |
SC1280 | 9 | 9 | 0 |
SC1060 | 8 | 6 | 0 |
$3$SC2910 | 6 | 6 | 0 |
ARENA | 6 | 3 | 0 |
$3$SCJUMP | 8 | 0 | 0 |
$3$SC2920 | 3 | 3 | 0 |
ADDITEM | 3 | 3 | 0 |
ADDSTOCK | 3 | 3 | 0 |
CHANGEARM | 3 | 3 | 0 |
FIELD | 3 | 3 | 0 |
RECEIPT | 3 | 3 | 0 |
REWARD | 3 | 3 | 0 |
SALE | 3 | 3 | 0 |
SC1180 | 3 | 3 | 0 |
SC1290 | 3 | 3 | 0 |
SHOWSETTLE | 3 | 3 | 0 |
STAGECLEAR | 3 | 3 | 0 |
USEITEM | 3 | 3 | 0 |
SCJUMP | 5 | 0 | 0 |
ARRANGE | 3 | 1 | 0 |
ENHANCE | 3 | 1 | 0 |
SC1900 | 0 | 2 | 0 |
ALLMAP | 1 | 0 | 0 |
CHECKREWARD | 1 | 0 | 0 |
DEBUGAM | 0 | 1 | 0 |
DEBUGMAP | 0 | 1 | 0 |
DEBUGMAP2 | 0 | 1 | 0 |
DRAWSTUDIOLV | 1 | 0 | 0 |
GAMECLEAR | 1 | 0 | 0 |
GAMESTART | 0 | 1 | 0 |
INFO1 | 1 | 0 | 0 |
INIT | 0 | 1 | 0 |
SAVE | 1 | 0 | 0 |