- 217
- Posts
- 15
- Years
- Seen Nov 29, 2021
So I have the following script to adjust the level of wild Pokemon:
But a problem I'm having is that you get Pokemon levelled massively beyond when they should of evolved, or Pokemon that are too low a level to have evolved yet.
How would I go about addressing this problem?
Code:
if $PokemonSystem.scaling == "On"
newlevel=pbBalancedLevel($Trainer.party)-8+rand(5) # 8-4 levels lower
newlevel=1 if newlevel<1
newlevel=(PBExperience::MAXLEVEL)-20 if newlevel>(PBExperience::MAXLEVEL)-20
pokemon.level=newlevel
pokemon.calcStats
pokemon.resetMoves
end
But a problem I'm having is that you get Pokemon levelled massively beyond when they should of evolved, or Pokemon that are too low a level to have evolved yet.
How would I go about addressing this problem?