Mobile Trade received Pokémon data structure
Posted by: Torchickens
Date: 2016-05-31 08:06:31
After you receive the Pokémon, you will get the text "まま!のてみっってで なのなまでっててくだね そではまのまちてま!" (translated: Thank you for your
patience. A trade partner has been found. It's your new partner. Please take care of it with love. We hope to see you again.)
Creating your own Mobile Trade Pokémon should be possible with Japanese Pokémon Crystal arbitrary code execution (thanks to luckytyphlosion, Háčky, Paco81's finds), such as through TM15 ACE (TM15 when used outside of the TM/HM pocket executes FA10).
You can obtain a hex:00 ????? through the bad clone glitch and withdraw Pokémon without mail to convert it into ????? FF, use hex:FF Missingning's items corruption; and follow the steps in the thread, and then manipulate FB84 (in the expanded balls pocket) to a value such as (item x195), Star Piece x 251 (jp FB84; box 4 name character 2).
This code will enable the trade (thanks Crystal_ for the skeleton). We just need to find a way to adapt it for a structure such as box names or stored items.
ld a,05
ld (4e01),a
ld a,0a
ld (0d01),a
ld a,04
ld (a800),a
ret
Data structure (work in progress):
A800: If it is 04, obtain a Pokémon in the PCC.
A826: Species of received Pokémon modifier (e.g. FB=Celebi).
B029: Held item of received Pokémon.
B02A: Move 1 of received Pokémon.
B02B: Move 2 of received Pokémon.
B02C: Move 3 of received Pokémon.
B02D: Move 4 of received Pokémon.
B02E, B02F: ID number of received Pokémon.
B030, B031, B032: Experience of received Pokémon.
B033, B034: HP stat experience of received Pokémon.
B035, B036: Attack stat experience of received Pokémon.
B037, B038: Defense stat experience of received Pokémon.
B039, B03A: Speed stat experience of received Pokémon.
B03B, B03C: Special stat experience of received Pokémon.
B03D: Attack/Defense IV of received Pokémon.
B03E: Speed/Special IV of received Pokémon.
B03F: Received Pokémon's PP of move 1.
B040: Received Pokémon's PP of move 2.
B041: Received Pokémon's PP of move 3.
B042: Received Pokémon's PP of move 4.
B058: Received Pokémon's OT name character 1.
B059: Received Pokémon's OT name character 2.
B05A: Received Pokémon's OT name character 3.
B05B: Received Pokémon's OT name character 4.
B05C: Received Pokémon's OT name character 5.
B05D: Nickname of received Pokémon, character 1.
B05E: Nickname of received Pokémon, character 2.
B05F: Nickname of received Pokémon, character 3.
B060: Nickname of received Pokémon, character 4.
B061: Nickname of received Pokémon, character 5.