unit_element_resistance_levels
Global of Kamidori Alchemy Meister: the cell G:0x2b7264, of type int[1000][8], data-table, values -5..+6: -5激弱 -4強弱 -3弱点 -2軽弱 -1微弱 0-- 1微減 2軽減 3強減 4激減 5無効 6吸収 (labels 0x621a+5+v); col 0 (無属) is 0 on every unit.
INFO5@0x00f2a draws 0x621a[5+v] for k=1..7 beside element names 0x6212+k; SETEN@0x00501 stores 5+v in battle slot 0x53d42; UNITECH@0x0020f seeds character_resistances (0x643f5).
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.
Its columns are named: 1 physical, 2 earth, 3 cold, 4 fire, 5 lightning, 6 holy, 7 dark. Lua and an event’s cell write a row’s column unit_element_resistance_levels[i].column.
Record tables
It is a field of the table unit, as unit.id.element_resistance.
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 |
|---|---|---|---|
EBINIT | 0 | 975 | 0 |
$3$EBINIT | 0 | 151 | 0 |
$1$EBINIT | 0 | 76 | 0 |
$2$EBINIT | 0 | 31 | 0 |
INFO5 | 0 | 0 | 1 |
SETEN | 0 | 0 | 1 |
UNITECH | 0 | 0 | 1 |