• 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!
  • Dawn, Gloria, Juliana, or Summer - 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] Removing 100 EV limit from vitamins

princessyiris

Banned
  • 34
    Posts
    5
    Years
    • Seen Feb 6, 2020
    I'd like to make it so vitamins (HP Up, Protein, etc.) can increase stats above 100 EVs. I can't tell where this limit is implemented in the scripts, or how to remove it.
     
    Have you tried searching (with Ctrl+Shift+F to look at all the script sections) for 100?
     
    A good start is seeing what the vitamin code calls!
    Code:
    ItemHandlers::UseOnPokemon.add(:HPUP,proc{|item,pokemon,scene|
       if [B][U]pbRaiseEffortValues[/U][/B](pokemon,PBStats::HP)==0
         scene.pbDisplay(_INTL("It won't have any effect."))
         next false
       else
         scene.pbRefresh
         scene.pbDisplay(_INTL("{1}'s HP increased.",pokemon.name))
         pokemon.changeHappiness("vitamin")
         next true
       end
    })

    this pbRaiseEffortValues looks promising, let's check that one out!
    There's a couple of spots where 100 shows up there, so if you change all of them, that should do the trick!
     
    Last edited:
    Did a bunch of searches for things like "HPUP" and "vitamin" and never thought to search for 100. Problem solved. Thanks!
     
    Back
    Top