target_entity_index
Global of Himegari Dungeon Meister: the cell G:0x66714, of type int, index-pointer, values runtime entity row index 0..49.
Selected target/opponent entity. RTN_M051/052 choose and write an active foreign-faction target; FIELD pairs it with acting_entity_index for movement presentation and battle setup.
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.
It depends on 0x4e021, 0x522ed, 0x5231f, 0x52351, 0xb8d86.
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 |
|---|---|---|---|
SCJUMP | 1757 | 0 | 0 |
$1$SCJUMP | 46 | 0 | 0 |
FIELD | 24 | 5 | 0 |
BTL | 8 | 0 | 0 |
RTN_M052 | 6 | 1 | 0 |
RTN_M061 | 5 | 1 | 0 |
CALCBTPARAM | 5 | 0 | 0 |
RTN_M051 | 4 | 1 | 0 |
SELACT | 5 | 0 | 0 |
SALLY | 2 | 0 | 0 |
BTRTN | 1 | 0 | 0 |
DEBUGBTL | 0 | 1 | 0 |
RTN_M053 | 0 | 1 | 0 |