current_card_id
Global of Himegari Dungeon Meister: the cell G:0x1519f8, of type int, index-pointer, values CDINIT2 card id 1..81.
FIELD's selected card-definition row. Card generation copies a surviving CDINIT card id here, uses it to test CDINIT2 story-flag gates, retains it through weighted selection, and indexes the chosen card's effects, graphics, name, and result text.
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.
It depends on 0x4315, 0x4379, 0x1525b2.
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 |
|---|---|---|---|
FIELD | 36 | 2 | 0 |
ADDRANDOMITEM | 3 | 0 | 0 |