How to temporarily disable dash?

During a part of the game, I want to temporarily disable player's ability to dash. How to get this done?
If you're using the built-in dash then I think you'll need a plugin. Galv has one for MV which I'm guessing will also work in MZ:
It automatically disables dashing but gives script calls to enable/disable mid-playthrough.
Alternatively, I have a dash-related plugin for MZ:
You can use its Set Dash Speed plugin command to set extra dash speed to 0, i.e. same as walking speed. There's a Reset Dash Speed command, too.
There may be other plugins available that can do this~
Otherwise you could disable the built-in dash system on all maps (via map properties) and manually implement dashing, e.g. through a Parallel event that checks if a button is held and changes player speed when appropriate. This would allow enough control to

Edit: ...implement a dash toggle or any other effects you might want by using event commands. (Not sure why that last bit got cut off.)

Original thread: https://forums.rpgmakerweb.com/threads/how-to-temporarily-disable-dash.136027/