class_change_selected_level
Global of Himegari Dungeon Meister: the cell G:0xab8e7, of type int, unknown, values -1 Lily form transition, 0 no promotion, otherwise selected threshold 10..90.
CALCCC clears this accumulator before invoking the class-change rule scripts (CALCCC@0x0). A rule fires when current_unit_id is its unit, the unit's unit_current_levels row reaches its threshold, and its column of unit_class_change_state is 0 (CCINIT@0x12d-0x162); it replaces this value and class_change_title_output only when the value is 0 or below its threshold (CCINIT@0x169-0x18a), and adds its bonuses whether or not it takes the title. The two Lily rules (units 3 and 4) have no level test and set -1 with an empty title, and fire only for a unit that is not Lily's current form G[0x32f0] (CCINIT@0x0-0x5f). Nonzero then signals CALCCC (CALCCC@0x68) and ADDEXP (ADDEXP@0x35d) to apply and report the chosen promotion.
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.
Record tables
It is a field of the table class_change, as class_change.id.title_level.
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 | 142 | 71 | 0 |
$1$CCINIT | 4 | 2 | 0 |
ADDEXP | 4 | 0 | 0 |
CALCCC | 1 | 1 | 0 |