• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
7
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:
    277
    Posts
    8
    Years
    • Seen Aug 29, 2022
    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