object_type
Record table of Kamidori Alchemy Meister, records 0 to 99, 19 fields.
OBINIT map object types keyed by type id, 1 to 72 named, and the appends' (docs/kamidori-data-tables.md, Map objects). A stage places them in its object slots (stage_object's type_id); CHECKOBJ tests who may use one, SETOBJ and DRAWOBJ draw it, and FIELD applies what it does.
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 kamidori-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][2] | — | yes: a row of 2 columns by number, 0 to 1; write description.<number> = ... |
sprite_asset_idobject_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 |
state_modeobject_type_state_mode | int[100] | — | yes: a whole number |
available_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 |
use_count_resets_on_entryobject_type_use_count_resets_on_entry | int[100] | — | yes: a whole number |
player_onlyobject_type_player_only | 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 number, 0 to 2; write allowed_unit_ids.<number> = ... |
required_skill_idobject_type_required_skill_id | int[100] | skill | yes: a whole number |
immunity_skill_idsobject_type_immunity_skill_ids | int[100][3] | skill | yes: a row of 3 columns by number, 0 to 2; write immunity_skill_ids.<number> = ... |
battle_stat_deltasobject_type_battle_stat_deltas | int[100][7] | — | yes: a row of 7 columns by name; write battle_stat_deltas.<column> = ... |
turn_resource_deltasobject_type_turn_resource_deltas | int[100][3] | — | yes: a row of 3 columns by name; write turn_resource_deltas.<column> = ... |
action_command_idobject_type_action_command_id | int[100] | — | yes: a whole number |