Alright, I have uploaded a new version including HP. Used this equation here:"Not to be outdone, the HP stat undergoes some quirks. In the Pokemon's data structure, only four DVs are stored: Attack, Defense, Speed, and Special. The HP DV is determined by the last bit of each of these four DVs. An odd Attack DV adds 8, Defense adds 4, Speed adds 2, and Special adds 1. For example, a Lugia with the DVs 5 Atk, 15 Def, 13 Spe, and 13 Spc will have the following HP:
Attack = Odd, HP += 8
Defense = Odd, HP += 4
Speed = Odd, HP += 2
Special = Odd, HP += 1
resulting in an HP stat of 15.
On the other hand, a Dragonite with 15 Atk, 3 Def, 10 Spe, and 11 Spc will have 8 + 4 + 0 + 1, or 13 HP."
quoted from http://www.smogon.com/ingame/guides/rby_gsc_stats
i have actually managed to get my code implemented into yours and functioning correctly
Code:
int hp = (8*(attack % 2)) + (4*(defense % 2)) + (2*(speed % 2)) + (1*(special % 2));
That should be all the changes I'm gonna make tonight. Be sure to grab the latest version if you want.