Eliaquim's solution is the simplest and most elegant way of doing this, but you could hypothetically also do it with a series of
Conditional Branches.
Set each monster's event to a switch (as an example, the first monster gets the switch 0001, the second monster gets 0002, and so on and so forth), and when they are defeated, set the switch to ON, using a
Control Switches code block.
Then, in your check to see if all the monsters have been defeated, you use a series of "nested"
Conditional Branches (that is, a
Conditional Branch within a
Conditional Branch). You would check the switch assigned to your first monster to see if it's been defeated, and if it has, then you have another
Conditional Branch to check the switch to see if your second monster has been defeated. If it has, then you have another
Conditional Branch to check the switch assigned to your third monster, and so on and so forth.
It should look a little something like this:
As I say, Eliaquim's solution is much simpler to implement, and is a much more elegant solution, but there are times when it is possible it might not be feasible, for which this method might be a valid alternative.
In general though, I'd try to use Eliaquim's method, as it will save you a lot of time in coding, as well as computational power by your users (because it has fewer steps). I'd avoid using this method as much as possible if I had to implement more than 3
Conditional Branches, just because that's where coding it in starts to get very tedious.