Note: I don't remember who gave me these offsets, but thanks to whoever did so.
To Do list:
- Break Down XSE Script in Mossdeep Space Station
- Find Backsprite offset
- Possible ability byte?
- Organize thread.
In Pokémon Emerald, you fight alongside Steven at Mossdeep Space Station in a double battle against Team Magma. This feature was most notably used in the hack "Crystal Dust" by Diegoisawesome (I don't recall any other hack using the feature). Anyway, this will show you where to edit and what to edit to make your own double battle with Steven.
Alright, first off, his Pokémon. You'll most likely want to get into these first. Steven has three Pokémon: Metang, Skarmory and Aggron, levels 42, 43 and 44 respectively.
Now, open your Emerald ROM in a hex editor (I use Transhexlation) and find offset 5DD6D0. The first two bytes at this location are the Pokémon's species.
Pokemon's ID (Taken From XSE)
Here are all of his Pokémon's species offsets.
Code:
1: 5DD6D0
2: 5DD6E4
3: 5DD6F8
After their species comes their IVs (I don't know much about EVs and IVs, so you all can do that). This is the first Pokémon's IV offset for reference:
After the IV comes the Pokémon's level, which is one byte:
First Pokemon's Level Offset:
The format continues like this:
5DD6D4, one byte: buffer? no apparent effect. set to 00 default.
5DD6D5, six bytes: EVs: HP/ATK/DEF/SPD/SATK/SDEF. Each value can go up to FF (255) without issue, and will take effect.
5DD6DB, one byte: buffer? no apparent effect. set to 00 default.
5DD6DC, eight bytes: first pokemons movepool
Here is the move list:
More to come...