How to make mobs to flee for player

Hey in my game i have mobs show on my mobs

i do this http://www.rpgmakervxace.net/topic/7778-create-mapped-enemies-no-more-random-battles/.

but in my game shall mobs flee if player are 3 lvls higher then

how to do this?
if you're using evented enemies, then that is basic eventing - make the events multipage, second page conditioned on a variable "player level + 3" and set a custom autonomous movement to move away from player on that page.
1) Get Hime's extremely useful Custom Page Conditions script.

2) Make a page with a higher page number than the standard "troop follows player" page, but lower than the "troop is off" page (it would be Page 2 in the example that you linked), and make it identical to the "troop follows player" page, EXCEPT it has a Custom Move Route that only consists of "Move Away From Player".

3) At the top of that page's Event list, add the Custom Page Condition: $game_party.highest_level >= X where X is a number that is 3 levels higher than what you deem the troop's level to be (troops don't have levels unless you're using scripts that give them levels).  If you want to check the party's average level instead, you'd have to make a custom method for it in Game_Party, which is not that hard to do.

BTW, this should not be in "Tech Support" - post it in the appropriate Maker's "Help" subforum.  This is important, because the approach will be different based on the Maker that you're using.  Based on the guide you linked, I assume you are asking about VX Ace.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-mobs-to-flee-for-player.41574/