How to stop Parallel process in multiple events.

So i created multiple events linking to each other where i have my event 39 start the parallel event and then i have a condition switch 39 for event 40 and at the bottom i created switch 40, then i create a switch back to event 39, on the 2nd page i have the condition switch 40 and on the bottom i created my last switch 41, for my event 41 with the conditions switch 41 all running at parallel and then i created a self switch for event 41 for the 2nd page and the trigger is action button. So basically i have 3 events connecting to each other running at parallel and i can't end it so my character stays frozen, can't move or turn, But here's how it looks:

pg1:                                                             pg2:                                                                pg3:                                                                pg4:

Event 39:                                                     Event 39:                                                        Event 39:                                                        Event 39:

Conditions:    contents:                                Conditions:     contents:                                  Conditions:      contents:                                 Conditions:     contents:

switch: 38      -...............                              switch: 40       -.............                                  self switch A      -.........                                    self switch B    empty

                      -..............                                                      control self switch: A = ON                                control switch: 41 = ON

                        "    "                                                                                                                                      control self switch: B = ON

                      control switch: 39 = ON

trigger:                                                         trigger:                                                             trigger:                                                            trigger:

parallel                                                         parallel                                                             parallel                                                            action button     

pg1:                                                              pg2:

Event 40:                                                      Event 40: 

conditions     contents:                                  conditions          contents:

switch: 39    -.............                                   self switch B        empty

                       "     "

                     control switch: 40 = ON

                     control self switch: A = ON

trigger:                                                          trigger:

parallel                                                          action button

pg1:                                                              pg2:

Event 41:                                                      Event 41:

conditions:    contents:                                  conditions:        contents:

switch: 41      -............                                  self switch A      -.................

                        "     "

                      control self switch: A = ON

trigger:                                                          trigger:

parallel                                                          action button
Wrong question ;-)

The key to use parallel processes is to use as few as possible by combining them whereever the logic fits, and only use them where absolutely neccessary.

There are a lot of reasons, mainly because multiple parallels create timing problems, and those are never easy to solve.

You can follow the link about "Bughunting" in my signature to learn more about the background behind parallel processes and how they affect bugs.

I strongly suggest to combine and restructure those parallel processes, especially if you're currently in the beginning or middle of the development process (if you know that nothing will be added anymore and if it currently works, you have a chance to get away with the current structure - but no guarantees, timing problems are extremely tricky.

That said, the only way to stop parallel processes is to switch them off. to do that you basically have two choices:

1) you make an event that turns the neccessary switches (preferably a common event that lists all of the switches and can be called when needed, otherwise you would have to seek for them if you add more cases)

Self-switches of other events can be changed by script command, but I don't know the syntax - search for it, it has been asked dozens of times)

2) in every event that needs to be turned off, you make a new page conditioned to a general switch, and use that switch to turn them all off

A parallel process doesn't need to be switched off to a specific page, you can add more switch-off-pages for different conditions as needed as long as all those pages have higher page numbers

2 will be difficult to pull off if the pages the event needs to switch to have follow-up-functions, it will only be easy if a switch off is all that is needed.

This might force you to default to the first option.

But again - the better solution is to restructure your parallel processes to get rid of the sequences, but we can't give tips on that without more info about them.

Also, please post this in support for the maker - I'm assuming that you're using MV based on your profile, it needs to be moved again if not

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-stop-parallel-process-in-multiple-events.54098/