• Be sure to join the discussion on our discord at: Discord.gg/serebii
  • If you're still waiting for the e-mail, be sure to check your junk/spam e-mail folders

New way of calculating IVs to get exact near level 15!

Status
Not open for further replies.

MetalKid

Cascade Trainer
Alright, after trying many different approaches (and a whole lot of math), I have found a new way to calculate IVs that gives you more exact IVs much faster. I'll describe the entire process I go through. However, no one will really be able to do this by hand. It has to be programmed. I don't know if Serebii would be interested in updating their IV calculator to support this or not. I've written the IV Calc code already and you can d/l it to try it out. I'm still testing for bugs, but I think I nailed the last one. Anyway, here is the process:

Lets say you provide the stats for Level 5. Most, if not all, current IV Calculators will currently take this in, apply the formula that gives back an IV, and then pass in the provided stat +0.9999 to determine the max IV it could be. However, another way you can do it is to use the formula that gives back a stat. Then you can send in IVs 0 through 31 and get a stat back out. If the resulting stat is the same as the stat provided by the user, it is a valid IV.

Now, if we stopped here, the results would be the same. However, lets say you provide stats for levels 5 thru 7. With normal IV calculators, you would enter each level by hand and get fluctuating ranges. However, what I do is check for IVs that match all 3 levels. Lets say Level 5 for att resulted in a range of 0-20, level 6 results in a range of 10-25, level 7 results in 8 to 16. My process would then tell you that the range of IVs would be 10 to 16. I guess you could figure that out yourself and manually keep track of all that information, by why should you have to.

Now, I didn't stop there. The Hidden Power type is directly based on the IVs of a Pokemon. So, if you provide the Hidden Power Type (Remember the Kecleon trick?), I can go through all the possible combinations of IVs and determine if they would result in the correct HP Type. The result is that you can narrow down the IVs much, much faster. However, due to the way HP is calculated, you can really only narrow down Def, SpA, SpD, and Speed faster. Attack and HP don't affect the result enough to make any major impact.

If that wasn't enough, I did two extra things that no on else thought of. First, I calculated what level you would need to get to before the IV range would be reduced. This is especially helpful when you get down to a range of 4 or less. That way, you know what level you have to shoot for.

Second, I manipulate the EV part of the equation. I run through to see if getting a specific EV value will result in getting the exact IV for the next level. Though, so far it only seems to work if you have 2 possible IVs left. I'll give an example. Say some pokemon has Attack IVs in the range of 15-16. We can calculate where the next level's attack stat will be one number vs another based on the EV provided. That breaking point will determine one IV vs. the other.

So now you can provide multiple levels of stat information (thru rare candies) and get exact results by level 15 or less. Or you will know the range is within 2 or 3 IVs, and what level or EVs you need to get to figure it out.
 
Wow! That must have took you a while. If it definatelty works I may start using it.
I reccomend that you Private Message Dragonair because he was the person who wrote the IV guide on the Serebii's website.
 

OgLoc187

Salamence Master
Is there any clearer or easier one to read since im only eleven lol.
 

MetalKid

Cascade Trainer
Just try the Alpha version of my program on my site (Check the requirements section first, tho). All you have to do is choose a Pokemon and its personality, and start entering the stats each level.
 

Eszett

one love
nevetszero said:
great work with that, but i still dont really understand all that iv stuff or that base stats stuff on the serebii site could you please explain.
Basically, for each stat you have a value that ranges from 0 to 31. This value indicates how many points are added to that stat at level 100. Naturally, you want to get at or as close to 31 as possible, especially if you don't contribute any EVs to those stats.

Say, for instance, I have a Sandslash and I have given it 252 EVs in Attack with a neutral nature. If my Sandslash has an IV of 31 in Attack, it'll have a stat of 299 there. However, if it has a 0 there it'll only have an attack of 268. If it has an IV of 23, it'll have an Attack of 268 + 23 = 291. Does that help?
 

MetalKid

Cascade Trainer
Well, if you provide the HP Type and you get the needed EVs stated by the program before the next level up, I would think you can get exact IVs 95% of the time before or at level 20. I've gotten exact IVs by level 17 once already, and I barely tested it. :)
 
C

c={---Chibi------

Guest
Interesting stuff.

But... I feel the original one dragnair did is somewhat easier to use.
 
Dragonair's was good but it could take a long time to get the proper IVs. With this one we can get it at an early level so it will quicker (even if it is more complicated).

MetalKid:Have you PMed Dragonair or Serebii. If the IV thing works Serebii could put it on his website.
 

MetalKid

Cascade Trainer
What do you mean Dragonair's was easier to use? All you have to do is type in stats... And provide the HP Type if you want the IVs faster...

Once I get 4.00 done, I'll put out the source code. Everything will be commented, so it should be easy to deal with. Also, I will be switching providers soon so I can get 1,000 GB bandwidth per month (only $9.99). With that much BW, I'll put my IV Calc on my website. I can send a pm to dragonair and serebii and see what they say.
 

Porygandrew

Well-Known Member
I'm going to be starting a Java programming class next week and I think there might be a final project at the end of the semester in May.
I would like to do a mini program for some of the pokemon calculations (if anything, mainly focusing on the IV calculation depending on what we're taught). It won't be anything as elaborate as MetalKid's - which rocks, 'nuff said - but more of a pet project/assignment for me. I'd like to use this version of the IV formula, and if I need any help, could I ask for help from any of you who knows how to, well, make stuff?
 

MetalKid

Cascade Trainer
I'm not sure if programing just the IV calculator would be that much code. The damage calculator, however, would definately be a lot of code. As for java, I did some of that back in college, but I don't remember all that much since it has been years the last time I programmed in it. :)
 
Status
Not open for further replies.
Top