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!
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.
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.
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!
I know you've already found your answer, and I've already volunteered one but there's also pbJustRaiseEffortValues which only raises the EVs without checking the 100 limit. You do have to pass the amount of EVs gained, it doesn't have a default value like pbRaiseEffortValues.