• Opcode: 0x049
  • Short name: MESVAR
  • Long name: Set Message Variable

Argument

none

Stack

Variable number

Value

MESVAR

Description

Sets the value of a message variable. Message variables are used in texts. In the Deling field editor, message variables can be placed in text using {Var0}, {Var1}, etc. The handler pops the value (top of stack) and the variable number (masked to 0–7, so there are eight slots), then stores the value into the text-variable table for later substitution. Returns 2 (done + continue).

PC handler: SCRIPT_MESVAR.

Function addresses

Function Address Description
SCRIPT_MESVAR 0x528D40 Field script opcode handler (verified IDA function)