Adding a new line to System Options (Yanfly)

Yanfly's System Options Menu allows you to add more items.  (Script can be seen here: http://dl.dropboxusercontent.com/u/49701990/YEA/System_Options.rb).  I want to give the player the option to enable/disable the mouse.

I have set it up so that when switch 200 is ON it makes a script call to enable the mouse and when it is OFF it makes another script call to disable it.  I have ensured that this data is carried over when loading a save file and so on.  It seems to work absolutely fine when activated by an event.  So the basic structure seems okay.

I have added the new line to the System Option Menu and it appears as I had expected it to, with the OFF/ON choice present.  In my innocence I thought that inserting the switch number involved into the script would mean that choosing OFF or ON there would do it.  Not so.  Choosing OFF or ON has zero effect.  Obviously I have not configured the script correctly, but I cannot see what I'm doing wrong.

Here is a screenshot of the relevant section showing what I have done.  Can anyone advise what I should have done?  Line 117 is where I have removed the comment and lines 139-141 is where I have input the new line into the menu.

SystemOptionScript_zps36b48a7e.png


Thanks.
Hmm... at first look, the options script seems to be changing the switch...


btw, when does the other script check the switch?

Original thread: https://forums.rpgmakerweb.com/threads/adding-a-new-line-to-system-options-yanfly.22258/