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.