Check for name of events?

Hi!

I am looking to create a system wherein the events which are on screen (enemies chasing the player) changes how many of that enemy and which enemies appear in battle.

In order to do this I wanted to be able to do a check for what entities were on screen at the time of the battle being triggered. How can I do this? My thought was to check for the names of the entities but I can't find any documentation on how to do so.

Cheers,
Snaketicus.

Original thread: https://forums.rpgmakerweb.com/threads/check-for-name-of-events.116538/