How about we teach you to fish....??
Here's a nifty little trick I use all the time.
You know that there is an event command to set a switch, right?
All of the event commands are handled in the interpreter.
Let's take a look at Interpreter 2, and search for "switch"
On line 60, it says "when 121 #control switches" so let's look for 'command_121
Found it! right at the top of interpreter 4
The line that sets the switch:
$game_switches[n] = (@parameters[2] == 0)
(@parameters[2] == 0) is a 'logical' statement that returns either 'true' or 'false'
So, $game_switches[n] = true turns it ON
and $game_switches[n] = false turns it OFF
Be Well