Tlachtli
Crit happens.
- 267
- Posts
- 13
- Years
- Faraway place
- Seen May 14, 2019
You can edit the basics of a wild Pokemon by using the 'setwildpokemonbattle' command and then use the 'writebytetooffset' command to do something specific. setwildpokemonbattle loads a Pokemon in the RAM but doesn't enact the battle, giving you time to edit its data. In this case you want to edit the Pokemon's sleep bits. I was able to do what you wanted with the following script:
Code:#org @start setwildbattle 0x8F 0xA 0x0 // Loads a level 10 Snorlax into the wild Pokemon section of the RAM writebytetooffset 0x2 0x2024794 // Changes the Snorlax's sleep bits to 0x2 dowildbattle // Begins a wildbattle with the Pokemon loaded in the RAM release end
You can get some more in-depth information on how a Pokemon's data is structured here.
This looks like exactly what I was after. I'll give the info a browse and see what other kind of fun stuff can be done, thanks!