adv_substituted_image_resource
Global of Kamidori Alchemy Meister: the cell G:0xfd41b, of type int, index-pointer, values packed EVxxxx.AGF resource id.
Scenes set it before showing an event CG (SC0010@0x110e), then walk the CSINIT (0x3d4220) and EVINIT (0x3d4240) hook chains while it is unchanged; EVINIT replaces it with the costume/form variant. CGMODE@0x10ba does the same for gallery viewing. Also observed: [alchemy decode, named adv_standing_sprite_resource] CSINIT (573 rules: eq 0xfd41b sprite / eq costume slot value / mov 0xfd41b replacement); scene scripts call costume_sprite_hooks after setting 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.