MV How can I easily disable a button for a while?

How can I easily disable a button for a while? I need to be able to prevent the player from using the shift button for a while.
I'm using Yep button common events plugin. I have made a common event and noted the plugin command - being listed as 12 and i listed it as space bar in the plugin, now with the common event you can probably do something similar - using switches to turn off and on the button.

1668869528698.png

Notes you can also try the below.

"For those who would like for a way to toggle back and forth between the

bound common events and the default buttons, use these plugin commands."


Plugin Commands

RevertButton Dash


- Reverts all keys bound to any of the original functions back to their

original buttons and unbinds the common events bound to them. If the "All"

function is reverted, then all affected buttons will revert back to their

original functions.


SwitchButton Dash



- Switches all keys with original functions to use the common event binds

instead of their original versions. If the "All" function is switched,

then all affected buttons will switch to common event bindings if there

are any.


TriggerButton Dash



- This will cause the game to simulate triggering the button command of

one of those original functions even if there is a common event bound to

all of the keys of that original function.
Just to verify, are you wanting to disable the shift button, or are you wanting to disable dashing? Those are technically two different things.
I was messing around there are way better ways doing this switches and common events but this is the simpler effect. may not need switch A on, can just erase event and when you want to switch it back on - do the same event and change speed to 4.

step 1 create an event - conditional branch - TAB 4 - if button shift is pressed down/ Else.

Then set the movement route as shown below.

1668890255705.png


because this is an autorun it will trigger every time you enter the map. You could use a parallel but ensure self-switch A on and page 2 set to self-switch A under conditions. to make it occure the one time.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-easily-disable-a-button-for-a-while.152773/