MV Weird conflict with YEP_RegionEvents and YEP_PictureCommonEvents

When using Yanfly's Region Events plugin by itself, things work as expected, no problems. Let's say you have Event 001, which is "Below Characters" and "Player Touch", and you also have common event 0003 tied to region 5, and you paint region 5 on top of Event 001. When the player steps onto that tile, both event 001 AND common event 0003 are triggered.

However, if you turn on Yanfly's Picture Common Events plugin, then only common event 0003 is triggered, and event 001 is not. So the Region Events plugin still "works", but regular events that are Below Characters no longer work if a region tied to a common event is on the same tile.

I tested this in a new project with no other plugins turned on, and with these two plugins in different orders, and with Yanfly's Core Engine both on and off.

I searched and searched, but couldn't find any reference to this, which seems odd considering how many people use these plugins. I was wondering if anyone knew about this and knew of kind of fix. Thanks.
Personally, I would consider that first part to be unexpected/undesirable behavior. Any time you have things from different sources triggering simultaneously, you have to know exactly what order they're getting triggered in to avoid bugs. I would rather take the region off that space and paste the contents of event 3 into event 1.

That said...I found what's causing the change, and I'll tell you how to undo it. The thing is, it's a small function and added very deliberately. So there must be an intent there, such that undoing it might break something about the Picture Common Events.

I don't use that plugin, so I'm not very familiar with its workings. But that's your warning...I would suggest simply doing what I wrote at the top here, rather than making this change. But here it is:

Starting on line 3,418 is a function called isEventRunning. Comment it out (on line 3,417 type /* and at the end of the function, line 3,423, type */). Save the changes, reload the plugin in your plugin manager. That "fixed" it for me.
Personally, I would consider that first part to be unexpected/undesirable behavior. Any time you have things from different sources triggering simultaneously, you have to know exactly what order they're getting triggered in to avoid bugs. I would rather take the region off that space and paste the contents of event 3 into event 1.

I know exactly what you mean. I myself was surprised that it worked that way, and so I did some testing, and found that it always triggers the region event first and then the normal event. For my game in particular, I don't think it really matters, but if it ever comes up as a problem, I think it'll be fixable knowing this.

I don't use that plugin, so I'm not very familiar with its workings. But that's your warning...I would suggest simply doing what I wrote at the top here, rather than making this change. But here it is:

Thank you for the warning, and also thank you for telling me how to ignore the warning and do it anyway. This is the kind of advice a guy like me can really use. I love screwing things up and learning from it, haha.

Starting on line 3,418 is a function called isEventRunning. Comment it out (on line 3,417 type /* and at the end of the function, line 3,423, type */). Save the changes, reload the plugin in your plugin manager. That "fixed" it for me.

Now I get it. Yanfly noticed a possible conflict, and was trying to protect me from myself.

I'll need more testing, but so far that seems to have solved the problem. My game is not huge in scope, so I can put every gameplay element on a single map at the same time, and I was able to test each individual thing, and all seems well.

This was a gigantic help, I can't thank you enough.

Original thread: https://forums.rpgmakerweb.com/threads/weird-conflict-with-yep_regionevents-and-yep_picturecommonevents.139735/