entity_current_resources
Global of Himegari Dungeon Meister: the cell G:0x4e085, of type int[50][3], data-table, values nonnegative current HP/SP/FS values.
Per-runtime-entity current resources. DRAWCHP/DRAWENP render columns 0..2 against max-stat columns 11..13, skill/item resource deltas modify the same three columns, and movement search compares path cost with current_fs.
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.
Its columns are named: 0 current_hp, 1 current_sp, 2 current_fs. Lua and an event’s cell write a row’s column entity_current_resources[i].column.
It depends on 0x4e11b.
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 |
|---|---|---|---|
FIELD | 0 | 0 | 57 |
BTL | 0 | 0 | 48 |
CALCDMG | 0 | 0 | 31 |
USEMAGIC | 0 | 0 | 28 |
DRAWCHP | 0 | 0 | 12 |
SELACT | 0 | 0 | 8 |
USEITEM | 0 | 0 | 8 |
DRAWENP | 0 | 0 | 6 |
CHMENU | 0 | 0 | 4 |
CALCSCOPE | 0 | 0 | 3 |
DRAWVOL | 0 | 0 | 3 |
MAGIC | 0 | 0 | 3 |
RTN_M052 | 0 | 0 | 3 |
CALCREVISE | 0 | 0 | 2 |
REMOVECH | 0 | 0 | 2 |
RTN_M007 | 0 | 0 | 2 |
RTN_M010 | 0 | 0 | 2 |
RTN_M017 | 0 | 0 | 2 |
RTN_M061 | 0 | 0 | 2 |
EXILE | 0 | 0 | 1 |
RECOVER | 0 | 0 | 1 |
RTN_M002 | 0 | 0 | 1 |
RTN_M003 | 0 | 0 | 1 |
RTN_M004 | 0 | 0 | 1 |
RTN_M005 | 0 | 0 | 1 |
RTN_M006 | 0 | 0 | 1 |
RTN_M008 | 0 | 0 | 1 |
RTN_M009 | 0 | 0 | 1 |
RTN_M011 | 0 | 0 | 1 |
RTN_M012 | 0 | 0 | 1 |
RTN_M013 | 0 | 0 | 1 |
RTN_M014 | 0 | 0 | 1 |
RTN_M015 | 0 | 0 | 1 |
RTN_M016 | 0 | 0 | 1 |
RTN_M018 | 0 | 0 | 1 |
SALLY | 0 | 0 | 1 |
SETCH | 0 | 0 | 1 |
SETEN | 0 | 0 | 1 |