Button mash event

:|  anyone know how to create button mash event without using plugin? I prefer to create it manually because I don't want to install many plugin in my game. Umm, I want to make a button mashing for when the player pushing a boulder, it got stuck in a hole. So the player need to button mash the boulder a lil bit to continue forward. 
Hmm. Well, this is an awkward set up idea but the first that came to mind, creating a variable [name it how you wish], and when you enter the button mashing part, have each action button press count as a certain number of integers vs another event trying to subtract them (probably by 1...)? You could then have the system be checking for an exact number, say, 100. The player's button mashing counts for a small number, but more than the subtraction, so say it was 4 per button press, and the system is counting down -1. Pressing fast enough would beat the system and allow it to work. I imagine parallel process will be needed on the account of the subtraction and the checking for the goal integer. 


That's how I'd probably try to do it.
Sorry but I didn't understand with what you mean  🙁 can you show me an example (picture) on how to do it or is there easier way? I appreciate your reply btw
Give me a minute and I'll edit this with a demonstration if I can get my own idea to work lol.
I've laid out everything you'll need to do to get this working. The button mashing won't last very long, may a few quick seconds.

Moving Boulders.jpg

Moving Boulders2.jpg

Moving Boulders3.jpg

Moving Boulders4.jpg
I dont know what is the problem but I cant even push the boulder anywhere now  :| I only want the button mash occur when it reach the hole. After succesfully button mash, then the player can continue push forward the boulder

Button_mash.png
On the first page, copy what I did, but only after you set up the following on the first page. This will make the boulder stop moving once it reaches the hole.To clarify, turn on the self switch and push rock switch once the player stands on the space right before the hole, and the rock is sitting on the hole. Now, as I put my rock and hole in two different places from yours, you will need to change the numbers of X and Y to match the event locations around the hole, which should be one digit higher and one digit lower than the actual hole on all four sides.

Movement.jpg
There is still no button mash event occur when the boulder falls into the hole. Well I'm just wondering if using other version rpg maker will affect the way for button mash event. I'm using rpg maker mv, and I guess you are using other version. Hmm, from what I remember the button mash need label to works (or maybe not) Thank you so much for your help, I wish I can get it work but still cannot  🙁
I figured out what was wrong actually. I had it set up wrong. The variables need to be set differently. I'll edit the picture in my last post. The event is still not always going to catch the boulder, but it has a chance to now. Remember, do not copy the variables as I have put them. Put the variables as the cords of your map's hole, otherwise it'll get stuck at a different location. @twistedMind
Sorry for the late response, got busy with classes  :| anyway there is no button mash occur when the boulder got stuck. I think the problem is with the common event (it seems not activate when call common event) I'm using region id so I dont need to calculate the destination for boulder stuck  😀

EVENT_01.png

EVENT_02.png

COMMON_EVENT.png

EVENT_03.png
So here is what I've come up with regarding what you might be doing. First of all I used action button to run the button mash - I assumed that's how you were trying to button mash... And so the event is only going to get triggered if you're moving up against it, not pressing a button.


The second issue I noticed is the common event itself is not a parallel process. Since the parallel process is self regulating and repeating, it lets you run the same event multiple times while a switch is true. This is also why I had the Push Rock switch. I'd try using action button and switching the common event into a parallel process using a switch. I can't find anything else that may be suspect so please try that and let me know. In theory if you were to change this, it should actually work this time.


The reason why I say parallel process is because you essentially are calling a common event once. Plus, as you're supposed to be button mashing, you need to be proactively fighting against the system, which should be an independent, opposing force (parallel process)
okay I already change my 2nd page event to action and the common event to parallel..but there is still no button mashing, I can only see "the boulder got stuck" text many times  🙁

EVENT_02.png

COMMON_EVENT.png

GAME_EVENT.png
...Ok, don't have the text in the same event handling, put it in with control self switch A on the first page so it's just a one time notification. Question, do you know how to view variables in game? If so, then once this event kicks in, tell me if after pressing repeatedly, what does the variable say. If it is a negative number and you're pressing it a whole bunch, I'll know it needs to be adjusted. The engine may be making more negatives than the player's input is able to counter. If not, press F9 and go to the V (Variable) section.
I can push the boulder already !  😀  looks like the problem is on the common event where there's no need for variable push limit - =1 since when I pressed a button it will nver reach 20 times (push limit) it's all thanks to you when you ask me to check variable section (I can see how many times I press the button) Thank you so much for your patience to help me  😉
No problem. Glad I could help.

Original thread: https://forums.rpgmakerweb.com/threads/button-mash-event.66555/