Changes
Jump to navigation
Jump to search
m
no edit summary
* Opcode: '''0x20'''
* Short name: '''MINIGAME'''
* Long name: Minigame Start
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x20
! width="40" | ''M''
! width="40" | ''X''
! width="40" | ''Y''
! width="40" | ''Z''
! width="40" | ''G''
! width="40" | ''T''
|}
==== Arguments ====
* '''const UShort''' ''M'': Map ID to return to after game has completed.
* '''const Short''' ''X'': X-coordinate of the player after game has completed.
* '''const Short''' ''Y'': Y-coordinate of the player after game has completed.
* '''const Short''' ''Z'': Z-coordinate of the player after game has completed.
* '''const UByte''' ''G'': Game-specific value.
* '''const UByte''' ''T'': Minigame type; see table below.
==== Minigame IDs ====
{| 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="400" | Minigame
|-
| align="center" | 0
| Bike
|-
| align="center" | 1
| Chocobo Races
|-
| align="center" | 2
| Snowboard (Icicle version; no music or menu)
|-
| align="center" | 3
| Fort Condor
|-
| align="center" | 4
| Submarine
|-
| align="center" | 5
| Speed Square
|-
| align="center" | 6
| Snowboard (Gold Saucer version; music plays and the Retry menu can be accessed)
|-
|}
==== Description ====
Begins the minigame as defined by the final byte. Once the minigame has completed, the map ID given as the argument is loaded and the playable character moved to the XYZ co-ordinates also specified. If an invalid minigame ID is passed as the final argument, the return map is loaded immediately.
* Short name: '''MINIGAME'''
* Long name: Minigame Start
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x20
! width="40" | ''M''
! width="40" | ''X''
! width="40" | ''Y''
! width="40" | ''Z''
! width="40" | ''G''
! width="40" | ''T''
|}
==== Arguments ====
* '''const UShort''' ''M'': Map ID to return to after game has completed.
* '''const Short''' ''X'': X-coordinate of the player after game has completed.
* '''const Short''' ''Y'': Y-coordinate of the player after game has completed.
* '''const Short''' ''Z'': Z-coordinate of the player after game has completed.
* '''const UByte''' ''G'': Game-specific value.
* '''const UByte''' ''T'': Minigame type; see table below.
==== Minigame IDs ====
{| 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="400" | Minigame
|-
| align="center" | 0
| Bike
|-
| align="center" | 1
| Chocobo Races
|-
| align="center" | 2
| Snowboard (Icicle version; no music or menu)
|-
| align="center" | 3
| Fort Condor
|-
| align="center" | 4
| Submarine
|-
| align="center" | 5
| Speed Square
|-
| align="center" | 6
| Snowboard (Gold Saucer version; music plays and the Retry menu can be accessed)
|-
|}
==== Description ====
Begins the minigame as defined by the final byte. Once the minigame has completed, the map ID given as the argument is loaded and the playable character moved to the XYZ co-ordinates also specified. If an invalid minigame ID is passed as the final argument, the return map is loaded immediately.