VXAce Script that creates and check a list of events on the map and filters them

Good afternoon, programming wizards.

Based on this topic in my conversation with Andar,
Spoiler: Spoiler
I need a script that can create a list of all events on the map, capable of filtering them by the event's position/distance from the player(or whether it is in the player's view[based on the screen]) - as well as determining if the event is an enemy, a decoration, or an invisible background process.

And with that, using this data, provides a selection window which will be used to select a target(or multiple targets) on the screen.

I'd like to take this opportunity to wish everyone on the forum Merry Christmas.

Original thread: https://forums.rpgmakerweb.com/threads/script-that-creates-and-check-a-list-of-events-on-the-map-and-filters-them.181600/