unit_sally_action_counts
Global of Himegari Dungeon Meister: the cell G:0x53ef7, of type int[100][8], data-table, values counts, by unit id 0 to 99 and SALLY action (unit_sally_event_ids' columns).
How many times SALLY has performed each action on a unit: SALLY@0xf35 adds 1 to [unit][action]. Every column but 2 and 7 added up is the unit's summon progress, which unit_summon_knowledge_threshold measures: SALLY gives the unit's summoning stone when it reaches the threshold (SALLY@0x1822-0x18ad), and SUMMON shows it as a percentage of the threshold (SUMMON@0x102b-0x1089). GAMECLEAR stores it in the shared profile and GAMESTART loads it (GAMECLEAR@0x4a0, GAMESTART@0xc40), so a new game keeps the progress.
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 contract, 1 brainwash, 2 reserved_action, 3 sex_magic_lily_child, 4 sex_magic_lily_girl, 5 sex_magic_lily_adult, 6 sacrifice, 7 release. Lua and an event’s cell write a row’s column unit_sally_action_counts[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 |
|---|---|---|---|
SC0490 | 8 | 4 | 0 |
SALLY | 0 | 0 | 8 |
SUMMON | 0 | 0 | 6 |
GAMESTART | 0 | 4 | 1 |
GAMECLEAR | 0 | 0 | 1 |