If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Mother 3/Gift box table: Difference between revisions
< Mother 3
Jump to navigation
Jump to search
Lorenzooone (talk | contribs) |
Lorenzooone (talk | contribs) |
||
Line 9: | Line 9: | ||
}} | }} | ||
==Table overview== | ==Table overview== | ||
This table contains | This table contains 16 bytes entries for every gift in the game.<br> | ||
It has | It has 9 unused bytes, some of them have data.<br> | ||
Gifts are always placed on the bottom right corner of tiles.<br> | Gifts are always placed on the bottom right corner of tiles.<br> | ||
Do note that changing 02 and 03 will change where the gift's sprite is, but not its hitbox location.<br> | Do note that changing 02 and 03 will change where the gift's sprite is, but not its hitbox location.<br> | ||
Line 19: | Line 19: | ||
*[04]=Hex value of the item in the gift box.<br> | *[04]=Hex value of the item in the gift box.<br> | ||
*[05]=Changing this from 00 will make the game not show the "X got an item." message.<br> | *[05]=Changing this from 00 will make the game not show the "X got an item." message.<br> | ||
*[06-07]=Dummy | *[06-07]=Dummy bytes.<br> | ||
*[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.<br> | *[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.<br> | ||
*[09-0B]=Dummy | *[09-0B]=Dummy bytes.<br> | ||
*[0C]=Doesn't do anything, but is set for every gift box.(?) (Always set to 01 or 03)<br> | *[0C]=Doesn't do anything, but is set for every gift box.(?) (Always set to 01 or 03)<br> | ||
*[0D]=Dummy | *[0D]=Dummy byte.<br> | ||
*[0E]=Doesn't do anything, but is set for every gift box.(?) (Always set to 10, 30 or 40)<br> | *[0E]=Doesn't do anything, but is set for every gift box.(?) (Always set to 10, 30 or 40)<br> | ||
*[0F]=Dummy | *[0F]=Dummy byte, when changed doesn't do anything, but it's set for some gift in unused maps.(If set=01)<br> |
Revision as of 05:41, 7 April 2016
Gift Box Table | |
Game | MOTHER 3 |
Start Address | 0x1165C10 |
End Address | 0x1169C10 |
# of Entries | 1024 (0x400) |
Entry Length | 4 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 9 unused bytes, some of them have data.
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.
Table Structure
- [00]-[01]= Map index, since map index hexs go over FF, 02 contains the value that is over FF. Swapping them will give the correct index, so if 01= 5E and 02=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]=Dummy bytes.
- [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]=Doesn't do anything, but is set for every gift box.(?) (Always set to 01 or 03)
- [0D]=Dummy byte.
- [0E]=Doesn't do anything, but is set for every gift box.(?) (Always set to 10, 30 or 40)
- [0F]=Dummy byte, when changed doesn't do anything, but it's set for some gift in unused maps.(If set=01)