Quote:
Originally Posted by redriders180
I guess it's time for me to ask a question:
I read somewhere that when you use the "setwildbattle", all the data of the Pokemon you set is written somewhere in the RAM or whatever, and can be changed, to make sure its a certain gender, or giving it different moves, and the like. I wanna know: does anyone knows where this data is stored, and how it's stored? I have to make some highly specific encounters, and this'd make the job alot easier.
|
The wild Pokemon's data begins in FR's RAM at 0x0202402C and you can change aspects of the wildbattle by using the command 'setbytetooffset'. You can change a few things with this, such as the Pokemon's stats and nickname (You can see the data structure utilised
here). For example, if I wanted to fight a level 5 Bulbasaur with 255 Special Defense specifically an excerpt of the script will look like this:
Code:
setwildbattle 0x1 0x5 0x0
writebytetooffset 0xFF 0x202408E
dowildbattle
Unfortunately, a lot of the 'meat' (PokeRus infection, EVs, moves, happiness etc.) is encrypted/ DMAC protected meaning that it cannot be read/ easily edited without ASM to unlock it - JPAN's engine has the ability do this, but it is limited to only the party Pokemon at this time. This locked information is all located in the 'data' segment that you can see in the article I linked earlier.