Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

Pokémon Mystery Dungeon: Red Rescue Team/Dungeons Floors Data/Main Data: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Created page with "{{Infobox table|name= |game=Pokémon Mystery Dungeon: Red Rescue Team |loc=ROM |start=0x04A9F74 |end=0x04B6047 |numentries=1763 |entrylength=28 bytes (0x1C) |totallength=49364...")
 
m (Infobox table name)
Line 1: Line 1:
{{Infobox table|name=
{{Infobox table|name=Floors Main Data
|game=Pokémon Mystery Dungeon: Red Rescue Team
|game=Pokémon Mystery Dungeon: Red Rescue Team
|loc=ROM
|loc=ROM

Revision as of 22:35, 27 December 2015

Floors Main Data
Game Pokémon Mystery Dungeon: Red Rescue Team
Start Address 0x04A9F74
End Address 0x04B6047
# of Entries 1763
Entry Length 28 bytes (0x1C)
Total Length 49364bytes (0xC0D4)
Back to the ROM map

The entries contain various type of data for dungeon floors.

Entry Structure

First Floor Layout Data

  • Length: 2 bytes
  • Offset within entry: 0x00-0x01
  • Range of values: Currentely Unknown

This value regulates the approximate layout to be generated for the floor, regulating things like the number of rooms and their size and disposition.

Terrain Tileset ID

  • Length: 1 byte
  • Offset within entry: 0x02
  • Range of values: 0-75 (0x00-0x4B)

Background Music ID

  • Length: 1 byte
  • Offset within entry: 0x03
  • Range of values: Currentely Unknown

Weather ID

  • Length: 1 byte
  • Offset within entry: 0x04
  • Range of values: 0-8 (0x0-0x8)
00: Clear
01: Sunny
02: Sandstorm
03: Cloudy
04: Rain
05: Hail
06: Fog
07: Snow
08: Random

Pokémon Density

  • Length: 1 byte
  • Offset within entry: 0x06
  • Range of values: 0-255 (0x00-0xFF)

Second Floor Layout Data

  • Length: 2 bytes
  • Offset within entry: 0x07-0x08
  • Range of values: Currentely Unknown

This value regulates additional layout details like the dead-ends, the water/magma/sky tiles, and trasure rooms.

Item Density

  • Length: 1 byte
  • Offset within entry: 0x15
  • Range of values: 0-255 (0x00-0xFF)

Trap Density

  • Length: 1 byte
  • Offset within entry: 0x16
  • Range of values: 0-255 (0x00-0xFF)

Floor Number?

  • Length: 1 byte
  • Offset within entry: 0x17
  • Range of values: Currentely Unknown

Seems to indicate the floor number, tough modifying it don't seem to affect anything.

Event Floor

  • Length: 1 byte
  • Offset within entry: 0x18
  • Range of values:

If different from zero, sets a prefabricated floor layout and/or shows a cutscene. Note that many cutscenes require specific animations that only few pokémon have implemented. To avoid game crashing, the appropriate pokémon must be present in the pokémon list set by the relative Floor Data ID Table entry.

Visibility

  • Length: 1 byte
  • Offset within entry: 0x22
  • Range of values: 0-2

Sets the range of visibility for the floor, making the player unable to see on the screen enemy Pokémon present outside the set range. This also limits the range of room-ranged moves when used outside rooms.

00: Full visibility
01: 1-tile visibility outside rooms, can't see outside room
02: 2-tiles visibility outside rooms, can't see outside room

Max POKé Found

  • Length: 1 byte
  • Offset within entry: 0x23
  • Range of values: 0-38 (0x00-0x26)

This regulates the max value of every pile of money found on the floor.

When the game generates a pile of POKé to be placed on the floor, it draws a random value from 1 to 100, which points to one of the 100 values below. If the value drawed is greater than the max POKé value multiplied by 40, it will halve the value ID (rounding up) and check again if it is greater, and repeating this until it gets a value smaller than the set maximum.

      4,     6,    10,    14,    22,    26,    34,    38,    46,    58
     62,    74,    82,    86,    94,   106,   118,   122,   134,   142
    146,   158,   166,   178,   194,   202,   206,   214,   218,   226
    254,   262,   274,   278,   298,   302,   314,   326,   334,   346
    358,   362,   382,   386,   394,   398,   422,   446,   454,   458
    466,   478,   482,   502,   514,   526,   538,   542,   554,   562
    566,   586,   614,   622,   626,   634,   662,   674,   694,   698
    706,   718,   734,   746,   758,   768,   778,   794,   802,   818
    838,   842,   862,   866,   878,   886,   898,   914,   922,   926
    934,   958,   974,   982,   998,  1000,  1100,  1300,  1500, 20000

Note that due to how the amout is calculated, it is useless to use values greater than 38 (0x26).

So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?