Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

terrain

Record table of Himegari Dungeon Meister, records 0 to 29, 7 fields.

LAINIT terrain records keyed by terrain id: 1 to 19 written, with 5 and 6 left blank; $1$LAINIT writes none. A stage's map is a grid of terrain ids: MPINIT's stage_terrain_atlas (and $1$MPINIT's rows from grid row 1601), which FIELD copies into the saved current_stage_terrain_grid for the stage's rectangle on a fresh entry (FIELD@0x2e61). Tile (x, y) is cell (2x, 2y); the odd cells are the joins between tiles. DRAWMAP draws a tile from its terrain's layout class, area fill and texture slot (DRAWMAP@0x1d0-0x36a); CALCBTPARAM adds its combat deltas for a unit standing on it (CALCBTPARAM@0x570-0x687); MVSEEK and FIELD refuse it to a unit without its required skill. The six 部屋 and the two 通路 differ only in their tiles.

The game builds it at boot. Record id is [terrain.id] in a data file, terrain[id] in OMS and Lua, and a field terrain.id.field.

The database lists it: Terrains.

Fields

Each field is a global, one cell per record, named under the field. The last column is what a data file may write to it, as the base mod himegari-base’s shape says.

Field and its globalTypeRefers toIn a data file
nameterrain_type_namesstring[30]—yes: text the save's code page (932) can encode
effect_descriptionterrain_effect_descriptionsstring[30]—yes: text the save's code page (932) can encode
texture_slotterrain_texture_slot_indicesint[30]—yes: a whole number
area_fillterrain_area_fill_flagsint[30]—yes: a whole number
layout_classterrain_layout_classesint[30]—yes: a whole number
combat_stat_deltasterrain_combat_stat_deltasint[30][10]—yes: a row of 10 columns by name; write combat_stat_deltas.<column> = ...
required_skill_idterrain_required_skill_idsint[30]skillyes: a whole number