I have come across a game-breaking issue, and I am desperately seeking a kind soul who would possibly know what to do and be willing to do it for me.
The issue begins with Yanfly's Button Common Events.
(https://github.com/Archeia/YEARepo/blob/master/Field/Button_Common_Events.rb)
I have six common events set to buttons. Q opens an inventory screen (displays pictures and choices), W opens a map screen (displays pictures and choices), X opens an equip screen (pictures and choices again), and A, S, and D, can have equipment set to them. Equipment works similar to Zelda 1. You can put down a bomb, or fire a bow, or use a magic wand to burn certain trees with fire or freeze water. I don't think the contents of the common events are the problem here though.
What I've found is that events on the map that can be activated on touch can be skipped using the button common events. If you step toward the tile that the touch event is on, and press a common event button during the walking animation, when you land on the event, it'll do the common event linked to the button, but not the touch event.
Alternatively, I tried having the touch events be parallel processes that trigger when your map X and Y matches the events map X and Y, but that caused some even weirder problems that I couldn't even begin to understand, so I don't think it's a viable solution.
Now, the built in menu doesn't do this. If you try to get into the menu while moving to a touch event tile, nothing happens before, nothing happens after, and the touch event will activate when you stop moving. Ideally, I would like to have the common event buttons work the same way as the built in menu. I'm assuming it's just disabling the input while the player is moving, but I don't know much about how the inner workings of the program do their thing.
I don't know if this is as easy as copying and pasting code that already exists, or if it's a little deeper than that, but if someone had an idea of how to make this work, I would be very grateful. Without a fix, it's essentially forcing me into scrapping a lot of the work I put in, replacing my custom mechanics for boring "Want to try doing this? Yes/No" sort of stuff, and that's really lame after I got so excited about making things work the way I imagined them to work.
Please. I'll beg if you want me to.