How would I get the current running event id?

So there is $gameMap.events()[index].isStarting() where index is the index of the event, and this works while the event it's self is "booting up", but looking at GAME_EVENT, theres no function to get the current running event. So it's up to me to write my own function.

I cannot rely on
isStarting(), because the _starting is reset once the page is set up or the setupStartingMapEvent function is run, so how does MV keep track of running versus non running events?, running being either those initiated by the player, parallel or auto run?

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-get-the-current-running-event-id.78851/