tile_room_ids
Global of Kamidori Alchemy Meister: the cell G:0x50bb7, of type int[27x27], data-table, values room id 1..room_count per tile [ty][tx]; 0 = no tile.
SETROOM@0x0 clears it and flood-fills (queue) from every unassigned nonzero tile across edges whose terrain has terrain_room_join_flags set; edges of non-joining terrain (ids 1 and 3) separate rooms and are drawn as doors. DRAWMAP@0x2df/0x3d8 draws walls/doors where neighbouring room ids differ; CALCOCC@0x75 aggregates faction presence per room.
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 |
|---|---|---|---|
DRAWMINIMAP | 0 | 0 | 29 |
DRAWMAP | 0 | 0 | 26 |
SETROOM | 0 | 0 | 5 |
CALCOCC | 0 | 0 | 3 |
FIELD | 0 | 0 | 2 |