element_names
Global of Kamidori Alchemy Meister: the cell GS:0x6212, of type string[8], string-table, values element 0 無属 (non-elemental), 1 物理 (physical), 2 地脈 (earth), 3 冷却 (cold), 4 火炎 (fire), 5 電撃 (lightning), 6 神聖 (holy), 7 暗黒 (dark).
INIT2@0x000db..0x000fe writes the eight names. INFO6@0x01008 draws GStr[0x6212 + skill_attack_element_encoded - 1] (when it is not 0), so element e is element e of the list; STATUS@0x01ff9, SELSEWUP@0x0081b and DRAWTOOLTIP@0x004a6 read it too. Element 0, 無属 (Omni), is the one no unit resists: nothing gives a unit a grade for it (docs/kamidori-data-tables.md, Combat pipeline).
OME’s registry gives it with high confidence, from investigation. The base mod kamidori-base exports the name, so Lua and an event’s fields can use it.
Record tables
It is a field of the table element, as element.id.name.
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 |
|---|---|---|---|
INIT2 | 0 | 8 | 0 |
DRAWTOOLTIP | 0 | 0 | 1 |
INFO6 | 0 | 0 | 1 |
SELSEWUP | 0 | 0 | 1 |
STATUS | 0 | 0 | 1 |