Mossdeep Trainer Data
In Pokémon Ruby & Sapphire, in Mossdeep, there is a house with a locked door. If you have previously scanned an e-Reader Pokémon Battle eCard then the old man who lives in the house will stand in front of the door and will tell you of a guest staying in his house that you may battle.
The trainer's data is quite basic and only consists of a name, type, 3 pokémon and 6 vocabulary words that are spoken when introducing themselves, winning and losing. It's basically the same as a Battle Tower trainer.
MossDeep Trainer Battle E-Card Data Structure - 188 Bytes ------------------------------ 0x00 - Battle Tower Type - Byte 0x01 - Type eg. Camper - Byte 0x02 - Battle Tower Lvl - Byte 0x03 - ?? - Byte Type is 0x00 for lvl 50, 0x01 for lvl 100 Lvl is the level they will appear at battle tower These aren't set unless the ecard has a mark indicating that the trainer will appear in the battle tower. 0x04 - Name - 7 Bytes 0x0B - String terminator - Byte 0x0C - Trainer ID - Word This is usually 0x00000000 0x10 - Introduction - 6 Halfword 0x1C - Win Quote - 6 Halfword 0x28 - Lose Quote - 6 Shorts These minor amounts of dialogue are made up using set phrases in the same manner as trainers in the Battle Tower. 0x34 - Pokemon 1 - 44 Bytes 0x60 - Pokemon 2 - 44 Bytes 0x8C - Pokemon 3 - 44 Bytes See the below structure. 0xB8 - Checksum - Word A sum of the 184 bytes that make up the trainer data, added together as words. 44 Byte Pokemon Structure ------------------------- 0x00 - Species - Halfword 0x02 - Held Item - Halfword 0x04 - Move 1 - Halfword 0x06 - Move 2 - Halfword 0x08 - Move 3 - Halfword 0x0A - Move 4 - Halfword 0x0C - Level - Byte 0x0D - ?? (always 0x00) - Byte 0x0E - HP EV - Byte 0x0F - ATK EV - Byte 0x10 - DEF EV - Byte 0x11 - SPD EV - Byte 0x12 - SP.ATK EV - Byte 0x13 - SP.DEF EV - Byte 0x14 - OT ID - Word 0x18 - Poss. IVs - Word 0x1C - Personality - Word 0x20 - Nickname - 10 Bytes 0x2A - ?? (always 0x00) - Byte 0x2B - ?? (always 0xFF) - Byte