Iv's - Magic levels

Well, I often found myself unable to get on the computer when I wanted to breed, or wanting to breed on a journey. But I still wanted to know whether something was keep-worty or not. So I went with Metalkid's and calculated at which levels you would know if an IV was 31/25+/20+, using the stat and the IV calculator. But I found that too much of a hassle, so I've written a small script which calculates these levels for all base stats, assuming a start at level 1. I've also added the outcomes for 31, 25+ and 20+

Any comments?

Note: The stat numbers are for any stat except HP. For HP, add the level + 5. They assume neutral nature. To add in nature: multiply by 0.9 or 1.1 and round down.

In the format: basestat stat "at" level

Sure of 31.
Code:
1 14 at 28
2 12 at 20
3 9 at 11
4 10 at 13
5 14 at 22
6 8 at 7
7 9 at 9
8 11 at 13
9 18 at 27
10 31 at 51
11 14 at 17
12 11 at 11
13 14 at 16
14 12 at 12
15 19 at 23
16 10 at 8
17 14 at 14
18 7 at 3
19 16 at 16
20 17 at 17
21 13 at 11
22 8 at 4
23 15 at 13
24 16 at 14
25 22 at 21
26 19 at 17
27 16 at 13
28 18 at 15
29 13 at 9
30 15 at 11
31 17 at 13
32 21 at 17
33 30 at 26
34 55 at 51
35 106 at 100
36 40 at 34
37 26 at 20
38 21 at 15
39 18 at 12
40 26 at 19
41 14 at 8
42 13 at 7
43 12 at 6
44 18 at 11
45 34 at 24
46 16 at 9
47 10 at 4
48 24 at 15
49 14 at 7
50 22 at 13
51 42 at 28
52 32 at 20
53 20 at 11
54 23 at 13
55 36 at 22
56 15 at 7
57 18 at 9
58 24 at 13
59 45 at 27
60 82 at 51
61 31 at 17
62 22 at 11
63 30 at 16
64 24 at 12
65 42 at 23
66 18 at 8
67 28 at 14
68 10 at 3
69 32 at 16
70 34 at 17
71 24 at 11
72 12 at 4
73 28 at 13
74 30 at 14
75 43 at 21
76 36 at 17
77 29 at 13
78 33 at 15
79 22 at 9
80 26 at 11
81 30 at 13
82 38 at 17
83 56 at 26
84 106 at 51
85 206 at 100
86 74 at 34
87 46 at 20
88 36 at 15
89 30 at 12
90 45 at 19
91 22 at 8
92 20 at 7
93 18 at 6
94 29 at 11
95 58 at 24
96 25 at 9
97 14 at 4
98 39 at 15
99 21 at 7
100 35 at 13
101 70 at 28
102 52 at 20
103 31 at 11
104 36 at 13
105 58 at 22
106 22 at 7
107 27 at 9
108 37 at 13
109 72 at 27
110 133 at 51
111 48 at 17
112 33 at 11
113 46 at 16
114 36 at 12
115 65 at 23
116 26 at 8
117 42 at 14
118 13 at 3
119 48 at 16
120 51 at 17
121 35 at 11
122 16 at 4
123 41 at 13
124 44 at 14
125 64 at 21
126 53 at 17
127 42 at 13
128 48 at 15
129 31 at 9
130 37 at 11
Sure of 25+

