"Enemies Killed" counter won't work

Don't worry the thread is re-opened, in case something might go wrong.

It surprise me how common it is to call Common Events as Public Events.
Probably some people who coded in the past, got used to public variables and functions.
I got so used to it I just auto-error-correct it in my mind, while interpreting what I read.
But you are right.

As for self switches, what you said is interesting. And honestly something I never thought to do. But if it is possible, thanks for sharing the knowledge with us.
@Shaz the second page of my cutscene event was blank and had no condition, so the game read that first and didn’t check the second. i deleted the second page and now the cutscene plays properly after defeating the soldiers.

This is not a good solution. If you come back to this map after the event plays, it will play again. The correct way to make an event play once and only once is to turn on a switch or self switch at the end, then add a new event page (higher number) and set that switch/self switch as the page's condition. Don't make any other changes.

And re common events and self switches ... if a common event is called from a map event with a (Call) Common Event command, then it behaves as if it were a part of the original event commands - imagine the common event commands are just grabbed and inserted into that section of the event commands. So anything you can do with "this event" can be coded into the common event command list, and will apply to the event that's calling it - Set Move Route "this event", self switches, whatever. It's only when a common event is set as a parallel/autorun trigger with a switch to enable it - ie, it's NOT called directly by another event (not even the one that turns the switch on) - that you can't use those event-related commands.
This is not a good solution. If you come back to this map after the event plays, it will play again. The correct way to make an event play once and only once is to turn on a switch or self switch at the end, then add a new event page (higher number) and set that switch/self switch as the page's condition. Don't make any other changes.

And re common events and self switches ... if a common event is called from a map event with a (Call) Common Event command, then it behaves as if it were a part of the original event commands - imagine the common event commands are just grabbed and inserted into that section of the event commands. So anything you can do with "this event" can be coded into the common event command list, and will apply to the event that's calling it - Set Move Route "this event", self switches, whatever. It's only when a common event is set as a parallel/autorun trigger with a switch to enable it - ie, it's NOT called directly by another event (not even the one that turns the switch on) - that you can't use those event-related commands.

you aren’t able to access the map again after leaving, the city gets destroyed

Original thread: https://forums.rpgmakerweb.com/threads/enemies-killed-counter-wont-work.91881/