An "Action button" event preventing a "Parallel" event.

Uh... hi. Hopefully I won't embarrass myself to oblivion from my first post.


Forum's pretty big and I haven't found a solution yet, and it may be because I haven't looked hard enough.


Basically, I have a field BGM running on a "Parallel" event.


Then, there's another event triggered by the player, which presents dialog, then plays a battle BGM, then initiates a battle with that same BGM (so that the battle BGM starts during dialog before the battle, and smoothly continues into the battle)


Here's what I tried to do:


If the Parallel event only has the command to play the field BGM, then when the battle BGM is supposed to kick in, the field BGM just restarts and continues playing until the battle starts.


So I tried using switches...


 -The parallel event would turn the Switch 0001 ON,


     -then a conditional branch: -If 0001 is ON, then the field BGM plays,


                                                 -if not, then: either nothing, or BGM fade, or Exit event processing, or Erase event (tried all those)


 -the other event would turn 0001 OFF, then play the battle BGM


But even then, it's the field BGM that just restarts.


TLDR


I am guessing that the event that the player activates, while it's still active. prevents the Switch 0001 to affect the parallel event, and letting it continue into its "Else" branch.


If so, is there any way to make the parallel event go into the Else branch while the other event is active? Or is there a whole other way and I'm just overthinking it?


Thanks.
Unfortunately your description is missing several extremely important infos, like the page numbers and condition structure.


Can you please give us full screenshots of all event pages? that gives us the info we need and is faster than asking for every detail on the event pages.
Hopefully not too confusing.


Those are both events. There are no other important events in the project, I was just testing what I could do. Untitled-1.png
Why do you think you need a parallel process for this?


Did you know you can set a field BGM in the General Settings of your map?


When you initialize the battle via events you can also change the BGM right back after the battle command. From those two events I really don't see the need for a parallel process.


What your events do at the moment is this: The player interacts with event 3, comes to the point to deactivate the switch, but your parallel process event 1 tells the game "No, no! This switch remains on!" because you set the switch to on in the Contents field. The following if/else can not event work, because the game is always running this event, keeping switch 1 on.


Actually what you wanted to do is set the requirement for "switch 1 on" in the Conditions field of the parallel event. You then also have no need for the if/else statement.


Maybe it would be a good advice to take a look through the beginner guides //rmwforums.s3.amazonaws.com/emoticons/default_smile.gif You can find the links in Andars signature.
Hah! That's what I get for doing it blind.


I'll go check the guides.


And thank you very much.
Yes, I suggest you follow the link to the starting point in my signature and work through the tutorials linked there.


Basically your problems are the result of you ignoring the condition part of the events (you should not change parallel effects with conditional branches inside, you should disable the entire parallel it not needed by the page conditions), and from not entirely understanding how parallels are handled by the engine (they're processed sixty times a second, so your parallel tries to restart the play command sixty times per second) and a few similiar details (like exit event processing abort once but gets restarted the next frame)...

Original thread: https://forums.rpgmakerweb.com/threads/an-action-button-event-preventing-a-parallel-event.58163/