Difference between revisions of "FF7/Field/Script/Opcodes/20 MINIGAME"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m (Description)
m (4 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
 
! width="40" | 0x20
 
! width="40" | 0x20
! width="40" | ''M''
+
! width="80" | ''M''
! width="40" | ''X''
+
! width="80" | ''X''
! width="40" | ''Y''
+
! width="80" | ''Y''
! width="40" | ''Z''
+
! width="80" | ''Z''
 
! width="40" | ''G''
 
! width="40" | ''G''
 
! width="40" | ''T''
 
! width="40" | ''T''
Line 22: Line 22:
 
* '''const UByte''' ''G'': Game-specific value.
 
* '''const UByte''' ''G'': Game-specific value.
 
* '''const UByte''' ''T'': Minigame type; see table below.
 
* '''const UByte''' ''T'': Minigame type; see table below.
 +
 +
==== 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 is 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.
  
 
==== Minigame IDs ====
 
==== Minigame IDs ====
Line 51: Line 54:
 
|-
 
|-
 
|}
 
|}
 
==== 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 is 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.
 

Latest revision as of 05:16, 23 May 2019

  • Opcode: 0x20
  • Short name: MINIGAME
  • Long name: Minigame Start

Memory layout

0x20 M X Y Z G 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.

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

Minigame IDs

ID Minigame
0 Bike
1 Chocobo Races
2 Snowboard (Icicle version; no music or menu)
3 Fort Condor
4 Submarine
5 Speed Square
6 Snowboard (Gold Saucer version; music plays and the Retry menu can be accessed)