Pokémon Data Structures (Firered)
View Single Post
July 17th, 2012 (1:32 PM).
Glory To Arstotzka
Join Date: Jun 2009
You need to tidy up the list of unencrypted data, it's very hard to read in the format you have it in.
Anyway - For the creation of formes in FR, I actually used the upper half of the mark byte as storage for the forme ID. There are 4 marks, which can be set to on or off, which is, of course, a binary setting, which means they use a bit each.
This leaves 4 bits in the upper half of that byte which are unused. After a minor rewrite of the decrypter and encrypter, I was able to gain these bits for my own use.
4 bits allows for 16 possible combinations, which is actually quite a lot in terms of formes.
The "upper half" of the byte refers to the leftmost bits in binary:
128 64 32 16
8 4 2 1
In more ROM hacking orientated terms, it means that of a mark byte 0x32, the 0x30 stands for the forme the Pokémon is currently in while the 0x2 stands for which marks is has assigned to it.
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! -
View Public Profile
Send a private message to Jambo51
Find all posts by Jambo51
Find threads started by Jambo51