Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/60 MAPJUMP

1,159 bytes added, 02:15, 9 September 2006
no edit summary
* Opcode: '''0x60'''
* Short name: '''MAPJUMP'''
* Long name: Change Field

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x60
! width="80" | ''I''
! width="80" | ''X''
! width="80" | ''Y''
! width="80" | ''Z''
! width="40" | ''D''
|}

==== Arguments ====

* '''const UByte''' ''I'': [[FF7/Field/Field List|Field ID]] of the map to jump to.
* '''const Short''' ''X'': X-coordinate of the player on the next field.
* '''const Short''' ''Y'': Y-coordinate of the player on the next field.
* '''const Short''' ''Z'': Z-coordinate of the player on the next field.
* '''const UByte''' ''D'': Direction the character will be facing on the next field, in the standard game format.

==== Description ====

Switches fields to the one indicated by ''I'', and places the character at the coordinates and direction specified. This is an alternative to using a [[FF7/Field/3D Related|gateway]], and can complement their usage as it allows for more than 12 gateways by simulating their behaviour through a [[FF7/Field/Script/Opcodes/D0 LINE|LINE]] and MAPJUMP, when crossed.