Diagonal Movement

Hey guys/gals, I need some help with a script I am using. I am using MOGs diagonal movement script and was wondering if there is a way to disable the diagonal movement on certain maps through script call. I want the diagonal movement of the player to not be used on certain maps. Thanks for the help in advance.
Script:
there is no script call to do this, the script would have to be rewritten to allow such a switch.

you can think of scripts like your car's engine. If the car manufacturer installed a switch to do something, you can use that switch while driving.
if there is no such switch, then any change would require working on the motor - and that is not possible while driving 50 mph on the highway.
and moghunter didn't install such a switch, someone else have to add that.
It's a pretty small script so...
Ruby:
#==============================================================================
# +++ MOG - Simple Diagonal Movement (v1.0) +++
#==============================================================================
# By Moghunter
# [url]http://www.atelier-rgss.com[/url]
#==============================================================================
# Simple Script to move diagonally
#==============================================================================
module R2_Move_Diag_Swth
  OFF = 4 # switch used to turn this diagonal script off. Switch on == script off
end
# Wsitch add by Roninator2
#==============================================================================
# ■ Diagonal Movement
#==============================================================================
class Game_Player < Game_Character 
 
  #--------------------------------------------------------------------------
  # ● Move By Input
  #--------------------------------------------------------------------------   
  def move_by_input
    return unless movable?
    return if $game_map.interpreter.running?
    if $game_switches[R2_Move_Diag_Swth::OFF] == true
      move_straight(Input.dir4)
    else
      case Input.dir8
      when 2,4,6,8;   move_straight(Input.dir4)
      when 1
        move_diagonal(4, 2)
        unless moving?
          move_straight(4)
          move_straight(2)                 
      end 
      when 3
        move_diagonal(6, 2)
        unless moving?
          move_straight(6)
          move_straight(2)
        end
      when 7
        move_diagonal(4, 8)
        unless moving?
          move_straight(4)
          move_straight(8)
        end
      when 9 
        move_diagonal(6, 8)
        unless moving?
          move_straight(6)
          move_straight(8)
        end
      end 
    end
  end

end

$mog_rgss3_simple_diagonal_movement = true
It's a pretty small script so...
Ruby:
#==============================================================================
# +++ MOG - Simple Diagonal Movement (v1.0) +++
#==============================================================================
# By Moghunter
# [url]http://www.atelier-rgss.com[/url]
#==============================================================================
# Simple Script to move diagonally
#==============================================================================
module R2_Move_Diag_Swth
  OFF = 4 # switch used to turn this diagonal script off. Switch on == script off
end
# Wsitch add by Roninator2
#==============================================================================
# ■ Diagonal Movement
#==============================================================================
class Game_Player < Game_Character
 
  #--------------------------------------------------------------------------
  # ● Move By Input
  #--------------------------------------------------------------------------  
  def move_by_input
    return unless movable?
    return if $game_map.interpreter.running?
    if $game_switches[R2_Move_Diag_Swth::OFF] == true
      move_straight(Input.dir4)
    else
      case Input.dir8
      when 2,4,6,8;   move_straight(Input.dir4)
      when 1
        move_diagonal(4, 2)
        unless moving?
          move_straight(4)
          move_straight(2)                
      end
      when 3
        move_diagonal(6, 2)
        unless moving?
          move_straight(6)
          move_straight(2)
        end
      when 7
        move_diagonal(4, 8)
        unless moving?
          move_straight(4)
          move_straight(8)
        end
      when 9
        move_diagonal(6, 8)
        unless moving?
          move_straight(6)
          move_straight(8)
        end
      end
    end
  end

end

$mog_rgss3_simple_diagonal_movement = true
You are a life saver. Why you got to be so badass.

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/diagonal-movement.142912/