Save data structure (Generation III): Difference between revisions

m (→‎Section 1 - team / items: Corrected miscalculation. RS item pocket contains 20 items. With four bytes per item, that's 80 bytes, not 120.)
Line 458: Line 458:
| [[#Money|Money]]
| [[#Money|Money]]
|- style="background: #dddddd; text-align: center;"
|- style="background: #dddddd; text-align: center;"
| 0x0494
| 2
| 0x0494
| 2
| 0x0294
| 2
| [[#Coins|Coins]]
|- style="background: #eeeeee; text-align: center;"
| 0x0498
| 0x0498
| 200
| 200
Line 465: Line 473:
| 120
| 120
| [[#Item pockets|PC items]]
| [[#Item pockets|PC items]]
|- style="background: #eeeeee; text-align: center;"
|- style="background: #dddddd; text-align: center;"
| 0x0560
| 0x0560
| 80
| 80
Line 473: Line 481:
| 168
| 168
| [[#Item pockets|Item pocket]]
| [[#Item pockets|Item pocket]]
|- style="background: #dddddd; text-align: center;"
|- style="background: #eeeeee; text-align: center;"
| 0x05B0
| 0x05B0
| 80
| 80
Line 481: Line 489:
| 120
| 120
| [[#Item pockets|Key item pocket]]
| [[#Item pockets|Key item pocket]]
|- style="background: #eeeeee; text-align: center;"
|- style="background: #dddddd; text-align: center;"
| 0x0600
| 0x0600
| 64
| 64
Line 489: Line 497:
| 52
| 52
| [[#Item pockets|Ball item pocket]]
| [[#Item pockets|Ball item pocket]]
|- style="background: #dddddd; text-align: center;"
|- style="background: #eeeeee; text-align: center;"
| 0x0640
| 0x0640
| 256
| 256
Line 497: Line 505:
| 232
| 232
| [[#Item pockets|TM Case]]
| [[#Item pockets|TM Case]]
|- style="background: #eeeeee; text-align: center;"
|- style="background: #dddddd; text-align: center;"
| 0x0740
| 0x0740
| 184
| 184
Line 519: Line 527:
===Money===
===Money===
The amount of money held by the player. Must be XORed with the [[#Security key|security key]] to yield the true value.
The amount of money held by the player. Must be XORed with the [[#Security key|security key]] to yield the true value.
===Coins===
The number of coins in the [[Coin case]]. Like the amount of money, the value from the save file must be XORed with the [[#Security key|security key]] to yield the true value.


===Item pockets===
===Item pockets===
4

edits