Skip to main content

Character target for hit points and damage

ScriptCharacterTarget · signed byte, operand of Change hit points and Damage characters

Scripts · Virtual machine

This operand chooses which party member a hit-point change or damage applies to. One value selects the whole party; any other value is used as a single party slot.1

The range of valid slot values is not established. Other instructions can use the same byte value with a different meaning.

typedef enum ScriptCharacterTarget {
SCRIPT_CHARACTER_ALL = -1 /* Byte 0xff: apply the operation to all six character slots. */
} ScriptCharacterTarget;

Sources​

Locations refer to the game executable reference.

Footnotes​

  1. Change hit points handler and damage characters handler. ↩