UNITECH
Script UNITECH.BIN of Kamidori Alchemy Meister: id 0x122, 270 instructions, fingerprint d85c7a515c73.
Adds units to the party: for each entry of its lists, the unit's character is set up on its first join, raised to the entry's level when that is higher, and put in a roster slot, as the entry's mode says. Every caller joins one unit.
Source: docs/kamidori-data-tables.md (Joining the party, under Runtime character state)
Its caller sets these globals before the call:
| Global | What it holds |
|---|---|
joining_unit_ids | the units that join |
joining_unit_modes | how each joins: 0 a member, 1 with join flag bit 0 only, 2 leaving the join flags |
joining_unit_levels | the level each is raised to; 0 leaves it |
joining_unit_count | how many entries to read |
Calls
Called by $1$SC2600, $1$SC2630, $1$SC2650, $2$SC2710, $3$SC2800, DEBUGADV, DEBUGAM, DEBUGMAP, DEBUGMAP2, GAMESTART, SC0000, SC0010, SC0050, SC0450, SC0460, SC0470, SC0500, SC0530, SC0550, SC0610, SC0710, SC0720, SC0730, SC0740, SC0750, SC0760, SC1020, SC1470, TITLE.
It calls ADDITEM (2 sites), CALCCC.
Globals
The named globals its instructions read, write or index (take as an array’s base), with how many operands do each. Cells no global names yet take 2 reads, 0 writes and 6 indexes more.