• 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.

[Scripting Question] How to increase your Pokemon IVs?

EricLostie

Banned
  • 8
    Posts
    8
    Years
    • Seen Jun 6, 2023
    I want to create an item that increases a selected Pokemon IVs, similar to the golden caps in S/M.

    Is this possible?

    Thanks for the answers.
     
    Last edited by a moderator:
    A gold bottle cap is just an item that you give to a guy to raise the IV's, if I'm not mistaken. If that's the case it would something like an event that tell you this

    pbChoosePokemon(1,2,
    proc {|poke|
    !poke.egg? &&
    !(poke.isShadow? rescue false)
    })
    p=pbGetPokemon(1)
    p.iv[0]=31 #HP
    p.iv[1]=31 #Attack
    p.iv[2]=31 #DF
    p.iv[3]=31 #Speed
    p.iv[4]=31 #S.Att
    p.iv[5]=31 #S.Df
    p.calcStats

    If you want an item that, from your bag, increase the IV's, just copy the way the vitamins works with the ev's just changing it to the iv's
     
    Back
    Top