The current URL is datacrystal.tcrf.net.
Pokémon Mystery Dungeon: Red Rescue Team/Scripting: Difference between revisions
Crocodile91 (talk | contribs) (→01: location list moved in notes page) |
Crocodile91 (talk | contribs) (improvements) |
||
Line 1: | Line 1: | ||
Much of the game uses it's own specific scripts to move along the plot and have characters interact. | Much of the game uses it's own specific scripts to move along the plot and have characters interact. | ||
Every script command is 16 byte (0x10) long. The first two bytes are the command identifier, and the rest are the arguments. The last four bytes in a statement are usually reserved for a pointer if needed. | |||
Command identifier, argument, and pointer are in little-endian form. | |||
==01== | Below are described the known script commands: | ||
==[01 00] Warp To Location== | |||
The 01 Command fades out the current screen, and warps the player to a new location. | The 01 Command fades out the current screen, and warps the player to a new location. | ||
<pre> | <pre> | ||
Line 16: | Line 17: | ||
For a list of locations avaible, refer to the Location ID List in [[Pokémon Mystery Dungeon: Red Rescue Team:Notes#Location_ID_List|notes page]]. | For a list of locations avaible, refer to the Location ID List in [[Pokémon Mystery Dungeon: Red Rescue Team:Notes#Location_ID_List|notes page]]. | ||
==02== | ==[02 00] Warp To Dungeon== | ||
The 02 command warps the player directly into a dungeon | The 02 command warps the player directly into a dungeon. | ||
<pre> | <pre> | ||
Format: 02 00 XX XX YY YY 00 00 00 00 00 00 00 00 00 00 | Format: 02 00 XX XX YY YY 00 00 00 00 00 00 00 00 00 00 | ||
Line 24: | Line 25: | ||
</pre> | </pre> | ||
==03== | ==[03 00] Warp To Friend Area Map== | ||
The 03 command warps the player directly to the friend area map | The 03 command warps the player directly to the friend area map. | ||
<pre> | <pre> | ||
Format: 03 00 XX XX YY YY YY YY 00 00 00 00 00 00 00 00 | Format: 03 00 XX XX YY YY YY YY 00 00 00 00 00 00 00 00 | ||
Line 32: | Line 33: | ||
</pre> | </pre> | ||
==04== | ==[04 00] Warp To Dungeon With Map Walking Animation== | ||
The 04 command is similar to the 02 command. It warps the player into a dungeon, but plays a map walking animation first. | The 04 command is similar to the 02 command. It warps the player into a dungeon, but plays a map walking animation first. | ||
<pre> | <pre> | ||
Line 40: | Line 41: | ||
</pre> | </pre> | ||
==05== | ==[05 00] Dungeon Rules Entering Confirm== | ||
{{todo|text=Are there other accessible rules besides saving?}} | {{todo|text=Are there other accessible rules besides saving?}} | ||
Displays dialogue that asks if it is OK to enter the dungeon with the following rules. | Displays dialogue that asks if it is OK to enter the dungeon with the following rules. |
Revision as of 16:19, 10 April 2016
Much of the game uses it's own specific scripts to move along the plot and have characters interact.
Every script command is 16 byte (0x10) long. The first two bytes are the command identifier, and the rest are the arguments. The last four bytes in a statement are usually reserved for a pointer if needed.
Command identifier, argument, and pointer are in little-endian form.
Below are described the known script commands:
[01 00] Warp To Location
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 00] Warp To Dungeon
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 00] Warp To Friend Area Map
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 00] Warp To Dungeon With Map Walking Animation
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 00] Dungeon Rules Entering Confirm
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