Inventory based conditional Game Over

I want to get a Game Over when my character runs out of items in the inventory during a battle. So far I'm trying with just one potion, but I use it in battle and nothing happens.
This is how the troop events look like:
1669769263359.png

And the Common Event:
1669769279504.png


I tried making a parallel event to check the inventory too but it did not work.
How do I get the check to work in battle?
Change the condition from "Don't Run" to a turn condition.
I want to get a Game Over when my character runs out of items in the inventory during a battle. So far I'm trying with just one potion, but I use it in battle and nothing happens.
This is how the troop events look like:
View attachment 246220
And the Common Event:
View attachment 246221

I tried making a parallel event to check the inventory too but it did not work.
How do I get the check to work in battle?
This is something that seems to confuse a lot of users, so I promise you I'm saying this to be helpful even though to some it might read as being a smartass: if your condition for a troop event is set to "don't run" which it is by default, the event doesn't run. It needs a condition to do anything.
That's absolutely how I tried to use it when I first went into troop events - I thought it meant as long as the player hadn't run from the battle.

Even though mousing over it provides a tooltip that explains it *shrug*

Also, @Alkaline unless you also use that other places there's really no sense in having the troop event call a common event - just slap that event code directly in there.
I changed it to "Turn end" and it still doesn't work 😐
I thought it meant as long as the player hadn't run from the battle.
I thought the same thing
So I figured it out... I needed to set the variable in the event before the conditional branch.

Now it works as it should!!

Original thread: https://forums.rpgmakerweb.com/threads/inventory-based-conditional-game-over.153004/