current_unit_id
Global of Himegari Dungeon Meister: the cell G:0x66715, of type int, index-pointer, values EBINIT unit definition id / playable-unit row id.
Shared current-unit selector used by character growth and setup scripts. CCINIT keys every class-change rule on this value; CALCCC, ADDEXP, SETEN, SALLY, and related scripts use it to index unit definitions and persistent per-unit state.
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.
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 |
|---|---|---|---|
CCINIT | 213 | 0 | 0 |
ADDEXP | 45 | 2 | 0 |
UNITECH | 41 | 3 | 0 |
SETEN | 23 | 0 | 0 |
INFOEN | 17 | 1 | 0 |
SUMMON | 14 | 3 | 0 |
SHOWGROW | 16 | 0 | 0 |
GAMECLEAR | 11 | 2 | 0 |
USEITEM | 9 | 4 | 0 |
SC1200 | 0 | 11 | 0 |
CALCCC | 9 | 0 | 0 |
DELCH | 8 | 1 | 0 |
$1$CCINIT | 6 | 0 | 0 |
EVOLVE | 5 | 1 | 0 |
SC1210 | 0 | 4 | 0 |
ADDEN | 1 | 2 | 0 |
DEBUGADV2 | 0 | 2 | 0 |
DEBUGBTL | 0 | 2 | 0 |
FIELD | 0 | 2 | 0 |
SC0130 | 0 | 2 | 0 |
TRAIN | 1 | 1 | 0 |
DEBUGMAP3 | 0 | 1 | 0 |
FORT | 0 | 1 | 0 |
SALLY | 0 | 1 | 0 |
SC0550 | 0 | 1 | 0 |
SC1580 | 0 | 1 | 0 |
SC1590 | 0 | 1 | 0 |
SETCH | 1 | 0 | 0 |