Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/49 MENU

2,005 bytes added, 20:33, 14 September 2006
no edit summary
* Opcode: '''0x49'''
* Short name: '''MENU'''
* Long name: Menu

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x49
! width="40" | ''B''
! width="40" | ''T''
! width="40" | ''E''
|}

==== Arguments ====
* '''const UByte''' ''B'': Bank for parameter, or zero if ''P'' is specified as a literal value.
* '''const UByte''' ''T'': Type of menu, or special event.
* '''const UByte''' ''P'': Parameter to the menu, or address of parameter value, if ''B'' is non-zero.

==== Description ====

MENU has two uses. Its primary function is to display a menu or other special screen; these menus range from the character name entry screen, to a shop, and even the staff credit display. The type of display can be found in the first table below.

The other function is to provide a set of special events that would normally be accomplished through a set of opcodes, but are instead coded directly into a MENU call. These events are provided in the second table.

Some types of menu are erroneous or produce erratic behaviour, and were most likely used for testing. As such, they are not listed here.

==== Standard Menu Types ====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" width="40" | ID
! style="background:rgb(204,204,204)" width="200" | Menu Type
|-
| align="center" | 5
| FF7 Credits
|-
| align="center" | 6
| Character Name Entry
|-
| align="center" | 7
| Party Select
|-
| align="center" | 8
| Shop
|-
| align="center" | 9
| Main Menu
|-
| align="center" | E
| Save Screen
|-
|}

==== Special Event Types ====

{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! style="background:rgb(204,204,204)" width="40" | ID
! style="background:rgb(204,204,204)" width="350" | Event Type
|-
| align="center" | F
| Yuffie's Materia Steal (Remove All Materia)
|-
|}