Event Chase Player Unless Player Is Hiding?

Hi everyone.

This has been giving me a few issues and I'm hoping that someone can maybe advise on what I should do.

In short, what I want to achieve is this: there's an event (enemy) patrolling around. Once the event/enemy sees the player, they must chase the player until they are deactivated. If, however, the player is "hiding", then either the chase stops and the event resumes the normal routine, or the chase never happens in the first place.

Background on things which might be influencing this: the player can shoot projectiles at the event (via Galv's Map Projectiles MZ) and when this happens, the event turns on a self-switch where the event becomes "lootable" (dead) and then deactivates.

What I achieved thus far is the patrolling bit, and the player detect bit (via the r88 Proximity Sensor plugin). I can then initiate a chase, but then one (or more) of the following always happens:

- The player cannot move at all, but can "shoot" projectiles.
- The player can move and shoot projectiles, but the self-switch that indicates the event/enemy being "dead" does not kick in.
- The event still chases the player even when the "hiding" switch is on.

Any advice is appreciated.
did you copy annd paste the event pages? Chances are the "hiding" page still has that route set
did you copy annd paste the event pages? Chances are the "hiding" page still has that route set
Thanks for the response. Unfortunately that's not the case - I manually do each page, so it's not a copy-and-paste error.

Original thread: https://forums.rpgmakerweb.com/threads/event-chase-player-unless-player-is-hiding.172055/