Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/C0 JUMP

14 bytes added, 15:26, 22 March 2007
m
Z -> I
! width="80" | ''X''
! width="80" | ''Y''
! width="80" | ''ZI''
! width="80" | ''H''
|}
* '''const Bit[4]''' ''B1'': Bank to retrieve X-coordinate, or zero if specifying ''X'' as a literal value.
* '''const Bit[4]''' ''B2'': Bank to retrieve Y-coordinate, or zero if specifying ''Y'' as a literal value.
* '''const Bit[4]''' ''B3'': Bank to retrieve Z-coordinatetriangle ID, or zero if specifying ''Z'' as a literal value.
* '''const Bit[4]''' ''B4'': Bank to retrieve jump height, or zero if specifying ''H'' as a literal value.
* '''const Short''' ''X'': X-coordinate of the target to jump to, or lower byte specifying address if ''B1'' is non-zero.
* '''const Short''' ''Y'': Y-coordinate of the target to jump to, or lower byte specifying address if ''B2'' is non-zero.
* '''const Short''' ''ZI'': Z-coordinate Triangle ID of the target to jump to, or lower byte specifying address if ''B3'' is non-zero.
* '''const UShort''' ''H'': Height of the jump. Must be non-zero if a literal value. Alternatively, lower byte specifies address if ''B4'' is non-zero.
==== Description ====
Causes the character to jump to the specified pointand triangle ID, with the jump curve peaking at a height which is increased by using a larger value for the '''H''' argument. In addition, the larger the number, the longer the jump will take to complete. A "normal" value is around 0x15, 0x01 is fast and instantaneous; the argument must not be zero or the game will crash. Whilst this is an unsigned two-byte number, a large value (beyond around 0x60) will not only cause a vast jump height, but also cause the screen to scroll erratically (the larger the number, the more erratic).
Neither animation nor sound is specified in this opcode. An animation is played by using an animation opcode such as [[FF7/Field/Script/Opcodes/A2 DFANM|DFANM]], and a [[FF7/Field/Script/Opcodes/F1 SOUND|SOUND]] played, before the jump.