- Opcode: 0x06F
- Short name: AASK
- Long name: AAsk
Argument
none
Stack
Message Channel
Field message ID
Line of first option
Line of last option
Line of default option
Line of cancel option
X position of window
Y Position of window
AASK
Description
Pops eight values (message channel, field message ID, first-option line, last-option line, default-option line, cancel-option line, window X, window Y) and opens an auto-sized field message window on that channel with a selectable cursor over the given range of lines. It is blocking: it yields (returns 1) while the window is open and the player is choosing, then writes the chosen line index into temp variable I[0] (+320) and closes (returns 3). The chosen index is the raw line number; retrieve it with PSHI_L 0. The window auto-sizes to the text (plus room for the cursor) and is clamped to the screen. This is the auto-sized counterpart to ASK.
PC handler: SCRIPT_AASK.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_AASK | 0x5296C0 | Field script opcode handler (verified IDA function) |