• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Where are IVs set?

  • 12
    Posts
    9
    Years
    • Seen Sep 21, 2019
    So i want to change the way IVs get distibuted. i just need to know at which point in which script a wild pokemons and a trainers pokemons IVs get decided to then change it how i want it. so does somebody know where exactly that happens? cause i cant find it.
     
    Unless you outright modify the IVs, they are determined when the Pokemon is created, no matter how it's created - that means the code to set IVs for eggs is the same as the code to set them for wild Pokemon is the same as the code to set them for traded-from-NPC Pokemon.

    In PokeBattle_Pokemon, find "def initialize". In that function you should find something like
    Code:
    @iv[0]=rand(32)
    @iv[1]=rand(32)
    @iv[2]=rand(32)
    @iv[3]=rand(32)
    @iv[4]=rand(32)
    @iv[5]=rand(32)
     
    Can't believe it, but this is just what I was looking for! Such a coincidence!
     
    Since this is some thread necromancy, those early posts are almost certainly using an old version of Pokemon essentials.

    For version 19.1, simply search "max total ivs" with ctrl+shift+f, and change IV_Stat_Limit to 0.
    Note that this effects all Pokemon, players, trainers, and wild pokemon. Also note, that this effects all stats, so all IVs will be 0.
     
    I can't believe I'm so blind XD. I didn't even noticed those questions were from 2015. But thanks you for letting me know about the new method of doing it @burningplain.
     
    Back
    Top