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

From Final Fantasy Inside
Jump to navigation Jump to search
my_wiki>Codemann8
(Providing further details on Field Jumps)
my_wiki>Codemann8
(Changing second variable to better define it's usage)
Line 11: Line 11:
 
|-
 
|-
 
| Stack
 
| Stack
| Field
+
| Field Id?
 
| Related to the WM* fields
 
| Related to the WM* fields
 
|-
 
|-
 
| Stack
 
| Stack
| Variant
+
| Script Id?
| Alternate destination?
+
| Alternate scenario? Or Script to execute?
 
|}
 
|}
  
 
==== Notes ====
 
==== 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.
+
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/Script field is often 0, but sometimes it is 1, which indicates an alternate scenario to execute (for instance, the Chocobo Farm can be entered from the bottom or from the side).  There must be a script somewhere that also defines these alternate scenarios.  I suspect the field mapping and alternate scripts are defined in the WM*.DAT files somewhere.

Revision as of 22:39, 2 February 2019

  • Opcode: 0x318
  • Name: enter field scene
  • Two-word opcode: No

Parameters

Location Name Description
Stack Field Id? Related to the WM* fields
Stack Script Id? Alternate scenario? Or Script to execute?

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/Script field is often 0, but sometimes it is 1, which indicates an alternate scenario to execute (for instance, the Chocobo Farm can be entered from the bottom or from the side). There must be a script somewhere that also defines these alternate scenarios. I suspect the field mapping and alternate scripts are defined in the WM*.DAT files somewhere.