Thread: [Other] EV Hex Values
View Single Post
  #5    
Old August 2nd, 2009, 09:49 AM
IIMarckus's Avatar
IIMarckus
J946@5488AA97464
 
Join Date: Oct 2007
Gender:
Another way to do this is to convert between hex and binary. Look at the pattern:

$01 = %00000001 1HP
$02 = %00000010 2HP
$03 = %00000011 3HP
$04 = %00000100 1Atk
$05 = %00000101 1Atk, 1HP
$06 = %00000110 1Atk, 2HP
...


See the pattern? HP uses the rightmost two bits, Attack uses the next two, and so on.

Byte 1 ......XX HP
Byte 1 ....XX.. Attack
Byte 1 ..XX.... Defense
Byte 1 XX...... Speed
Byte 2 ......XX Special Attack
Byte 2 ....XX.. Special Defense

So if we want EVs of 1 HP, 2 Atk, 3 Def, 3 Spd, 2 Sp.Atk, and 1 Sp.Def:
1 in binary is 01
2 in binary is 10
3 in binary is 11

Therefore, our bytes would be 11111001 00000110, or F9 06. Compare it with the list—those bytes do indeed give the number of EVs we want.
__________________
iimarck.us / hax.iimarck.us

If you want me, please contact me by email. [email protected]

If you want to hack Pokémon RBY or GSC, read, read, and read some more. This has tons of valuable information.

Pokémon Red disassembly project

Rules that should be rethought: 25charlimit, bumping.
Bad posts are bad posts, regardless of how many words are in them or how old the thread is.
Good posts are good posts, regardless of how old the thread is—and brevity is underrated.
Reply With Quote