Mother 3/Gift box table: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{Infobox table|name=Gift Box Table
{{subpage|game=MOTHER 3:ROM map}}
{{Infobox table
|name=Gift Box Table
|game=MOTHER 3
|game=MOTHER 3
|loc=ROM
|loc=ROM

Revision as of 22:37, 28 June 2016

This is a sub-page of Mother 3.

Gift Box Table
Game MOTHER 3
Start Address 0x1165C10
End Address 0x1169C10
# of Entries 1024 (0x400)
Entry Length 16 bytes
Total Length 16384 bytes (0x4000)
Back to the ROM map

Table overview

This table contains 16 bytes entries for every gift in the game.
It has 4 unused bytes.
Gifts are always placed on the bottom right corner of tiles.
Do note that changing 02 and 03 will change where the gift's sprite is, but not its hitbox location.
0C to 0F are used for the gift box that is next in the table.

Table Structure

  • [00]-[01]= Map index, since map index hexs go over FF, 01 contains the value that is over FF. Swapping them will give the correct index, so if 00= 5E and 01=03, the map will be 035E.
  • [02]=The gift box's sprite's X tileset coordinate. It goes from left (00) to right.
  • [03]=The gift box's sprite's Y tileset coordinate. It goes from top (00) to bottom.
  • [04]=Hex value of the item in the gift box.
  • [05]=Changing this from 00 will make the game not show the "X got an item." message.
  • [06-07]=How many DP a gift box will give. For example, if 06 is FF and 07 is 10, the box will give 10FF DP. The maximum value is 65535, FFFF.
  • [08]=Unique identifier of the gift box, it's used to check if a box has already been opened, this way an opened box during Flint's Chapter will remain opened during Duster's one because they have the same identifier. 83 is the exception, it's the Wess's Thunder Bomb's gift box.
  • [09-0B]=Dummy bytes.
  • [0C]=It has different outcomes based on what are the two hex values of the byte. 21 must be examined as 2 and 1. If the first value has an even hex value, the gift will display as normal, if it's odd the gift box won't be displayed and it will access a weird moving entity debug mode where the game slows down (Not FPS, the game). It will write various values to the RAM if the gift is collected (the gift can't be seen, but it's still there). If the first value is greater than 8 (included), the box will give DP when interacted with. The second value will determine the box's color: if it's 0 or 1, it will be red, if it's 2 it will blue, but the text won't be printed, if it's 3 the color will be blue and it will work as normal, if is 4 or 5 it will glitch all boxes and they won't display sometimes, and lastly if it's greater than 6 (included), it will access the strange debug mode from before.
  • [0D]=Dummy byte, the second half of the byte must be set to 0, otherwise you won't be able to interact with the gift box.
  • [0E-0F]=The first half of both of these values will determine how many items a box will give, for example, if 0E is 10 and 0F is 20, it will give hex 21, or 33, of one item. The maximum number of items a box can give is 127, or 7F.