quest_clear_flag_ids
Global of Kamidori Alchemy Meister: the cell G:0x3bbcb2, of type int[2000][3], data-table, values story flag id; 0 = unused.
CHECKCONTRACT@0x1f4: once at least one column is nonzero and all nonzero flags are set, the quest gains state bit2 (cleared), freezes its elapsed days and raises quest_notification_bits bit2. Reward notices (ids >= 1000) skip this and are marked cleared on posting (CHECKCONTRACT@0xae).
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.
Its columns are named: 0 clear_flag_1, 1 clear_flag_2, 2 clear_flag_3. Lua and an event’s cell write a row’s column quest_clear_flag_ids[i].column.
Record tables
It is a field of the table quest, as quest.id.clear_flags.
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 |
|---|---|---|---|
QUINIT | 0 | 104 | 0 |
$3$QUINIT | 0 | 40 | 0 |
$1$QUINIT | 0 | 6 | 0 |
$2$QUINIT | 0 | 3 | 0 |
CHECKCONTRACT | 0 | 0 | 2 |