Re: Easier way to perform the Pikachu Off-Screen ACE in Yellow
Posted by: Torchickens
Date: 2017-08-31 13:15:59
That's interesting. :)
Wait a moment, I have an idea. Your Trainer ID can be manipulated from the expanded items pack by changing item 30's quantity and item 31, and then you could catch a Pokémon with a good catch rate with four moves and the Trainer ID of your choice.
If the second byte of the Trainer ID was a Safari Ball (08) e.g. from an x-coordinate of 08, it could probably set up the text box arbitrary code execution following it.
Following Trainer ID is the Pokémon's experience. The first byte could be a 00 (a nop), the second two bytes could be 18 38 (jr D263), where your sixth Pokémon with specific PPs would go (e.g. a Metapod evolved from Caterpie). Total experience is indeed stored as a normal three byte hexadecimal value, so the 001838 converts to 6200 total experience.
This does need the expanded items pack sadly, but then again the glitch Pokémon method to get the items for Rival LOL glitch probably does as well. Thinking about it I guess you can use a custom map script (D36D-D36E's pointer; which can be redirected to RAM) instead of POS or a glitch item for setting up your first arbitrary code execution as well.
Hopefully the game doesn't mind a 08 00 sequence.
Edit: 08 00 18 38 is fine, so this should indeed work provided the catch rate and moves are good.