- Pokémon Essentials Version
- v19.1 ➖
I couldn't find a fully functional code for scaling all trainers Pokemon for v19.1 so I combined Nathoid's code (which only affected the first Pokemon) and NettoHikari's code (which didn't work in v19.1) into the code below.
The code will scale every Pokemon in every trainer's party (including partner trainers) based on the levels of your Pokemon. It makes use of the trainer modifier in Overworld_EncounterModifiers.
Paste the code at the bottom of Overworld_EncounterModifiers
Note: I'm not an advanced programmer and I only know a little bit of Ruby, so I don't really know what some parts of the code do.
Note 2: You could tweak the code to make it activate via a switch, change evolutions and moves to match levels, etc.
The code will scale every Pokemon in every trainer's party (including partner trainers) based on the levels of your Pokemon. It makes use of the trainer modifier in Overworld_EncounterModifiers.
Paste the code at the bottom of Overworld_EncounterModifiers
Ruby:
Events.onTrainerPartyLoad += proc { |_sender, trainer|
if trainer
for i in trainer[0].party
i.level = pbBalancedLevel($Trainer.party) - 3 # you can play around with the numbers here
if i.level<=1
i.level=2 + rand(3)
elsif i.level>100
i.level=100 - rand(8)
end
i.calc_stats
end
end
}
Note: I'm not an advanced programmer and I only know a little bit of Ruby, so I don't really know what some parts of the code do.
Note 2: You could tweak the code to make it activate via a switch, change evolutions and moves to match levels, etc.
- Credits