Mission: Kill all monsters... HOW?

Hey all!

Basically I have a beginner questionish... Does anyone know how I'd set it so in game you have to battle the same monster but in 4 diffent locations to complete the mission. I know this is probably switch related. So if any of you kind people could please elaborate I would be eternally grateful! =)
It can be a variable related too.
I strongly suggest that you play with the rm mv tutorial before start making a game.

Answering your question, if your battle is called via event, when the player wins, raise the value of a variable to +1. And repeat this in others' battles.
When it reaches 4, your mission is complete.
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:
1585325147343.png


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.
Hey Eliaquim!

Thanks for the handy tip! It seems quite simple and is most effective. Thanks for the helpful advice it really works. I can't believe I didn't work it out myself but HEY HOO! Thanks a million Eliaquim!

HEY NeptuneTron!

Thanks for this! I will keep this method in mind if It is somehow impossible to implement what
Eliaquim instructed but yeah thx 4 the handy tip, NICE ONE !!!


THX ALL and stay safe in this crisis! =)

Original thread: https://forums.rpgmakerweb.com/threads/mission-kill-all-monsters-how.119506/