Difference between revisions of "FF7/Field/Script/Opcodes/60 MAPJUMP"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
my_wiki>Synergy Blades
m (Description)
Line 23: Line 23:
 
==== Description ====
 
==== 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.
+
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]] which, when crossed, executes a MAPJUMP.

Revision as of 02:16, 9 September 2006

  • Opcode: 0x60
  • Short name: MAPJUMP
  • Long name: Change Field

Memory layout

0x60 I X Y Z D

Arguments

  • const UByte I: 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 gateway, and can complement their usage as it allows for more than 12 gateways by simulating their behaviour through a LINE which, when crossed, executes a MAPJUMP.