element
Record table of Himegari Dungeon Meister, records 0 to 15, 2 fields.
AFINIT's elements keyed by defense element id, 1 to 12 named (0 is none, whose row is 100 throughout): a unit's and a shield's defense element (unit_defense_element, item_defense_element). Each row is how that element takes each attack element's damage, and how likely it is to catch each resistance group's conditions (attack_element_effectiveness_percent). An attack element (item_attack_element, skill_attack_element) is a column of the rows, and attack element n (1 to 8) is element n: the two lists name 1 to 8 alike (attack_element_names, defense_element_names), the skill menu's attack icons are the unit screen's defense icons (SELACT@0xd2f, INFOEN@0x12b0), and the matchups pair them: 火炎, 冷却, 電撃 and 地脈 (3 to 6) absorb their own attack element (-100 where row and column meet), and 神聖 and 暗黒 take 80 of theirs.
The game builds it at boot. Record id is [element.id] in a data file, element[id] in OMS and Lua, and a field element.id.field.
The database lists it: Elements.
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 himegari-base’s shape says.
| Field and its global | Type | Refers to | In a data file |
|---|---|---|---|
namedefense_element_names | string[16] | — | yes: text the save's code page (932) can encode |
effectiveness_percentattack_element_effectiveness_percent | int[16][20] | — | yes: a row of 20 columns by name where a column has one and by number where it has none; write effectiveness_percent.<column> = ... |