Asking for help with strange event trigger...

First, thanks in advance for all the awesome tilesets, tutorials and helpful threads I've found on these forums!!!

My problem: I've been working with RPG Maker MV for a few months now and have run into a roadblock. I have a map with numerous NPCs set to "approach" the player. When the player is surrounded by NPCs and unable to move in any direction, I'd like that to trigger an event.

Does anyone have a thought on how to make that happen?

Thanks, again!
Parallel Common Event Conditional Branch Script
Code:
!$gamePlayer.canPass($gamePlayer.x, $gamePlayer.y, 2) && !$gamePlayer.canPass($gamePlayer.x, $gamePlayer.y, 4) && !$gamePlayer.canPass($gamePlayer.x, $gamePlayer.y, 6) && !$gamePlayer.canPass($gamePlayer.x, $gamePlayer.y, 8)
Checks if player is blocked in all 4 directions.
Awesome! Works perfectly. Thank you!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/asking-for-help-with-strange-event-trigger.85269/