[SOLVED] Issue with On Screen Encounters

I have my game set up for on screen event encounters. I have them working as intended using a few different plugins. YEP Event Chase Player, YEP Event Encounter Aid, and YEP Force Advantage. The issue I'm having is that while the enemy can sneak up behind the player and force and advantage, and neutral battles can be triggered from every direction they should. But no matter what the Player can not sneak up on an enemy. Even if the enemy movement is completely disabled and they are supposed to be stationary facing away from the player they still turn around at the last second and trigger a neutral battle rather than a player advantage battle.
you need to enable direction fix to prevent the automated turning.
unfortunately that disables all turns, so you have to find a way to disable that before a move of the event and reenable it after the move but before player actions are checked
you need to enable direction fix to prevent the automated turning.
unfortunately that disables all turns, so you have to find a way to disable that before a move of the event and reenable it after the move but before player actions are checked
Thank you that helped get me in the right direction. YEP Encounter Aid has a command for this:
Event Notetag:
<Encounter Lock>
<Encounter Direction Lock>
- This will cause the event to not immediately face the player when
approached making it possible for the game to check the direction each is
facing.
<Follower Touch>
<Follower Trigger>
- This will allow the event to trigger if the event touches a follower and
not just the main player.

I had been trying to use it before but with no success. What worked for me was moving the order of operation on the movement for the event. I had been calling the this._chaseRange = x script from YEP Event Chase Player first and then calling Random Movement. For some reason this didn't work. But when I had the event call Random Movement first and then the chase player script it seems to be working correctly now.

Original thread: https://forums.rpgmakerweb.com/threads/solved-issue-with-on-screen-encounters.133672/