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

mikey1393drago

Dragon Fanatic
Veteran
Joined
Aug 31, 2016
Messages
69
Reaction score
6
First Language
English
Primarily Uses
RMVXA
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.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,536
First Language
English
Primarily Uses
RMMV
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.
 

Leysos

Chaotic!
Veteran
Joined
Jul 4, 2016
Messages
42
Reaction score
55
First Language
English
Primarily Uses
RMMV
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.
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
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)

potbreak_00.PNGpotbreak_01.PNG
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,536
First Language
English
Primarily Uses
RMMV
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.
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
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...
 

mikey1393drago

Dragon Fanatic
Veteran
Joined
Aug 31, 2016
Messages
69
Reaction score
6
First Language
English
Primarily Uses
RMVXA
Wow. Cheers guys for your advice. When I get back home I'll fix up my events. :D  Great. The events are all separate now. Cheers for all your help guys.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,881
Messages
1,017,227
Members
137,607
Latest member
Maddo
Top