unit_current_stats
Global of Himegari Dungeon Meister: the cell G:0x69f8, of type int[100][14], data-table, values nonnegative current stat values.
Persistent fourteen-stat row for each playable unit, using the same column order as unit_base_stats. CALCCC adds class_change_stat_bonuses to the current unit's row and clamps each result to the shared stat caps.
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: 0 accuracy, 1 evasion, 2 physical_attack, 3 physical_defense, 4 magic_attack, 5 magic_defense, 6 speed, 7 luck, 8 critical_chance, 9 capture_power, 10 movement, 11 max_hp, 12 max_sp, 13 max_fs. Lua and an event’s cell write a row’s column unit_current_stats[i].column.
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 |
|---|---|---|---|
ADDEXP | 0 | 0 | 10 |
TRAIN | 0 | 0 | 10 |
SHOWGROW | 0 | 0 | 8 |
EVOLVE | 0 | 0 | 5 |
UNITECH | 0 | 0 | 5 |
CALCCC | 0 | 0 | 4 |
USEITEM | 0 | 0 | 4 |
GAMECLEAR | 0 | 0 | 3 |
GAMESTART | 0 | 0 | 2 |
FORT | 0 | 0 | 1 |
SALLY | 0 | 0 | 1 |
SETCH | 0 | 0 | 1 |