No-dashing area

I was pretty sure there was the possibility to have an area on the map where dashing is disabled, for example some grass section. Maybe I'm thinking of another RPG Maker (I'm using Ace), maybe I'm just blind. In any case, I wanted to make sure and ask you guys. 🙂 Anyone know how to do it?
Here you go. Basically just set some regions and then just use in a script call the toggle_dash(true) (meaning they won't dash, etc.) and if they're not go set it to false.

Code:
# use script call# toggle_dash(true) or falseclass Game_Temp  attr_accessor :disable_dashendclass Game_Interpreter  def toggle_dash(flag = false)    $game_temp.disable_dash = flag  endendclass Game_Player < Game_Character  alias toggle_dash_dash? dash?  def dash?    return false if $game_temp.disable_dash    return toggle_dash_dash?  endend
So it's not a standard feature, alright. Thank you for your script, Archeia! 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/no-dashing-area.17621/