stage_bgm_id
Global of Kamidori Alchemy Meister: the cell G:0x140417, of type int, data-table, values BGM number (0 = none; 14/16/18/19/20 common).
FIELD@0x5d4 copies it to the current/saved BGM pair 0x378c/0x378d on a fresh map and restores it from them on continue (FIELD@0x63e/0x646); STAGEREADY and many SCnnnn event scripts overwrite it together with 0x378c to change the stage music mid-map.
OME’s registry gives it with med 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 |
|---|---|---|---|
STINIT | 0 | 181 | 0 |
STAGEREADY | 0 | 18 | 0 |
FIELD | 11 | 5 | 0 |
$3$STINIT | 0 | 15 | 0 |
$1$STINIT | 0 | 11 | 0 |
SC4540 | 4 | 4 | 0 |
SC4800 | 3 | 3 | 0 |
SC2330 | 2 | 2 | 0 |
SC3550 | 2 | 2 | 0 |
SC4810 | 2 | 2 | 0 |
SC5550 | 2 | 2 | 0 |
$2$STINIT | 0 | 2 | 0 |
SC2000 | 1 | 1 | 0 |
SC3030 | 1 | 1 | 0 |
SC3510 | 1 | 1 | 0 |
SC3530 | 1 | 1 | 0 |
SC4300 | 1 | 1 | 0 |
SC4510 | 1 | 1 | 0 |
SC4520 | 1 | 1 | 0 |
SC4550 | 1 | 1 | 0 |
SC4560 | 1 | 1 | 0 |
SC4820 | 1 | 1 | 0 |
SC4830 | 1 | 1 | 0 |
SC4840 | 1 | 1 | 0 |
SC4850 | 1 | 1 | 0 |
SC5500 | 1 | 1 | 0 |
SC5510 | 1 | 1 | 0 |
SC5520 | 1 | 1 | 0 |
SC5560 | 1 | 1 | 0 |
SC5570 | 1 | 1 | 0 |