• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

Trainer Level Scaling v19.1 1.0

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

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.
Author
GVolt
Views
2,057
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from GVolt

Back
Top