How can I limit player's ability to dash?

Basically the subject can be seen above. I need the player to be able to dash only from time to time, as if he had a stamina bar. I've seen one plugin for that, but it doesn't work for me, probably it breaks YF's plugins or vice versa. Is there any other way around?
Simplest one is this parallel process common event
If shift is pressed: If switch dash is off: If variable stamina is greater than zero: Turn switch Dash on and Move event: player, decrease speed six times, increase speed five times.
Else: Turn switch dash off, decrease speed six times, increase speed four times.
That sounds nice.

Any other ideas, guys? Just to see if anyone has them
Bump, because parallel processes are cool and all, but I already have too many running at the same time on many maps, it's lagging a bit already.
You could always post the plugin that you tried, and the error message you're getting, and see if someone can help you fix it.

What is the trigger to decide when they start/stop dashing? Is it automatic or does the condition have to be met and they also have to hold down a key?
I haven't tried a single plugin. The one I saw just a) works differently from what I need and b) is actually for VX Ace.

Trigger for dashing? The same button we all know and love - left shift. To run they gotta hold the key! 🙂
And I'd also like to turn off stamina on some maps, so players can run around freely without worrying about stamina.
You said you saw a plugin but it didn't work for you. How do you know, if you haven't actually tried it?

You really need to provide more information - information that is useful ("I saw a script but it's for Ace" is not useful if you're using MV).

The player can already dash by holding the shift key. What do you want to add/change about it? You can disable dashing on individual maps in the Map Properties. If you want something else to control it, you need to actually say what it is.

There IS no stamina unless you have a plugin. So maybe say what plugin you're using (and provide a link to it) and someone might be able to tell you how to turn it off.

Or maybe you are asking for help finding a plugin that adds stamina, can be turned off on certain maps, and the player can only dash while they have stamina? That's a completely different request to what you asked for in your OP, but I'm thinking that's actually what you're wanting.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-limit-players-ability-to-dash.82382/