## EV Training Starter's Guide |Questions? Read This First!|

• Topic Closed
1. Boards
2. Pokemon Diamond Version
3. EV Training Starter's Guide |Questions? Read This First!|

#### User Info: ShinAkuma999

ShinAkuma999
9 years ago#51
<wall of text>

I just want to make a small point. The whole discounting the last 2 EVs may be confusing to some people. There seems to be no reason why the max is 510. Here is the reason (I'm 99% sure this is why): the max EVs for any stat is 255. We've all seen that number a million times throughout our gaming careers. 256 is 2 to the 8th power. Since 0 is a valid value for EVs, an 8-bit variable can hold any number from 0-255 (a total of 256 different values). If 0 didn't mean anything, it could be 1-256, but it can't. So in order to allow 256 EVs in a stat, the variable that holds that number would have to become 16-bit not 8-bit. 255 is the highest 8-bit integer. If we wanted 256 to be possible to make it even, that would double the size of the memory used to store that number, double the size of your save file, double the time it takes to save, etc. They wanted us to be able to maximize 2 stats. 255+255=510. Since they made every 4 EVs worth one stat point, that necessitates wasting some. If 512 were the max, we'd lead much simpler lives, but the already massive amount of data stored in pokemon would effectively double. Ouch. So in closing, the leftover EVs aren't just dumb, they're a mathematical consequence of programming. I just thought it would be interesting if people knew why those numbers are what they are.

</wall of text>
"I flew too close to the sun on wings of pastrami"
Pokemon Pearl FC: 5455 5871 9174

#### User Info: profzX

profzX
9 years ago#52
There is a trainer south of hearthrome with 3 seakings which is great for attack
**** yea SEAKING!
(ab)using =/ like theres no tommorow
so SUE ME!
# of lawsuits: 2 =/

#### User Info: jack80808

jack80808
9 years ago#53
Congratz on Sticky.
Ruthless Aggression.
Zelda: PH FC: 2105 6563 9968 | Pkmn Diamond FC: 0774 1352 1870

#### User Info: moneyman82

moneyman82
9 years ago#54
"When I was your age, we didn't have one of these so called 'guides' you yungun's are lucky!"
To kill a Bidoof:Throw another Bidoof at it. The sheer lameness of Bidoof will be too much for the other to handle, therefore causing an implosion.

#### User Info: weremidget

weremidget
9 years ago#55
Well, ShinAkuma, I'd never wondered why those 2 exist but thanks for clearing that up, as confusing and senseless as most of it was to me. I think I get the gist of it, the last sentence was pretty much all I understood.
Halo 3 - Finish The Ruckus
Fate had us meet as foes, but this ring will make us brothers.

#### User Info: ShinAkuma999

ShinAkuma999
9 years ago#56
To put it simply, 255 is the largest 8-bit integer. For any single value to exceed 255, it would have to hold twice the size it currently does. Say all 6 EV categories are 8-bit variables, 0-255. That means they would require, lets say, 5 kB of memory to store (just making up a number). If EVs could go above 255, then all 6 would have to be then 16-bit variables, as an 8-bit variable could not store a number larger than 255. That would require 10 kB to store. Make Sense? Excellent. There are thousands of numbers to store for Pokemon and they need to conserve space. There's no good way to use a 9-bit variable or anything; it's either 8-bit or 16-bit. The programming choice to make is 1.) numbers that go up to 255 and require less space or 2.) numbers greater than 255 that require twice the space. GameFreak chose the former. Using smaller 8-bit variables lets you use numbers up to 255. Using a 16-bit variable requires twice the space, but allows you to use numbers up to...*drum roll*...65535. Bet you've seen that one before, too.
"I flew too close to the sun on wings of pastrami"
Pokemon Pearl FC: 5455 5871 9174

#### User Info: weremidget

weremidget
9 years ago#57
Right, it's starting to make more sense. But basically they just chose to limit the number to 255 to conserve the space they'd need to store each Pokemon's information and make save files smaller, right?

http://en.wikipedia.org/wiki/65535_(number)

Ashamedly, 65535 didn't ring any bells for me.
Halo 3 - Finish The Ruckus
Fate had us meet as foes, but this ring will make us brothers.

#### User Info: ShinAkuma999

ShinAkuma999
9 years ago#58
Right, it's starting to make more sense. But basically they just chose to limit the number to 255 to conserve the space they'd need to store each Pokemon's information and make save files smaller, right?

That's exactly right. Going from 255 to 256 requires double the space. That's all.
I must be getting old. I remember tons of games from my youth, Crystalis, original Final Fantasy, maybe Dragon Warrior, where your gold or whatever stopped at 65535. Same reason. Letting you have 65536 would require that variable to be twice the size again, a 32-bit integer for example.
"I flew too close to the sun on wings of pastrami"
Pokemon Pearl FC: 5455 5871 9174

#### User Info: weremidget

weremidget
9 years ago#59
I was never one for 'retro' RPGs :D
Halo 3 - Finish The Ruckus
Fate had us meet as foes, but this ring will make us brothers.

#### User Info: Matt-Man2010

Matt-Man2010
9 years ago#60
hooray for a sticky
How do you get an elephant off of a freeway?
Take the "r" out of free and the "f" out of way.
1. Boards
2. Pokemon Diamond Version
3. EV Training Starter's Guide |Questions? Read This First!|