entity_condition_levels
Global of Himegari Dungeon Meister: the cell G:0x52383, of type int[50][30], data-table, values condition level 0..5; zero means inactive.
Per-runtime-entity current condition levels. ADDILLSUB applies signed level deltas, clamps the minimum to entity_condition_baseline_levels and the maximum to 5, and assigns condition duration. CALCREVISE, FIELD, combat, and UI consumers index the same ILINIT-defined 30-column condition id space.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
Its columns are named: 1 instant_death, 2 hp_drain, 3 sp_drain, 4 fs_drain, 5 curse, 6 charm, 7 confusion, 8 paralysis, 9 poison, 10 water_flow, 11 fear, 12 reserved, 13 regeneration, 14 exaltation. Lua and an event’s cell write a row’s column entity_condition_levels[i].column.
It depends on 0x52f3b, 0x5295f, 0xaacf0.
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 |
|---|---|---|---|
ADDILLSUB | 0 | 0 | 9 |
CALCDMG | 0 | 0 | 9 |
FIELD | 0 | 0 | 9 |
CHMENU | 0 | 0 | 3 |
RECOVER | 0 | 0 | 3 |
BTL | 0 | 0 | 2 |
CALCSCOPE | 0 | 0 | 2 |
DRAWENP | 0 | 0 | 2 |
SALLY | 0 | 0 | 2 |
SETCH | 0 | 0 | 2 |
SETEN | 0 | 0 | 2 |
USEITEM | 0 | 0 | 2 |
BTRTN | 0 | 0 | 1 |
CALCREVISE | 0 | 0 | 1 |
DISARM | 0 | 0 | 1 |
DRAWCHP | 0 | 0 | 1 |
EXILE | 0 | 0 | 1 |
MAGIC | 0 | 0 | 1 |
MVRTN | 0 | 0 | 1 |
REMOVECH | 0 | 0 | 1 |
STATUS | 0 | 0 | 1 |
SUMMON | 0 | 0 | 1 |