Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XD::Pokemon
- 0x00: u16 species (cf PokemonInfo.h)
- 0x02: u16 itemHeld (ItemInfo.h)
- 0x04: u16 currentHP
- 0x06: u16 happiness
- 0x08: u16 locationCaught
- // 0x09 -- 0xd :: ??
- 0x0e: u8 levelMet
- 0x0f: u8 ballCaughtWith
- 0x10: u8 OTGender (00 male 01 female 02 genderless=none)
- 0x11: u8 currentLevel
- 0x12: u8 Contest Luster
- 0x13: u8 pkrsStatus
- 0x14: u8 marks (bitfield)
- 0x15: 0xff ?
- 0x16: u16 status (3 psn, 4 psn (toxic ?), 5 par, 6 brn, 7 frzn, 8 slp)
- 0x17: ?
- 0x18 -- 0x1b : ? (0x50)
- 0x1d: u8 pkmFlags
- bit 7: egg flag
- bit 6: special (second) ability flag. Pokémon XD's catchable Pkms have a 50% chance to have their special ability
- bit 5: invalidity flag. MUST **NOT** BE SET for the Pokémon to be considered as valid ("not empty")
- bit 4: "not tradable in game" flag
- bit 3: ?
- bit 2: "caught" flag
- 0x1e 0x1f : ??
- 0x20: u32 experience
- 0x24: u16 SID
- 0x26: u16 TID
- 0x28: u32 PID
- 0x2c -- 0x32 : ?? (0 on shadow pkm)
- 0x33: u8 encounterType
- 0x34 -- 0x37 : Version info (actual region, original region, original language)
- 0x38: GC::PokemonString OTName (10+1 chars = 22 bytes)
- 0x4e: GC::PokemonString name (10+1 chars)
- 0x64: pkm name backup
- 0x7a -- 0x7b: ??
- 0x7c: u16 specialRibbons
- 0x7e -- 0x7f: ??
- 0x80: moves[4]{u16 moveID, u8 basePP (?), u8 nbPPUps}
- 0x90: u16 stats[6]
- 0x9c: u16 EVs[6]
- 0xa8: u8 IVs[6]
- 0xae: u8 contestStats[6] (0 to 255)
- 0xb3: u8 contestAchievements[5]
- 0xb7: unused
- 0xb8 : u16 ??
- 0xba: shadow pkm id
- 0xbc -- 0xbf : ??? ????
- 0xc0 -- 0xc1 : unused ?
- 0xc2: party identify (lead = 00, 01 otherwise)
- Colosseum::Pokemon:
- pkm
- 0x00: u16 index
- 0x02 : u16 ? ? ? ? (0 on shadow pkm)
- 0x04 : u32 PID
- 0x08 : VersionInfo version(4 bytes)
- 0x0c : u16 locationCaught
- 0x0e : u8 levelMet
- 0x0f : u8 ballCaughtWith
- 0x10 : u8 OTGender
- 0x11 -- 0x13 : ? ? ? ? ?
- 0x14 : u16 SID
- 0x16 : u16 TID
- 0x18 : OT Name(10 + 1 chars, limited to 8 in game)
- 0x2e : Pkm Name(10 + 1, or 5 in game for jap.versions)
- 0x44 : Pkm name backup
- 0x5a -- 0x5b : u16 = field 0x02 backup
- 0x5c : u32 experience
- 0x60 : u8 currentLevel
- 0x61 -- 0x64 : ? ?
- 0x65 : u16 status (u8 on XD)
- 0x65 -- 0x67 : ? ?
- 0x68 : u32 ? ?
- 0x6c--0x78 ? ?
- 0x78 : moves info
- 0x88 : u16 itemHeld
- 0x8a : u16 currentHP
- 0x8c : u16 stats[6]
- 0x98 : u16 EVs[6]
- 0xa4 : u16 IVs[6]
- 0xb0 : u16 happinness
- 0xb2 : u8 contestsStats[5]
- 0xb7 : u8 contestsRibbons[5]
- 0xbc : u8 contestLuster
- 0xbd : u8 specialRibbons[12]
- 0xc9 : u8 unused ?
- 0xca : u8 pkrsStatus
- 0xcb : u8 flags[3] : egg, special ability, invalid pkm
- 0xcf : u8 marks
- // shadow pkm data ?
- 0xd0--0xd7 : ? ?
- 0xd8 : u16 shadowPkmID
- 0xda--0xdb : padding ?
- 0xdc : s32 purificationCounter
- 0xe0 : u32 expStored
- 0xe4 : u16 ? ?
- 0xe6 : u16 ? ?
- 0xfb : u8 encounterType
- 0xfc--0x138 : ? ? ? ? ? ? ? ? ? ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement