unit_defense_element
Global of Himegari Dungeon Meister: the cell G:0x77c6e, of type int[1000], data-table, values 1..12 (AFINIT defense-attribute enum).
EBINIT defensive affinity for 250 units. DRAWENP renders it through the same twelve-value defense-attribute vocabulary as item_defense_element; CALCBTPARAM, BTRTN, and route scripts consume it during battle resolution.
OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.
Record tables
It is a field of the table unit, as unit.id.defense_element.
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 | 250 | 0 |
$1$EBINIT | 0 | 7 | 0 |
DRAWENP | 0 | 0 | 2 |
RTN_M051 | 0 | 0 | 2 |
RTN_M052 | 0 | 0 | 2 |
BTRTN | 0 | 0 | 1 |
CALCBTPARAM | 0 | 0 | 1 |
INFOEN | 0 | 0 | 1 |
RTN_M018 | 0 | 0 | 1 |
RTN_M053 | 0 | 0 | 1 |
SETMVWORK | 0 | 0 | 1 |