area_unit
Record table of Soukoku no Arterial, records 0 to 199, 9 fields.
UNINIT's units of the area in play, keyed by unit number.
The game builds it when a area loads, so a data file reaches it through the scope area (ids 1 to 299): record r of area id is [area.id.unit.r], and a field area.id.unit.r.field.
The scope area: An area, by current_area_id (an id of AMINIT; the game's are 1 to 197 and its per-area arrays hold 300). MPINIT, ROINIT and UNINIT clear these tables and fill them from the branch for the area in play.
Fields
Each field is a global, one cell per record, named under the field. The last column is what a data file may write to it, as the base mod arterial-base’s shape says.
| Field and its global | Type | Refers to | In a data file |
|---|---|---|---|
cardarea_unit_cards | int[200][2] | card | yes: a row of 2 columns by name; write card.<column> = ... |
kindarea_unit_kinds | int[200] | — | yes: a whole number |
iconarea_unit_icons | int[200] | — | yes: a whole number |
deckarea_unit_decks | int[200] | — | yes: a whole number |
routinearea_unit_routines | int[200] | — | yes: a whole number |
battle_musicarea_unit_battle_music | int[200] | — | yes: a whole number |
picturearea_unit_pictures | int[200][2] | — | yes: a row of 2 columns by number, 0 to 1; write picture.<number> = ... |
extra_picturearea_unit_extra_pictures | int[200] | — | yes: a whole number |
state_idarea_unit_state_ids | int[200] | — | yes: a whole number |