Quote:
Originally Posted by The_learner
Can anyont tell me how the ev yield are handled by the game.
I studied the pokemon data table from the link below
http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_base_stats_data_structure_in_Generation_III
and found that a word from the 10th offset of a pokemon data is responsible for the ev yield of a pokemon,
but there are 6 ev,
so I was wondering how the ev's are handled by the game???
If anyone understood my question and could help me out then It would be nice for me and also the tool I am making :)
|
Hey TL, if I'm reading your question right, the answer is on that same page you referenced (it's like the 2nd section from the top). Here's a quote:
Quote:
Effort yield
Each stat is assigned two bits to determine how many EVs the Pokémon will give in that stat. The last 4 bits in the byte are empty (0).
Code:
Bits Stat
0-1 HP
2-3 Attack
4-5 Defense
6-7 Speed
8-9 Special Attack
10-11 Special Defense
|
So, 2
bits per stat * 6 stats = 12 bits + 4 unused (zeroes) = 16 bits which will fill a word :)