Difference between revisions of "FF7/WorldMap Module/Script/Opcodes/318"

From Final Fantasy Inside
Jump to navigation Jump to search
my_wiki>BukTop
m (2 revisions imported)
my_wiki>Codemann8
(Providing further details on Field Jumps)
Line 11: Line 11:
 
|-
 
|-
 
| Stack
 
| Stack
| Unknown
+
| Field
| Unknown
+
| Related to the WM* fields
 
|-
 
|-
 
| Stack
 
| Stack
| Unknown
+
| Variant
| Unknown
+
| Alternate destination?
 
|}
 
|}
  
 
==== Notes ====
 
==== Notes ====
  
Transitions to the field module. Parameters are combined somehow to form an offset into the table contained in [[FF7/WorldMap Module/Script/Field TBL|field.tbl]].
+
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.

Revision as of 22:15, 2 February 2019

  • 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.