"Enemies Killed" counter won't work

i have a scene in my game where my characters need to clear a small city of enemies. There are 6, and the battle is initiated by talking to the enemy. They each say a line of dialogue before starting the fight. Take a look. Capture.PNG

I have an autorun event with condition "numberofsoldierskilled is greater than or equal to 6" that advances the game, but when I actually kill the 6 soldiers, nothing happens. am I doing something wrong?
Public events cannot perform a self switch.
This looks correct to me, so my instinct would be that you're doing something wrong with the pages or placement of your Autorun event. Is that Autorun event an event on the map, or is it a common event? Is it on the same exact map as the six battles? If it's on the map, do you have any Pages numbered higher than that page with the "# of enemies > 6" condition? If it's a common event, do you have a Condition Switch for the event?
Please show the FULL event window and not just a cropped version of it - often the issue lies in the information that's been removed.

Could we see the event where you're checking the variable? Again, the full window, not just the command list.
sorry for the late response, here they are.
battletrigger.PNG

here we have the event for one of my soldiers.

advancegame.PNG

and here we have the cutscene that's supposed to play after they've all been killed.
Please show the FULL event window and not just a cropped version of it - often the issue lies in the information that's been removed.

Could we see the event where you're checking the variable? Again, the full window, not just the command list.
This looks correct to me, so my instinct would be that you're doing something wrong with the pages or placement of your Autorun event. Is that Autorun event an event on the map, or is it a common event? Is it on the same exact map as the six battles? If it's on the map, do you have any Pages numbered higher than that page with the "# of enemies > 6" condition? If it's a common event, do you have a Condition Switch for the event?

see images above.
What's on the second page of that event? If NOTHING is happening, it's probably that the second page is active and the first one isn't. The engine looks at pages from the highest number to the lowest, and as soon as it finds one with no conditions, or where the conditions are filled, it makes that the active page and stops checking. So if page 2 is blank and has no conditions, that will be the page that's active, and page 1 will never be checked.
Double-post notice: Voltss
If you want to add anything, just use the Edit button on your first post and add in the additional information and/or comment.

Though in this instance, if you had just tagged Shaz and Wavelength in the first post, you would not have needed to quote them to indicate who you were replying to. To tag someone, simply use @ plus their username like this @Voltss. As you type it, you will get a dropdown list. Select the one you want
Double-post notice: Voltss
If you want to add anything, just use the Edit button on your first post and add in the additional information and/or comment.

Though in this instance, if you had just tagged Shaz and Wavelength in the first post, you would not have needed to quote them to indicate who you were replying to. To tag someone, simply use @ plus their username like this @Voltss. As you type it, you will get a dropdown list. Select the one you want

oh oof sorry, i’ll remember that next time.

@Shaz the second page is blank triggered by self switch a, the end of the event is taking the characters to the world map and then triggers the self switch a.
@Voltss Is your issue:
  • The variable is not being increased?
or
  • The variable increases to 6 but the autorun event doesn't realize it?
@Voltss Is your issue:
  • The variable is not being increased?
or
  • The variable increases to 6 but the autorun event doesn't realize it?

that's part of the problem; I don't know. I'm trying to figure that out.
Press F9 during a playtest and let us know which one it is.
@Voltss, if you're not sure what value your variables are being set to, you can press the F9 key while testing your game. This will bring up a menu with a list of all your switches and variables, and from there you can see what they are currently set to.

Edit: beaten by @Aloe Guvner! 🙂
Everything looks good to me, assuming that Page 2 isn't being triggered for no reason (you should test this by temporarily placing eventing on Page 2 of the "after you've beaten six soliders" autorun event). Definitely check the Variable using F9 like other have mentioned. Again, an assumption here is that you are on the map that this autorun event is on. Beyond that, I wonder if it could be a problem with plugins changing event page behavior?
i solved it, thanks everyone
how?
I am not closing this, to give you the opportunity to write how it was solved, so other members can find this thread helpful.
If you reply and want this thread closed, please report it again. Thank you.
@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.
Opening in case something wrong would actually happen in the process.
Public events cannot perform a self switch.
I know this is solved, but I want to put this here to avoid confusion for future people who may read it. I just want to correct something above, common events (you called them public events), most certainly can perform a self switch, if they are being called into an event on the map. I use common events for basically everything, and I have self switches all over my common events. What you CANNOT do is have a self switch if the common event is just running "parallel" without being loaded by an event on a map.. because there's no event to set the switches for. To get around that, you can set a self switch in a movement route (but i advise against movement routes in common events because it's tricky if you're not sure what you're doing or selecting).

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