create_npc
Create an NPC with dialogue on a map. The event shows dialogue on first interaction and changes to an 'already talked' message after talking.
Instructions
HIGH LEVEL: Create an NPC with dialogue on a map. Produces a 2-page event: Page 1 has dialogue triggered by Action Button, Page 2 shows "already talked" 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 | |
| name | Yes | NPC name | |
| dialogues | Yes | Array of dialogue strings. Each becomes a Show Text command. | |
| characterName | No | Character sprite filename | |
| characterIndex | No | Character sprite index (0-7) |