stage_enemy_random_selection_weight
Global of Himegari Dungeon Meister: the cell G:0xe77f3, of type int[30], data-table, values {0,1,2,3,10,20,30}; zero means spawn directly.
Weight for stage-enemy alternatives. FIELD groups eligible nonzero-weight slots by their stage_enemy_spawn_object_slot, sums the weights, makes a weighted random choice within each eligible group, and directly materializes zero-weight slots.
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 0xe777b.
Record tables
It is a field of the table stage_enemy, as stage_enemy.id.random_selection_weight.
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 |
|---|---|---|---|
STINIT | 0 | 705 | 1 |
$1$STINIT | 0 | 8 | 1 |
FIELD | 0 | 0 | 3 |