MZ Checking If Events Exist In Area?

I am trying to use this plugin here. It places tiles on specific regions. The problem I have is that it places on top of events. I have events that spawn in random areas so I don't know where they will be at any given time. The creator of it has said to use script calls to check if events are in the area where it will be placed. I am struggling to figure this out.
How exactly should I go about doing that? I need to see if events are within a square/rectangle area. For example: an 8x7 area from the player. Not just a single tile. This area also changes depending on where the player is standing and facing.
There was just a thread about this a few days ago:

Do you need help figuring out how to check all the coordinates in an area?
The basic solution is either the event comand "get location info" or its script equivalent (see the pinned topic about script equivalents to event commands).

You basically specify a single tile position and what info you want from that position. One of that info options is the event ID of an event on that position.
If that returns 0 thzere is no event, if it returns a number then that number is the ID of the event.

And then loop through the positions you want to check.
There was just a thread about this a few days ago:

Do you need help figuring out how to check all the coordinates in an area?
Yes, the entire area. I guess I was hoping for an easier way than having to check each individual tile. That's going to be an absolute pain since the player can place things anywhere on the map.
That's going to be an absolute pain since the player can place things anywhere on the map.
As I mentioned the only thing you can do it to loop through the area.

Depending on what exactly you want to check the only possoble simplification would be to write a loop function in javascript and add it by plugin to allow you to call that function instead of writing the loop out every time.
But that is only possible if you have regular areas that are always handled the same way. For individual cases that would be more work.
That's going to be an absolute pain since the player can place things anywhere on the map.
Why? You write the loops once and it doesn't matter what the origin point is, the math stays the same. I don't see why that would be an absolute pain.

In order to do that, you have to know what the plugin's point of reference for the currently targeted area is - I have stuff today, so I'm not currently available to download the plugin and look through the code for that.

The other solution is it looks like the way the plugin was made to handle this is by region ID. So you could make a system where after placing an event it changes the region IDs on the tiles it covers to the prohibited region in your plugin parameters.
I figured it out. Thank you so much!!

Original thread: https://forums.rpgmakerweb.com/threads/checking-if-events-exist-in-area.163194/