Don't get caught event?

I'm looking to make an event where the player will be placed in a room, and then have to make it to a specific point in the room without being spotted by characters in the room

The aim for the player will be to avoid the moving characters in the room by not going within 3 squares of each of the characters

a901e7ae53cee50483b2328a41b9ef4c.png


Quick example -

1 would be the event, which would be set to move randomly around the room
2 and 3 are the vicinity around the event that the player cannot step in
There is a Tutorial about different versions of "Line of Sight".
https://forums.rpgmakerweb.com/index.php?threads/direction-based-line-of-sight-events.3452/

Original thread: https://forums.rpgmakerweb.com/threads/dont-get-caught-event.90854/