Common Event overriding another Event

Hello again! -waves-

I'll try to be quick with my question! Is there a way to check and see if ANY EVENT (except common events) is currently activated? So they don't overlap? I ask this because I'm having a very problematic issue.

Example:
I have a common event where after a certain amount of time, a bird flies over the screen and the hero comments on it.
I have events set up all over the map where the hero can interact and create scenes with them.

The issue is that the common event keeps playing at the same time as my other events.

As in, the hero interacts with a rock and begins talking about it, but then the common event starts and now both the common event about the bird flying over head AND the scene about the hero talking about the rock play at the same time, exploding my game. Lol.

I've searched high and low for an answer, looked through the script list to see if I could find an answer there too. I've looked at a few different plugs. But for the life of me I can't figure this out. So any help or suggestions would be so very appreciated. Thank you for taking the time to read this!
That means you have to change your event logic.

For example if you have another event that needs to stop a common event, you can simply have that event switch off the common event at the beginning of itself and switch it on again as the last command.

Or you need to restructure the common event so that it doesn't automatically interject everywhere.

But mostly there is a question on how you even get two events to mix up their messages - are you waiting them? Because usually each interaction of an event needs to be processed completely before the next event can do something, and you specifically need to give commands to allow another event to intercept.

I suggest you show us screenshots of your events and then we can tell you how to change them.
Or you need to restructure the common event so that it doesn't automatically interject everywhere.

I'm really curious what you mean by restructuring a common event so that it doesn't interject with other events! If I could figure that out then all my problems would be solved. xD

Thank you Andar for replying! To clarify a bit more, the rock was just a simplified example. My map actually has 20+ different events and so going into each one and adding the on and off switch will take a lot of time and I was hoping there was an easier way.

Haha, a better example of what I'm talking about is a common event is being used as a parallel process to count down the hero's HP because he's been poisoned, and when it reaches zero he dies. So the hero is running around talking to npcs trying to find a potion and searching through countless barrels etc. But you know, when the counter reaches zero, he just kind of drops dead in the middle of talking to an npc...and it's just very awkward.

Hopefully that helps paint a better picture of my issue. I'm heading to bed now though, but tomorrow I'll get those screenshots! Good night or good morning to any who see this message. ♥
@Adira It sounds like you have the bird common event call set up in another event that triggers in parallel. When you want something like a time system for your game and you don't want the time system stopped by other events, this is a great setup. When you want non-overlapping events...not so much. @Andar is right. You need to set up switches, then change the way your bird common event is called to include a conditional statement that checks if you are in another event's cutscene. At the start of every cutscene, turn a switch (maybe call it Cutscene, for simplicity's sake,) ON. At the end of every cutscene event, turn switch Cutscene OFF. You can use this one switch in every and any cutscene since they should all be independent events. Now when the bird common event reaches its time, if the game is in a cutscene aleady, it will see that and skip the bird common event. Hope it helps! 🙂
The ONLY way a command sequence inside an event - any event, not just common events - can be interrupted is by placing some form of wait inside that event. There are several form of waits, but it needs one such or you need to have restructured the entire engine by plugins.

Just search the forum - you'll find half a dozen topics "How can I make the game continue while the player is talking to an NPC", exactly because everything else is stopped while an event is active and some people don't like that.

So if the player drops dead while talking to an NPC that happens because something YOU have done to the engine - he CANNOT do that in default.
So the true question here is: How have you forced the common event to work while another event is active?

That is why no one can give an answer to your original question - you need to show us what you have done to cause that bug in the engine.

Because yes, there are several ways to cause this - the answers we gave to the people who wanted this.
But we need to see how you caused this before we can tell you how to remove the effect.
I have returned awoken and gathered the requested material. I'm coming to the conclusion that I'll just need to go through every single event in my game and just add in a switch. But JUST IN CASE there is an easier method I'll still show these screenshots. Now, just to make sure there was no plugin conflict or anything. I went ahead and created a brand new project and threw together the same type of set up to make sure the problem still persisted.

Let me know if I can set up my common event in a way where it doesn't interrupt my other events. Regardless of everything, I really appreciate everyone's help thank you!

Spoiler: Screenshots
UreKKRH.png


hGwL6T8.png

vssLpai.png
You could try using this plugin and put the wait for message command in your parallel process. But there might be a more elegant way to structure your events.
For example.. why do you not just put 600 frames wait at the beginning of the event and then have all the stuff happen below that? You do not need "if : #0001 = 2" etc. .

Cheers 👋
Thank you both so much for your help. The plugin wasn't able to what I needed exactly. But it was through talking to you both that I ended up figuring out how to do it. I did go ahead and put switch in every single event and then found other topics where others were having the same problem and through their solutions and my own fiddling I managed to get the final product to work in the way I was looking for.

I really appreciate the quick replies and help you both gave in your own way! I hope you guys have a great day. ♥
You are welcome. If you have more questions do not hesitate to ask. :LZSsmile:

Original thread: https://forums.rpgmakerweb.com/threads/common-event-overriding-another-event.109332/