- Opcode: 0x106
- Short name: MESMODE
- Long name: Message Mode
Argument
none
Stack
Message Channel
Message Window Behavior
(color?)
MESMODE
Description
Sets all future messages sent to this channel to behave differently. Behaviors:
0: Regular message with opaque background window
1: Translucent window background
2: No window background
The last parameter controls the color of text displayed in messages. 0=black, 4096=white. Haven’t played around with it much.
The handler pops three values (channel, window behavior, color). The color is applied to the message layer, and the window-behavior value is internally remapped (0→opaque, 1→translucent, 2→no window) before being applied and cached per channel for subsequent messages.
PC handler: SCRIPT_MESMODE.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_MESMODE | 0x528D80 | Field script opcode handler (verified IDA function) |