PokeHacker Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Khaos' Hex Tutorial

2 posters

Go down

Khaos' Hex Tutorial Empty Khaos' Hex Tutorial

Post by KhaosKnight Tue Aug 05, 2008 1:14 pm

Welcome to my Tutorial you may already know me but for those of you who don’t I am Khaosknight1, this tut may not be needed but I have seen allot of questions in the Help threads regarding what the pokes numbers are for their scripts...so lets begin.






ToC

1. Hex Explanation

2. Hex's usage in Scripting

3. Simple Conversion

-----3.2 Manual Converion

4. List of Pokes

5. Binary Explanation

6. Closing Statements






1. Hex Explanation



Ok let me start off by explaining what Hexadecimal Numbers are:



Hex (for short) is a method of counting numbers with a base of 16.

Code:


0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F....




There are Decimal numbers (which is what most are accustomed to using) then there are Hexadecimal numbers, Hex numbers are commonly used in electronic and computer programing. Since each hexadecimal digit represents four binary digits it is a compact and easily translated shorthand to express values The symbol A in hex has the same value as 10 in Dec., but in Hex the value 10 is the same value as 16, many programs and programmers use hexadecimal numbers.



So here is the basic Dec. numbers with their Hex equivalents



Code:


Dec - Hex

 

0  -  0

1  -  1

2  -  2

3  -  3

4  -  4

5  -  5

6  -  6

7  -  7

8  -  8

9  -  9

10 - A

11 - B

12 - C

13 - D

14 - E

15 - F

16 - 10

17 - 11

18 - 12

19 - 13

20 - 14

21 - 15

22 - 16

23 - 17

24 - 18

25 - 19

26 - 1A

27 - 1B

 

and so on...






2. Hex's Usage in Scripting





Ok almost every value you imput when scripting wil be in Hex. (Though you can imput values in Dec but i cant remember how). But anyway do you remember when you first scripted a givepokemon script. Course ya do! Lets say you want a level 15 Vulpix. So you imputed it like this:



Code:


givepokemon 0x37 0x15 0x0 0x0 0x0




Ok no that it is compiled, you test it. Hmm? i didnt get a level 15 Vulpix, i got a level 21 Golduck. Why? in scripting that command took your values as hex values and Golducks number is 37 in Hex(#55 in Dec) and 21 is 15 in Hex. So to fix it you have to Hex Vulpix's value and the number 15, so we get...



Code:


givepokemon 0x25 0xF 0x0 0x0 0x0





kay now test that...Yay we got our Vulpix!!!



I may expand on this in the Future...





3. Simple Conversion



Ok so what if you are working a Give Kyogre script, his national number is 382, well you don’t want to have to count that high so here is a method of converting Dec. to Hex the almost everyone can do...



First open MS Calculator



it should look like this...

Khaos' Hex Tutorial MS-Calculator-Animation

You can’t do any conversion with that so you want to click the "view" tab, then click "Scientific" and now you should have this...

Khaos' Hex Tutorial Windows_calculator

Now to do the conversion all you have to do is punch in Kyogre's National Number which is 382...then click the empty circle next to the word "hex" it should convert 382 to 17E which is Kyogres National Dex number in hex.



3.2. Manual Conversion



Coming Soon!!!!



4. List of Pokes



Ok since some are too lazy to go find the National Numbers I will post them here. Just take the number to the corresponding poke then follow the method above.



1 - 151 (Bulbasaur - Mew) Kanto



Spoiler:



152 - 251(Chikorita - Celebi) Johto



Spoiler:



252 - 386(Treecko - Deoxys) Hoenn



Spoiler:



387 - 493(Turtwig - Arceus) Sinnoh



Spoiler:




5. Binary Explanation

Coming Soon!!!



6.Closing Statement

Ok there you go, i may update this in the future but for now it covers the basic concept. I plan to add an explanation on Binary numbers if needed. And if its really needed i will cover Octadecimal as well. Meh, just to cover all the conversions the MS Calculator can do, but i dont see that happening.
KhaosKnight
KhaosKnight
Admin
Admin

Male Number of posts : 236
Age : 32
Location : In on your modem, stealing your Internetz
Warning :
Khaos' Hex Tutorial Left_bar_bleue0 / 1000 / 100Khaos' Hex Tutorial Right_bar_bleue

Reputation :
Khaos' Hex Tutorial Left_bar_bleue70 / 10070 / 100Khaos' Hex Tutorial Right_bar_bleue

Registration date : 2008-08-05

Back to top Go down

Khaos' Hex Tutorial Empty Re: Khaos' Hex Tutorial

Post by .Luna Fri Aug 08, 2008 4:30 pm

Thanks ^^. *gives points*. Its a nice contrubite Smile. If I *ever* start to hack, Ill take a look at this thread XD.

.Luna
.Luna
.Luna
Site Admin
Site Admin

Female Number of posts : 125
Age : 33
Location : Texas
Warning :
Khaos' Hex Tutorial Left_bar_bleue0 / 1000 / 100Khaos' Hex Tutorial Right_bar_bleue

Reputation :
Khaos' Hex Tutorial Left_bar_bleue150 / 100150 / 100Khaos' Hex Tutorial Right_bar_bleue

Registration date : 2008-08-03

Back to top Go down

Khaos' Hex Tutorial Empty Re: Khaos' Hex Tutorial

Post by KhaosKnight Fri Aug 08, 2008 4:33 pm

Oh thank you, i am think about adding binary next.
KhaosKnight
KhaosKnight
Admin
Admin

Male Number of posts : 236
Age : 32
Location : In on your modem, stealing your Internetz
Warning :
Khaos' Hex Tutorial Left_bar_bleue0 / 1000 / 100Khaos' Hex Tutorial Right_bar_bleue

Reputation :
Khaos' Hex Tutorial Left_bar_bleue70 / 10070 / 100Khaos' Hex Tutorial Right_bar_bleue

Registration date : 2008-08-05

Back to top Go down

Khaos' Hex Tutorial Empty Re: Khaos' Hex Tutorial

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum