Pokémon Mystery Dungeon: Red Rescue Team/Scripting

From Data Crystal
< Pokémon Mystery Dungeon: Red Rescue Team
Revision as of 11:00, 10 April 2016 by Crocodile91 (talk | contribs) (→‎01: location list moved in notes page)
Jump to navigation Jump to search

Much of the game uses it's own specific scripts to move along the plot and have characters interact.

Scripts come in 16 byte (0x10) intervals. The first two bytes are the command, and the rest are the arguments. The last four bytes in a statement are usually reserved for a pointer if needed.

Commands

Note: All parameters for commands are in little endian format.

01

Hmmm...
To do:
{{{1}}}

The 01 Command fades out the current screen, and warps the player to a new location.

Format: 01 00 XX XX YY YY 00 00 00 00 00 00 00 00 00 00
X = Time to fade out
Y = Place to warp to

For a list of locations avaible, refer to the Location ID List in notes page.

02

The 02 command warps the player directly into a dungeon

Format: 02 00 XX XX YY YY 00 00 00 00 00 00 00 00 00 00
X = Time to fade out
Y = Dungeon ID

03

The 03 command warps the player directly to the friend area map

Format: 03 00 XX XX YY YY YY YY 00 00 00 00 00 00 00 00
X = Time to fade out
Y = Unknown; Command only works if set to zero or one.

04

The 04 command is similar to the 02 command. It warps the player into a dungeon, but plays a map walking animation first.

Format: 04 00 XX XX YY YY 00 00 00 00 00 00 00 00 00 00
X = Time to fade out
Y = Dungeon ID [00 - 2C]

05

Hmmm...
To do:
{{{1}}}

Displays dialogue that asks if it is OK to enter the dungeon with the following rules.

Format: 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00