Would someone look and tell me what is wrong?

So I started making a button mashing event/common event based on a tutorial I saw for VX Ace. I have taken the basics of that system and made it my own but now I cannot get the event to trigger properly.

This is the map event that triggers the whole button mashing system

RPGMV Button Masher Event.jpg



This is the common event called from the main event

RPGMV Button Masher Common Event.jpg

 

Basically the map event sets a variable for the number of times you mash the button and then calls the button masher common event. The common event then displays pictures that tell the player to press the button, space in this case, and checks that the button is not being held down. Then we jump back to the map event and check how many times the button has been pressed, if you hit the limit then it completes the conditional branch and the event finishes running outside of the loop.

Somewhere in this process something is getting messed up and the button press happens rapid fire but I'm not sure why, any help will be greatly appreciated.

Here is a link to the original tutorial here on RPG Maker Web.

~Six
When you post screenshots, please show the WHOLE window, not just the list of commands. You say the first one is a map event, but I can't tell if it's on parallel process, action button, or what. This is important.


At a guess, since all the information is not available, I would suggest you put your Wait X Frames inside the loop, or maybe in both places.
Thanks for the notes Shaz, I have included the requested information in the new screenshots and added a link to the original project page. I tried adding a Wait in the loop as well but it still just moves through the event without waiting for further button presses.

EDIT: Problem solved, I just needed to think a bit more logically about the problem. This screenshot shows how I fixed it in case anyone else wants to know.

RPGMV Button Masher Event Fixed.jpg

Original thread: https://forums.rpgmakerweb.com/threads/would-someone-look-and-tell-me-what-is-wrong.50869/