get_database
Read full database tables from RPG Maker MZ for actors, classes, items, weapons, armors, skills, enemies, troops, states, and common events. Optionally provide an ID to return that single record or null if not found.
Instructions
Read a database table in full: actors, classes, items, weapons, armors, skills, enemies, troops, states, or common_events. Returns the raw 1-indexed array (slot 0 is null), or — with id — that single record, or null if no such record exists. These are full records: prefer list_names for an id→name index, or search_actors/search_items/search_skills to find records by name, and reach for this only when you need every field. Maps and tilesets are not here: use get_map_infos/get_map and get_tilesets/get_tile_flags. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Return just this record (null if missing); omitted = the whole table | |
| type | Yes | Which table to read: actors, classes, items, weapons, armors, skills, enemies, troops, states, or common_events. |