Auto run Event help

Hi everyone. I'm having trouble trying to set up an event. I searched for help here but found nothing that could help me solve this. If there are threads that have an answer, I beg forgiveness, maybe I didn't search deep enough. Anyway, I want to run a character-talking event after four enemies are defeated on the map. Problem is, I am still a newbie and not too good with events that require a little more knowledge than basic events. I have a basic idea that it's gotta be auto run with some variables and possibly switches, but I am not so sure how to set it up. Can anyone help me out? Here is some more info just in case what I have said is not enough.

I have two party members start a conversation on the map. There are four enemies on the map, which the player must battle by pressing the action button, not by random encounter. And I want to continue to the story after the last of the enemies is defeated, but I want the event to play after the enemy disappears from the map, not while still in battle. I appreciate any help.
I'm assuming that the enemies can be killed in any order for this. Each time you kill one of the enemies, increase a variable by one. Then, after each increase (in each enemy), use a conditional branch that checks if that variable is 4 or higher. Once the variable is high enough, activate a switch in the conditional.

Next, create an autorun event on the map (doesn't matter where) using the switch as a condition. Have the conversation, but make certain to turn off the switch at the end so the event doesn't keep running. And activate any other switches you need to at that time as well for game progression.

One more thing. I don't know if you know this already, but use self switches to deactivate each enemy after defeating it. And create an empty page in each event that triggers on self switch. Eventing is a core concept of many RPGMaker games, so definitely learn what you can.
Thanks for the help, really appreciate it. Yes, the enemies are moving on the map, so the player can battle them in any order they wish. I just want that after the last one is defeated, for the convo-event to run. Ok, so I sorta get what you're saying, but where would the conditional be set? On all four enemy events?
Yeah, you'd have to create the conditional on each enemy. The conditional in each enemy should only activate the switch once it's at 4. The switch triggers a separate autorun event outside the enemy that starts the conversation.
Alright, lemme give it a try. This could take a while, lol. But if it works, I'll let you know. Thanks for the help.

Solved.

Original thread: https://forums.rpgmakerweb.com/threads/auto-run-event-help.76656/