• Opcode: 0x047
  • Short name: MES
  • Long name: Display Message

Argument

none

Stack

Message channel

Message ID

MES

Description

Popup a message window without waiting. This is usually used on lines to popup text when the player crosses a certain point on a screen. The size of the message window can be set with WINSIZE. The handler pops the message ID (top) and the window/channel number beneath it, resolves the text from the field MSD, opens the window on that channel and marks it busy, then returns 3 immediately (the script continues while the window stays up). Use MESSYNC to wait for it later. Returns 5 if the channel is already busy.

PC handler: SCRIPT_MES.

Function addresses

Function Address Description
SCRIPT_MES 0x528F20 Field script opcode handler (verified IDA function)