Better "Move Away From Player"

Better Move Away From Player v.1
By DreamX

 
Introduction
Events will be better at avoiding the player and get stuck less often.


Patch Notes


None


Features
Events set to "Move Away From Player" move in the direction they judge to put the most distance away from the player. The end result is that they will constantly be moving away from you unless moving would only bring them closer to the player. If you set their speed the same as player's (same as dash speed if you use dash), it's difficult to catch them unless you chase them into a narrow passage or something along those lines.


How to Use
Plug and play.



Script


Credit and Thanks
- DreamX


Author's Notes/Terms of Use
Free to use and modify for commercial and noncommercial games, with credit.
Sweet! I added the script to my game and it works great! Thanks!

My game page: 

https://www.facebook.com/TheKillerGin/
Updated with github link instead of spoiler
OMG this is what I need for VX Ace!!!!!!!!!!!!!! T^T

Original thread: https://forums.rpgmakerweb.com/threads/better-move-away-from-player.54052/