Herding Script Request (Details in post)

Here is a vid of what i want - https://www.youtube.com/watch?v=SP24_EYuKJE

As you can see from the vid the player runs towards the creatures and they run away from him, then into the pen. Can this be done in vx ace? And help would be appreciated! Also can it affect a global Progress bar when they get into a pen?
Wait a sec couldn't  i use a event case script, set the event to flee from you at a distance then set a event in the Pen to event touch and have it close when the event goes in?
Yes, or you could even set the event to move away from player on player touch (or action button). That way you have to interact with them some, but once you either touch them (or hit the action button), you can make them move one square away by putting a set move route inside the event.
tearsofthenight, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Edit your post instead of double posting.

Original thread: https://forums.rpgmakerweb.com/threads/herding-script-request-details-in-post.37267/