Is there any way to separate the same event with conditional branches?

Hey. Here is another problem I have. The event I've made works, but seeing as I have many of the same event on my maps, is there a way to keep them separate. It is a boulder that you can only destroy with the necessary weapon. Atm, I need nine. The problem is I'm using a switch that is turned on after the event, but as I have copied it nine times, only activating one activates them all. Is there a way to avoid doing this with switches and conditional branches? And I doubt making the same event without copying will make any difference.


Below is the event.


Destroy the boulder.png


Destroy the boulder 2.png


Am I not supposed to use a switch so that it works separately? The plan is to have the player head to each rock and destroy it if necessary.
Unless you need them done in a certain order or something, use a Self-Switch for the second page. Then it will only activate that one.
Yes. Since you just copied that event nine times, when you activate that switch it activates it for all nine boulders. Using a self switch for page two will solve this issue entirely, as clearing one boulder will only affect that boulder's self switch, leaving the others untouched.
If you don't like repeating the exact same code for multiple events, getting use to common events is a good idea (its what they're for).


As for switches, why not just use a self switch? A global switch is unnecessary here.


Lastly, you don't need to repeat the same conditional branch twice.


(I recreated your event)

Spoiler
potbreak_00.PNGpotbreak_01.PNG
While a common event could work, you would still need to copy/paste the events on the map that call the common event. So, imo, kind of pointless.
While a common event could work, you would still need to copy/paste the events on the map that call the common event. So, imo, kind of pointless.



Except when you want to make adjustments to said event. It's not a big deal in this case, however, if there were a large number of these simple events as is common in RPGs, well...
Wow. Cheers guys for your advice. When I get back home I'll fix up my events. 😀  Great. The events are all separate now. Cheers for all your help guys.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-any-way-to-separate-the-same-event-with-conditional-branches.69010/