Issue with Custom Menu on separate map, using Yanfly Button Common Events.

Hey all, I was following this tutorial to make a custom menu.

Everything worked out great, however I have an issue with using a common event triggered by a button press.

The player is able to push this button during movement, which transports them to the custom menu map. If the button is pressed while moving towards a "Below player - player touch" trigger the event will never trigger. When the player is transported back to their location after being in the custom menu map they will be on top of the event but it will not go off.



(Example in game, showing the event working and how the default menu is not accessible during movement and then showing bypassing the event by using the custom menu)

I am wondering if there is any way to...
1. Disable calling the common event during movement
2. Disable the plugin/button during movement
3. Allow the below player touch event to trigger when you are transported on top of it from another map

Thank You!
I made an evented menu as well, but not through a different map,
this can have indeed issues, but you can solve it.

you probably need to add at hte beginning something like this:

if: script: !$gamePlayer.isMoving();
call menu
end

if the player is moving, you cannot call the menu, if the player dont move,
he can open the menu.
Wow thanks a ton man, it worked easily. I'm really surprised I saw nobody suggesting anything like that in the other places I looked.

Edit: It still seems like it can happen if I mash the key really fast while moving, but events trigger first since it considers me having stopped first, thank you I thought for a moment this wasn't going to work
this kind is also used in a steatlh idea, so it can be usefull in many places.
if you want to avoid the smashing, add a 20-30 wait frames (mostly recommend)
to avoid to open anything ones the button is pressed or triggered 🙂

but if it works good, keep it up, but transfer to a map as also 1 disadvantage
personally, specailly in a group, if you face down, and turn back, it can have face up,
the most bad side is, if you have followers, it's always stacked when your back
on the map you was.

but keep up the nice work, your menu looks good 🙂
Thanks, it's mostly just a placeholder menu for now but since I know a bit about photoshop I just made something up for testing 🙂
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-custom-menu-on-separate-map-using-yanfly-button-common-events.134542/