Item data structure (Generation III): Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
Items are stored in a 44-byte structure in the GBA games.
Items are stored in a 44-byte structure in the GBA games.
{| {{bluetable|float: right;}}
{| {{bluetable|float: right;}}
|- style="background: #ccf;"
! Offset
! Offset
! Field
! Field
Line 25: Line 26:
| 4 bytes
| 4 bytes
|-
|-
|
| 24
|
|
|
|
Line 37: Line 38:
| 1 byte
| 1 byte
|-
|-
! ...
! 28
|
|
|}
|}


==Pocket==
==Pocket==
{| {{bluetable}}
{| {{bluetable}}
|-
|- style="background: #ccf;"
! Number
! Number
! Item type
! Item type
Line 66: Line 69:


{| {{bluetable}}
{| {{bluetable}}
|-
|- style="background: #ccf;"
! Type
! Type
! Description
! Description

Revision as of 09:36, 28 June 2006

Items are stored in a 44-byte structure in the GBA games.

Offset Field Size
0 Name ?
14 Index number 2 bytes
16 Price 2 bytes
18
20 Description 4 bytes
24
26 Pocket 1 byte
27 Type 1 byte
28

Pocket

Number Item type
1 Main pocket
2 Poké Ball
3 Berries
4 TMs and HMs
5 Key items

Type

For items other than Poké Balls, the type determines how the item can be used. With Poké Balls, the type indicates the Poké Ball type, and is one less than the index number.

Type Description
0 Mail
1 Items which can be used out-of-battle.
2 Items which must be used in a certain location; key items of this type can be assigned to select.
3 Only the Pokéblock case is of this type.
4 Items which cannot be used out-of-battle.