The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Ev handling by the game.

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 31st, 2017 (11:18 PM).
Froosty's Avatar
Froosty Froosty is offline
The_Learner
 
Join Date: Sep 2014
Location: Somewhere in this world.
Age: 25
Gender: Male
Nature: Brave
Posts: 535
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 :)
__________________
My works:
TOOL: TL's Quick Enhancer
TUTORIAL: Fire red habitat editing
TUTORIAL: Fire red Transparent text-box


| |
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 1st, 2017 (9:04 PM).
blakcat blakcat is offline
 
Join Date: Aug 2009
Gender: Male
Posts: 55
Quote:
Originally Posted by The_learner View Post
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 :)
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:23 AM.