FF7/Field/Script/Opcodes/A0 PC

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 05:18, 23 May 2019 by BukTop (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0xA0
  • Short name: PC
  • Long name: Playable Character

Memory layout

0xA0 C

Arguments

  • const UByte C: Character ID.

Description

Defines the entity in which this script resides as a playable character. The entity then becomes associated with the character ID C, including the entity's visible object, animation set, and scripts. For example, creating a visible entity and inserting PC(0) into its initialisation script will associate this entity with character ID 0.