Add event commands
add_event_commandInsert event commands into an event page's command list at a specified position or before the terminating entry.
Instructions
Insert commands into an event page's command list without resending the whole event. Commands are inserted before the page's terminating {code: 0} entry (or at index if given). Multi-line constructs work naturally, e.g. Show Text is one code-101 command followed by code-401 commands. See event_command_reference for codes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Position in the list to insert at; defaults to the end (before the terminator) | |
| mapId | Yes | ||
| eventId | Yes | ||
| commands | Yes | Commands to insert, in order | |
| pageIndex | No | Which event page (0-based) |