• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Three perfect IVs like Gen VI?

  • 152
    Posts
    15
    Years
    • Seen Jul 6, 2022
    Hi!
    How I can add that the wild legendary / baby / Unown with three perfect IVs randomly?

    Also, I want to change Hidden Power to have 60 to default.
     
    Last edited:
    Add this to PField_EncounterModifiers. Anywhere as long as it's not inside another "Events" function.

    Code:
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       dexdata=pbOpenDexData
       pbDexDataOffset(dexdata,pokemon.species,31)
       compat10=dexdata.fgetb
       compat11=dexdata.fgetb
       dexdata.close
       if compat10==15 || compat11==15 || # Undiscovered Egg Group
              isConst?(pokemon.species,PBSpecies,:MANAPHY)
    # Manaphy is not in the Undiscovered egg group, so needs a special case
         bob=[0,1,2,3,4,5]
         for i in 0...3
           billy=rand(bob.length) # random spot in the bob array
           pokemon.iv[bob[billy]]=31 # set the IV (determined by the billy'th number in bob) to 31
           bob[billy]=nil # erasing the billy'th number from bob so no repeat selections happen
           bob.compact!
         end
       end
    }
     
    Back
    Top