Complex event spawning for busking simulator

I'm trying to make a game where the player is a musician who's playing for people on a sidewalk, and I can't figure out how to repeatedly spawn random NPCs one at a time from the left and right ends of the sidewalk, nor to keep the process cycling after each NPC "leaves the map."

I want each NPC to have a chance at triggering a "battle" while passing by, though not necessarily by touching the player. After that, the NPC would keep walking until they leave the map, triggering the next random NPC, and so on. I also want to use a pool of NPCs that would trigger battles specific to who they are. (Ex: A Punk might trigger a battle with the "enemy" Punk.) The player will be staying in one spot as they pass by, too.

The idea is that you are waiting for each stranger to stop and engage with you. Each "battle" will actually be a performance for the individual, or possibly a group triggered by one person. Some people will just keep going, meaning they won't trigger a battle.

I'm super new at scripting and using plugins. I couldn't find a plugin, or combinations of plugins for that matter, that would allow me to do all of this. Maybe they're out there, or this isn't as hard to do myself as it's seemed so far, but I haven't been able to figure all this out. Please help!

Also, I hope this is the right part of the forum to post this. Sorry if it's not!
Galv's Event Spawner is a plugin that you'll want to check out. It might do what you're looking for.
I'm not even sure you need a plugin. If you only want to spawn one NPC at a time, one event will do that. When the event reaches the edge of the screen, you can use a "Set Event Location" command to switch it back to the other side of the screen. I'd write a common event for randomizing which NPC appears, using a variable (use "Change Image" inside the "Set Movement Route" to change the appearance), then common event(s) for each type of NPC's behavior, and use the event page to determine which common event gets called based on the value of the randomizing variable.

If you wanted them to spawn multiples at a time, then I second that you should check out Galv's Event Spawner.
Alright, I figured out how to do what I wanted using a lot of what Llareian suggested, so thank you. I also didn't realize that Autorun events will keep repeating rather than just executing once, which helps.

And Frogboy, I still downloaded Galv's Event Spawner and the Timed Event one just to see, though I'm too inexperienced to understand how to really use those yet. They seem like they would've helped if I knew more about scripting and plugins, though. Either way, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/complex-event-spawning-for-busking-simulator.88614/