I'm guessing you flipped the activated event to a new page with the self switch and from that new page are wanting to monitor player proximity. If so, on that page, create a conditional branch and select "script" on tab four. Paste the following code in the script box:
JavaScript:
(() => {let ex = $gameMap.event(this._eventId)._x;let ey = $gameMap.event(this._eventId)._y;let px = $gamePlayer._x;let py = $gamePlayer._y;let x = ex - px;let y = ey - py;let d = Math.sqrt( x*x + y*y );if (d <= 3) {return true;}return false;})();
I had to make the code one line before i could paste it in or else MV would crash on paste. Maybe because I'm running only 2 GB of memory on this machine, I don't know...
That code is written in ES6 syntax which MV now supports, tested on MV 1.6.0
It calculates the distance between the event tile and the player tile. Thats not exactly counting tiles... it uses a radius around the event and returns true when you are within it.
Let me know if that works out for ya.
oh... the page with this script needs to be set to parallel so it is constantly chacking the condition.
Running a lot of parallel events can slow your game mind you.
I would flip the page to one that isnt parallel once the player is detected to stop the process if possible.