terrain_visibility_classes
Global of Kamidori Alchemy Meister: the cell G:0x2a3561, of type int[40], data-table, values 0 = void/no tile; 1 = known from the start; 2 = unexplored until claimed/revealed; 3 = hidden (needs 探索 / prior reveal).
DRAWMAP@0x2d1 skips class 0 tiles; FIELD@0x79c reveals class-1 tiles on entry (all nonzero classes at 100%); MVSEEK@0x49e rejects class 0 and only lets class 3 be crossed if revealed or the unit has skill 4 (探索) (MVSEEK@0x4b4); DRAWMAP@0xb01 hides class-3 doors until revealed and @0xf5a gives class 1/2 fog a frontier tint; CALCOCC@0x400 counts nonzero classes as the occupation denominator; SETLAND@0x91 reveals dug class-1 cells.
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.
Record tables
It is a field of the table terrain, as terrain.id.visibility_class.
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 |
|---|---|---|---|
LAINIT | 0 | 26 | 0 |
DRAWMINIMAP | 0 | 0 | 13 |
FIELD | 0 | 0 | 13 |
DRAWMAP | 0 | 0 | 11 |
$3$LAINIT | 0 | 5 | 0 |
MVSEEK | 0 | 0 | 2 |
RESETLAND | 0 | 0 | 2 |
SETLAND | 0 | 0 | 2 |
BTL | 0 | 0 | 1 |
CALCOCC | 0 | 0 | 1 |
CALCSCOPE | 0 | 0 | 1 |
CALCSUPPORT | 0 | 0 | 1 |
DRAWCHSTATE | 0 | 0 | 1 |
DRAWVOL | 0 | 0 | 1 |
FELLOW | 0 | 0 | 1 |