Killing specific mini bosses unlocks a door

In my game there will be an event where you need to kill 3 different mini bosses to bring down a barrier to progress to the boss. I am still pretty new to RMMV, and the switches and everything are a little confusing still, but after spending an hour on this I cannot seem to figure out how to get if A, B, and C bosses are all dead the barrier fades and any combination of them still alive triggers a message saying you cannot pass. Any help on this would be appreciated.
Pick a Control Variable Switch that you are not yet using, and name it something appropriate so that you don't accidentally use it again in the future.

On each of the mini bosses, after the end of the battle, add one to the variable.
On the barrier event, have a Conditional Branch which checks if the variable switch is exactly 3.
If it is, then the barrier fades.
If it isn't, then in the 'Else' section, give the message.

I think you would find Andar's compilation of info for new users helpful. One of the links he provides is to a playable tutorial on switches and variables, as well as a load of other extremely useful tutorials (the eventing one is a must). If you spend a bit of time on this now, you'll save yourself a lot of time and frustration in the long run.

Original thread: https://forums.rpgmakerweb.com/threads/killing-specific-mini-bosses-unlocks-a-door.78674/