Code:
1 9 at 15
2 7 at 7
3 9 at 13
4 14 at 28
5 12 at 20
6 9 at 11
7 10 at 13
8 14 at 22
9 8 at 7
10 9 at 9
11 11 at 13
12 18 at 27
13 31 at 51
14 14 at 17
15 11 at 11
16 14 at 16
17 12 at 12
18 19 at 23
19 10 at 8
20 14 at 14
21 7 at 3
22 16 at 16
23 17 at 17
24 13 at 11
25 8 at 4
26 15 at 13
27 16 at 14
28 22 at 21
29 19 at 17
30 16 at 13
31 18 at 15
32 13 at 9
33 15 at 11
34 17 at 13
35 21 at 17
36 30 at 26
37 55 at 51
38 106 at 100
39 40 at 34
40 26 at 20
41 21 at 15
42 18 at 12
43 26 at 19
44 14 at 8
45 13 at 7
46 12 at 6
47 18 at 11
48 34 at 24
49 16 at 9
50 10 at 4
51 24 at 15
52 14 at 7
53 22 at 13
54 42 at 28
55 32 at 20
56 20 at 11
57 23 at 13
58 36 at 22
59 15 at 7
60 18 at 9
61 24 at 13
62 45 at 27
63 82 at 51
64 31 at 17
65 22 at 11
66 30 at 16
67 24 at 12
68 42 at 23
69 18 at 8
70 28 at 14
71 10 at 3
72 32 at 16
73 34 at 17
74 24 at 11
75 12 at 4
76 28 at 13
77 30 at 14
78 43 at 21
79 36 at 17
80 29 at 13
81 33 at 15
82 22 at 9
83 26 at 11
84 30 at 13
85 38 at 17
86 56 at 26
87 106 at 51
88 206 at 100
89 74 at 34
90 46 at 20
91 36 at 15
92 30 at 12
93 45 at 19
94 22 at 8
95 20 at 7
96 18 at 6
97 29 at 11
98 58 at 24
99 25 at 9
100 14 at 4
101 39 at 15
102 21 at 7
103 35 at 13
104 70 at 28
105 52 at 20
106 31 at 11
107 36 at 13
108 58 at 22
109 22 at 7
110 27 at 9
111 37 at 13
112 72 at 27
113 133 at 51
114 48 at 17
115 33 at 11
116 46 at 16
117 36 at 12
118 65 at 23
119 26 at 8
120 42 at 14
121 13 at 3
122 48 at 16
123 51 at 17
124 35 at 11
125 16 at 4
126 41 at 13
127 44 at 14
128 64 at 21
129 53 at 17
130 42 at 13
Sure of 20+

Code:
1 8 at 14
2 8 at 13
3 12 at 27
4 8 at 11
5 8 at 10
6 10 at 16
7 6 at 3
8 10 at 14
9 8 at 8
10 7 at 5
11 10 at 12
12 12 at 16
13 10 at 11
14 13 at 17
15 6 at 2
16 18 at 25
17 12 at 13
18 10 at 9
19 9 at 7
20 8 at 5
21 13 at 13
22 12 at 11
23 20 at 23
24 22 at 25
25 12 at 10
26 10 at 7
27 16 at 15
28 24 at 25
29 12 at 9
30 9 at 5
31 14 at 11
32 10 at 6
33 11 at 7
34 12 at 8
35 14 at 10
36 16 at 12
37 19 at 15
38 25 at 21
39 38 at 34
40 6 at 1
41 56 at 50
42 31 at 25
43 23 at 17
44 19 at 13
45 16 at 10
46 15 at 9
47 22 at 15
48 20 at 13
49 25 at 17
50 11 at 5
51 22 at 14
52 21 at 13
53 39 at 27
54 19 at 11
55 18 at 10
56 26 at 16
57 9 at 3
58 24 at 14
59 16 at 8
60 12 at 5
61 22 at 12
62 28 at 16
63 21 at 11
64 30 at 17
65 8 at 2
66 43 at 25
67 25 at 13
68 19 at 9
69 16 at 7
70 13 at 5
71 26 at 13
72 23 at 11
73 43 at 23
74 47 at 25
75 22 at 10
76 17 at 7
77 31 at 15
78 49 at 25
79 21 at 9
80 14 at 5
81 25 at 11
82 16 at 6
83 18 at 7
84 20 at 8
85 24 at 10
86 28 at 12
87 34 at 15
88 46 at 21
89 72 at 34
90 7 at 1
91 106 at 50
92 56 at 25
93 40 at 17
94 32 at 13
95 26 at 10
96 24 at 9
97 37 at 15
98 33 at 13
99 42 at 17
100 16 at 5
101 36 at 14
102 34 at 13
103 66 at 27
104 30 at 11
105 28 at 10
106 42 at 16
107 12 at 3
108 38 at 14
109 24 at 8
110 17 at 5
111 34 at 12
112 44 at 16
113 32 at 11
114 47 at 17
115 10 at 2
116 68 at 25
117 38 at 13
118 28 at 9
119 23 at 7
120 18 at 5
121 39 at 13
122 34 at 11
123 66 at 23
124 72 at 25
125 32 at 10
126 24 at 7
127 46 at 15
128 74 at 25
129 30 at 9
130 19 at 5
Source code, Visual Basic, Design is a Form with one button, button1.


