Random Encounter and Hero's Level (Difference)

Hello, and Happy New Year


Many of you will be familiar with Earthbound.


While I'm not trying to make monsters chase you (maybe only some), the random encounters will still be the main thing.


Now, the player is going to go back to some places, eventually. And in these places the creatures will be way lower in power and numbers.


Is there a way that doesn't use lots of resources to check the disparity between the encounter and the hero? Eventually disable the encounters altogether, or whenever an encounter happens plays an animation and gives a tiny bit of XP (like in Earthbound where it directly says "YOU WON").


I already thought of other solutions, and these are not as elegant as the above. For example, when Quest A is done, monsters in Region A won't appear anymore (I'm sure there's a way to turn off the encounters). This is probably what I'm going to end up doing, if the above isn't feasible
I would probably use Hime's Random Encounter Events plugin to make this happen.


Since you can apparently use $gameTroop to obtain certain info about which troop the player is about to face, you can compare this to the party's average (or max or total) Level - I don't think the engine provides an event command for getting the party's highest level, for instance, but it is already there in the code so all you need to type to get it is $gameParty.highestLevel() and you can compare it to something about the Troop.  Then, based on whether the party's level is high enough, you can cancel the battle and award experience instead of starting the battle, or do whatever you'd like to do.

Original thread: https://forums.rpgmakerweb.com/threads/random-encounter-and-heros-level-difference.72989/