Turning a script off as an option

I'm using Yanfly's System Options and they have abilities to make switches in the options. (Yanfly's Script is found here http://yanflychannel.wordpress.com/rmvxa/menu-scripts/system-options/

I have a quick question though. I'd like to have one of the switches turn off a script. (This script being a basic mouse system found here http://www.rpgmakervxace.net/topic/3464-basic-mouse-system-addons/page-2) That way players can choose between keyboard and mouse movement. Is there a way to do that?
Did you actually TRY using the keyboard? I haven't seen a mouse script that FORCES you to use the mouse.


And no, there is not an easy way to disable that. There's not an easy way to disable ANY script via a switch, unless the author originally built in an enable/disable option.
Sorry. I should have been a little more accurate in the post. I was meaning I'd like to just turn off mouse capability if the player doesn't wanna use it. The script does still allow you to use the keyboard, but doing a option switch to disable it for players that don't want mouse capability is usually there for most games.  

Edit: Also thank you for the prompt response and answering my question
If that script allows using a switch to determine if it should work or not, then you can easily use Yanfly's script to turn off/on the switch... if not, then you need to add it by yourself...
That's quite simple, the guy who made the mouse script has already built in an on/off, he just hasn't attached anything to it...
A simple bit of scripting at the beginning should fix it.

Replace this:

#MOUSE_ICON, set to the index of the icon to use as a cursorMOUSE_ICON = 147#Whether to use 8 directional movement or notMOUSE_DIR8 = false#Use the Mouse Button Overlay:USE_MOUSE_BUTTONS = true#And here is where you set up your buttons! Simple overlay:#(Picture files are to be stored in System)## [ x , y, "filename", "script call when left clicked" ]MOUSE_BUTTONS = [            [0,416-32,"Shadow.png","SceneManager.call(Scene_Equip)"],            [32,416-32,"Shadow.png","SceneManager.call(Scene_Item)"], ]SHOWMOUS = Win32API.new 'user32', 'ShowCursor', 'i', 'i'SHOWMOUS.call(0)With this:
 

module Settings#MOUSE_ENABLE, set to the number of switch to enable/disable scriptMOUSE_ENABLE = 1#MOUSE_ICON, set to the index of the icon to use as a cursorMOUSE_ICON = 147#Whether to use 8 directional movement or notMOUSE_DIR8 = false#Use the Mouse Button Overlay:USE_MOUSE_BUTTONS = true#And here is where you set up your buttons! Simple overlay:#(Picture files are to be stored in System)## [ x , y, "filename", "script call when left clicked" ]MOUSE_BUTTONS = [            [0,416-32,"Shadow.png","SceneManager.call(Scene_Equip)"],            [32,416-32,"Shadow.png","SceneManager.call(Scene_Item)"], ]endSHOWMOUS = Win32API.new 'user32', 'ShowCursor', 'i', 'i'if $game_switches[Settings::MOUSE_ENABLE] SHOWMOUS.call(0)else SHOWMOUS.call(1)endThe line of code:

MOUSE_ENABLE = 1

You need to set up a switch for mouse enable and set the number here to the number the switch is, then set up your other script to handle that switch, then they can turn it on and off via those settings.

Original thread: https://forums.rpgmakerweb.com/threads/turning-a-script-off-as-an-option.17928/