build_show_text
Build a Show Text event-command sequence for RPG Maker MZ with configurable face, window, and name-box speaker options. Returns commands and warnings for lines exceeding character limits.
Instructions
Build a Show Text event-command sequence (101 setup + one 401 line per text line) for insertion via insert_event_commands. Supports face image (from list_assets("faces")), window background/position, and the MZ name-box speaker. MZ does NOT word-wrap: keep each line under ~55 chars (~38 with a face) or it is cut off at the window edge (warned, never blocked). Read-only: returns { commands, warnings? }, writes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Message lines (one entry per visual line) | |
| indent | No | Indentation level (default 0) | |
| faceName | No | Face image basename ("" = none, default) | |
| position | No | Window position (default bottom) | |
| faceIndex | No | Face index 0–7 in the sheet (default 0) | |
| background | No | Window background (default window) | |
| speakerName | No | MZ name-box speaker name (default "") |