• Opcode: 0x023
  • Short name: JUMP
  • Long name: Jump to location

Argument

Walkmesh triangle ID.

Stack

XCoord

YCoord

Speed in frames?

JUMP

Description

Makes this entity move from its current position to the given coordinates along a parabolic arc. Three values are popped (top = jump duration in frames, then YCoord, then XCoord); XCoord/YCoord are shifted left by 12 into fixed-point and written as the jump target (+436 X, +440 Y), the duration is stored at +472, and the Argument walkmesh triangle ID at +508. The handler sets the entity’s motion state to a “jumping” mode (+572 = 2) and blocks (returns 1) each frame until the arc completes, then returns 3. So the last parameter is confirmed to be the jump duration/speed. JUMP is only used in three places in the entire game: twice in Dollet when the two Galbadian soldiers jump off the bridge, and once in Caraway’s mansion when Irvine jumps from the chair over the desk.

PC handler: SCRIPT_JUMP.

Function addresses

Function Address Description
SCRIPT_JUMP 0x5256A0 Field script opcode handler (verified IDA function)