• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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