FF7/WorldMap Module/Script/Opcodes/318

From Final Fantasy Inside
< FF7‎ | WorldMap Module‎ | Script‎ | Opcodes
Revision as of 22:15, 2 February 2019 by my_wiki>Codemann8 (Providing further details on Field Jumps)
  • Opcode: 0x318
  • Name: enter field scene
  • Two-word opcode: No

Parameters

Location Name Description
Stack Field Related to the WM* fields
Stack Variant Alternate destination?

Notes

Transitions to the field module. The Field parameter seems to be the Field Id of the WM* field in which is used to exit fields and return to the world map.. There must be logic or a table somewhere that references the appropriate field map that it should jump to. The Variant field is often 0, but sometimes it is 1, which indicates an alternate coordinate to drop the player (for instance, the Chocobo Farm can be entered from the bottom or from the side). There must be logic somewhere that also defines these alternate coordinates. I suspect the field mapping and alternate coordinates are defined in the WM*.DAT files somewhere.