current_spirit
Global of Himegari Dungeon Meister: the cell G:0x20530, of type int, counter, values 0..maximum_spirit.
Current 精気 (spirit/essence) resource. TRAIN rejects a selected action when adding its negative TRINIT spirit delta would fall below zero, deducts the cost on execution, and passes the updated value to DRAWCHP. Field and scene reward paths update the same resource and clamp it to maximum_spirit.
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 0x20534, 0x155e86.
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 |
|---|---|---|---|
SC1200 | 14 | 14 | 0 |
SC1210 | 10 | 10 | 0 |
SALLY | 10 | 9 | 0 |
FIELD | 7 | 5 | 0 |
SC0050 | 6 | 6 | 0 |
DEBUGADV2 | 5 | 5 | 0 |
SC0080 | 4 | 4 | 0 |
SC0820 | 4 | 4 | 0 |
TRAIN | 4 | 3 | 0 |
READY | 3 | 3 | 0 |
SC1560 | 3 | 3 | 0 |
SC0010 | 2 | 2 | 0 |
SC0030 | 2 | 2 | 0 |
SC0040 | 2 | 2 | 0 |
SC0060 | 2 | 2 | 0 |
SC0070 | 2 | 2 | 0 |
SC0090 | 2 | 2 | 0 |
SC0400 | 2 | 2 | 0 |
SC0790 | 2 | 2 | 0 |
USEITEM | 2 | 2 | 0 |
IMPROVE | 2 | 1 | 0 |
DRAWCHP | 2 | 0 | 0 |
DEBUGMAP | 0 | 1 | 0 |
DEBUGMAP2 | 0 | 1 | 0 |
DEBUGMAP3 | 0 | 1 | 0 |
MAGIC | 1 | 0 | 0 |