FF7/WorldMap Module/Script/Opcodes/318
From Final Fantasy Inside
< FF7 | WorldMap Module | Script | Opcodes
Revision as of 22:39, 2 February 2019 by my_wiki>Codemann8 (Changing second variable to better define it's usage)
- 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.