Two monsters disappearing at once?

I have a part in my game where there are trigger tiles that cause monsters to come out of the walls (well, thorny thickets). I have some tiles that make more than one come out at the same time.

However, I want it so that when you run into and defeat one of the monsters, both that and the other that came from the same trigger disappear.

Here's the event that I'd use for both of the monsters.

The trigger event sets the switch "BM4" on, and the first tab in this event is just a blank slate since the monster is to be hidden until triggered.

Untitled_zps9665b04d.png


So what I thought would work is that when you defeat one, it turns on the BM-4NO switch (to signify you've defeated it), which then erases the event, so therefore would also delete the other with the same switch.

What am I doing wrong?
Try this: Not sure if it will work since I'm not home right now.  🙂

After the If win: Simplified

 Conditional branch: Tab 3, if enemy NC2*2 (or name of the enemy), state: Death

      - Call Common Event Candy Get

      - Control Switch BM-4N0 = ON

      Erase Event

I don't really get why you need to call two common events that are the same. I think it would be best to use just one and then combine both. Unless, they are two different common events and I'm wrong entirely. I think its best to give us a picture of your Common Events  🙂

Also, instead of using erase event, try to create a new page where switch BM-4NO IS ON and put nothing inside.

Try this:

If win:

Call Common Event [Get Candy]

Call Common Event [Get Candy]

 - Control Switch BM-4N0 = ON

Event Page Create a new Tab:

Switch BM-4NO is ON.
If you have nothing on the first tab, you don't need to have it. You don't need to put a blank tab just to say "there's nothing here" at the beginning of your tabs - simply putting a condition on the tab will mean it won't show up until the condition is met.


So delete the first tab on each one, then add another tab with no sprite, and condition that by your switch 64.


So when you interact with one and battle, the switch is turned on, which then makes BOTH of them change to the second page, which has no sprite. They'll both disappear. You then also don't need to erase the event (since erase event only controls that one event, and they'll come back again next time you return to the map).


If you WANT them to fight in groups and have the whole group disappear when you win, BUT you also want them to come back if you leave the map and return, then you've got to have another event that runs either when you leave the map or when you come onto the map, that turns all those switches off again.
Actually, what Daughter of Evil told me about making the second page just have nothing on it worked! Thank you so much!

(Man I'm making a loooot of posts, I hope that these come in handy for someone on their Google search for RPGM help some day.)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/two-monsters-disappearing-at-once.23337/