gallery_costume_character_slots
Global of Kamidori Alchemy Meister: the cell G:0xfec3a, of type int[20], data-table, values costume-selection slot of the gallery character (rows 1..3 -> 2,3,4); 0 = no costumes.
CGMODE@0xc88 enables the costume picker when nonzero, matches it against item column 0x2e39b8[item*5+k] to find owned costume items, and @0x10cb writes the choice into character_costume_selection[slot]. Also observed: [progression decode, named gallery_page_character_ids] CGMODE@0x10cb/0x10e3 forces G[0x64201+char] bit1 and G[0x642c9+char]=selected form before calling the EVINIT chain so gallery CGs render in the chosen costume. Not written by CGINIT (populated elsewhere).
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 |
|---|---|---|---|
CGMODE | 0 | 0 | 6 |
EUINIT | 0 | 3 | 0 |