create_chest
Create a chest event on a map that gives items on first interaction and displays an 'already opened' message on subsequent interactions using self switches.
Instructions
HIGH LEVEL: Create a chest event on a map. Produces a 2-page event: Page 1 gives items and activates Self Switch A, Page 2 shows "already opened" when Self Switch A is ON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mapId | Yes | The map ID | |
| x | Yes | X position | |
| y | Yes | Y position | |
| items | Yes | Array of items to give: {type: "item"|"weapon"|"armor", id: number, amount: number} | |
| characterName | No | Chest sprite filename (default "Chest") | |
| characterIndex | No | Chest sprite index (default 0) |