• Opcode: 0x145
  • Short name: DYING
  • Long name: unknown

Argument

none

Stack

none

Description

Resurrects dead characters, despite the name. Used when switching to Laguna’s party.

Takes no arguments. Iterates the three battle-party slots; for each occupied member whose CurrentHP is 0 it sets CurrentHP = 1 and clears the KO bit (status_1 & ~1) in SG_ARRAY_CHARA_DATA.

PC handler: SCRIPT_DYING.

Function addresses

Function Address Description
SCRIPT_DYING 0x5220B0 Field script opcode handler (verified IDA function)