object_type
Record table of Himegari Dungeon Meister, records 0 to 99, 15 fields.
OBINIT map object types keyed by type id: 1 to 46, and $1$OBINIT's 50 to 61 (the append's furniture and stored treasure). A stage places them in its object slots (stage_object's type_id). FIELD loads each placed type's sheet (FIELD@0x91ab), gates a trigger on the type's limits (FIELD@0x6beb-0x6f24) and acts by type (FIELD@0x5574-0x55f7): 1 to 4 are captured, 5 and 26 sealed, 6 and 36 teleport, 7 and 8 give an item, 10 to 14 are doors, 15 and 16 heal, 17 to 22, 24 and 25 harm, 28 deals a card; the rest have no action of their own. DRAWOBJ draws them.
The game builds it at boot. Record id is [object_type.id] in a data file, object_type[id] in OMS and Lua, and a field object_type.id.field.
The database lists it: Map objects.
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 global | Type | Refers to | In a data file |
|---|---|---|---|
nameobject_type_names | string[100] | — | yes: text the save's code page (932) can encode |
descriptionobject_type_descriptions | string[100] | — | yes: text the save's code page (932) can encode |
spriteobject_type_sprite_asset_ids | int[100] | a picture | yes: a whole number |
sprite_widthobject_type_sprite_widths | int[100] | — | yes: a whole number |
sprite_heightobject_type_sprite_heights | int[100] | — | yes: a whole number |
animation_framesobject_type_animation_frame_counts | int[100] | — | yes: a whole number |
sprite_state_row_modeobject_sprite_state_row_mode | int[100] | — | yes: a whole number |
glow_modeobject_type_available_glow_mode | int[100] | — | yes: a whole number |
interaction_classobject_type_interaction_class | int[100] | — | yes: a whole number |
use_limitobject_type_use_limit | int[100] | — | yes: a whole number |
required_story_flagobject_type_required_story_flag | int[100] | — | yes: a whole number |
allowed_unit_idsobject_type_allowed_unit_ids | int[100][3] | unit | yes: a row of 3 columns by name; write allowed_unit_ids.<column> = ... |
required_skill_idobject_type_required_skill_id | int[100] | skill | yes: a whole number |
immunity_skill_idobject_type_immunity_skill_id | int[100] | skill | yes: a whole number |
resource_deltasobject_type_turn_resource_deltas | int[100][3] | — | yes: a row of 3 columns by name; write resource_deltas.<column> = ... |