Walk/Dash toggle

Hey, so, I want to add the option to change via switch between the basic "hold shift to run" to "press shift to change to run mode or walk mode"..... I'm not sure if I explained it well. Is there any way to do that? Like, if you activate a switch, it's the "press to change" option, and if you deactivate it, it's the "hold to run" option.

Otherwise, at least I'd want to toggle the auto-dash via switch, so you don't have to always press shift to run.
My KShlenam ACE Options Menu script lets you turn the Dash feature on and off. Perhaps that could help you somehow.
My KShlenam ACE Options Menu script lets you turn the Dash feature on and off. Perhaps that could help you somehow.
But I don't want to disable the dash option, I want to make it so you don't have to be holding Shift to run
I had most of this code in a script from Fomar0153. Just added the switch option.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Dash Switch Control          ║  Version: 1.00     ║
# ║ Author: Roninator2 / Fomar0153      ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║  Toggle Dash by Switch              ║    07 Feb 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║    Configure switch to control the dash function         ║
# ║    True = Press shift to run (default)                   ║
# ║    False = Toggle run/walk with button push (shift)      ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates:                                                 ║
# ║   2023-Feb-07 - Initial publish                          ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker VX Ace - except nudity    ║
# ╚══════════════════════════════════════════════════════════╝

module R2_Toggle_Dash
  Dash_Switch = 4 # switch that controls the changing of the dash controls
end

class Game_Player < Game_Character
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias dash_initialize initialize
  def initialize
    dash_initialize
    @dash = false
  end
  #--------------------------------------------------------------------------
  # * Determine if Dashing
  #--------------------------------------------------------------------------
  def dash?
    return false if @move_route_forcing
    return false if $game_map.disable_dash?
    return false if vehicle
    if $game_switches[R2_Toggle_Dash::Dash_Switch]
      return Input.press?(:A)
    else
      return @dash
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias dash_update update
  def update
    dash_update
    @dash = !@dash if Input.trigger?(:A)
  end
end
Ruby:
class Game_Player
  Dash_Switch = 4 # switch that controls the changing of the dash controls
  def dash?
    return false if @move_route_forcing
    return false if $game_map.disable_dash?
    return false if vehicle
    return true if $game_switches[Dash_Switch]
    return Input.press?(:A)
  end
end

That should suffice here.
I had most of this code in a script from Fomar0153. Just added the switch option.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Dash Switch Control          ║  Version: 1.00     ║
# ║ Author: Roninator2 / Fomar0153      ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║  Toggle Dash by Switch              ║    07 Feb 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║    Configure switch to control the dash function         ║
# ║    True = Press shift to run (default)                   ║
# ║    False = Toggle run/walk with button push (shift)      ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates:                                                 ║
# ║   2023-Feb-07 - Initial publish                          ║
# ║                                                          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker VX Ace - except nudity    ║
# ╚══════════════════════════════════════════════════════════╝

module R2_Toggle_Dash
  Dash_Switch = 4 # switch that controls the changing of the dash controls
end

class Game_Player < Game_Character
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias dash_initialize initialize
  def initialize
    dash_initialize
    @dash = false
  end
  #--------------------------------------------------------------------------
  # * Determine if Dashing
  #--------------------------------------------------------------------------
  def dash?
    return false if @move_route_forcing
    return false if $game_map.disable_dash?
    return false if vehicle
    if $game_switches[R2_Toggle_Dash::Dash_Switch]
      return Input.press?(:A)
    else
      return @dash
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias dash_update update
  def update
    dash_update
    @dash = !@dash if Input.trigger?(:A)
  end
end
It worked, thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/walk-dash-toggle.154712/