Code:
PublicClass Form1
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim baseStat AsInteger
Dim iv AsInteger
Dim ivnot AsInteger
Dim ev AsInteger = 0
Dim level AsInteger
Dim stat AsInteger
Dim personality AsInteger = 1
Dim writer AsNew System.IO.StreamWriter("C:/ivs.txt")
 
iv = 31
ivnot = 30
For baseStat = 1 To 130
For level = 1 To 100
If Math.Floor(Math.Floor((((baseStat * 2 + iv + Math.Floor(ev / 4)) * level / 100) + 5)) * personality) <> Math.Floor(Math.Floor((((baseStat * 2 + ivnot + Math.Floor(ev / 4)) * level / 100) + 5)) * personality) Then
stat = Math.Floor(Math.Floor((((baseStat * 2 + iv + Math.Floor(ev / 4)) * level / 100) + 5)) * personality)
writer.WriteLine(baseStat & " " & stat & " at " & level)
ExitFor
EndIf
Next
Next
writer.Close()
Button1.Text = "done"
 
EndSub
EndClass
 
I'm not sure if I understand it...
For example, if pokemon has base stat of 50, and I want it to be 31, I look in the first column for 50, then I level it up to certain level (Stated in last column) and check if it's stat is same as the one in the middle column. I am doing it right? :P
 
Heh, I did something similar a long time ago

http://www.smogon.com/forums/showthread.php?t=24032

good job though, I'm sure this one is more accurate since I did most of these on paper

If you have a script going, perhaps you can take the base stats of all the hatched pokemon and make an excel spreadsheet or something, it could be more useful
I just made it loop form 1 to 130, by which I think that I only miss out Shuckle.

I still don't understand how to use it.
I'm not sure if I understand it...
For example, if pokemon has base stat of 50, and I want it to be 31, I look in the first column for 50, then I level it up to certain level (Stated in last column) and check if it's stat is same as the one in the middle column. I am doing it right? :P
Mastadi is correct. Keep in mind that these are for neutral natures and no EV's.

@ Jugrenae: You might have seen the breeding guide, which gives the stats at level 5 if a poke has a 31 Iv. These charts give the level and stat when you know for sure that it's 20+/25+/31
 
Oh. :P But for that you would need to know math( don't worry, I do! ) and be extremely patient... but I guess if you are on a trip... it would work.. Yes I know, I sound like a dumbass.


Anyways, nice formula. Although I could've sworn I have seen it before..
 

Tangerine

Where the Lights Are
is a Top Team Rater Alumnusis a Community Leader Alumnusis a Smogon Discord Contributor Alumnusis a Tiering Contributor Alumnusis a Top Contributor Alumnusis a Smogon Media Contributor Alumnus
...because it's derived off the stat formula.

Usually when I'm on a trip and I breed usually just rare candy it and just remember at which level I need boost (like for staryus, I'd want 7 Speed at birth, 9 Def/9SpDef at Level 3, etc)
 

Legacy Raider

sharpening his claws, slowly
is a Top Team Rater Alumnusis a Community Leader Alumnusis a Smogon Discord Contributor Alumnusis a Top Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Simulator Moderator Alumnus
Wow this is great for breeding! It makes checking worthwhile breeds so much quicker, instead of having to put in the stats into a calculator for every egg.
Thanks a ton Pim.
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top