The ZZAZZ trainer with id $FC has an interesting property – it will execute code from $FA60, which is in the middle of Daycare Pokemon data.
If the player had never deposited any Pokemon into Daycare, the execution will slide to $FA80 – the Pokemon box. I used the standard Mew/Ditto Glitch to encounter the ZZAZZ trainer $FC. I have my example code stored in the Pokemon box. I hacked the code in, because I’m lazy – but it’s possible to spell opcodes by hand, by storing specific Pokemon in the box. Upon choosing an attack, the code will execute. Pwned. I could give myself 9999 rare candies, but I decided to create a small animation instead. …you still watching this?