Update database record
update_recordUpdate an RPG Maker MV database record: merge or replace fields while preserving the record's id based on its array position.
Instructions
Update a database record. By default the given fields are shallow-merged into the existing record; set merge=false to replace it entirely. The record's id always stays fixed to match its array position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id (1-based) | |
| data | Yes | Fields to set (or the complete record when merge=false) | |
| type | Yes | Which database to access (e.g. actors, items, skills, troops, commonEvents) | |
| merge | No | Merge into existing record (true) or replace (false) |