How to turn on switches in game through scripting

My current project involves a "new game +" feature upon completing the game the first time. I was able to set up the "new game +" command to appear after finishing the game the first time.. and now, I'm trying to get that "new game" to turn on all the switches in it.

The problem is, I don't know what code turns on the switches.. Can someone help me figure out how to turn on these switches through scripting?

Spoiler
[IMG]http://i702.photobucket.com/albums/ww25/emperor24/switch_zps8cbf3677.jpg[/IMG]
Consider trying this out: Yanfly's New Game +

You would just need to activate a switch regularly at the end of the game to enable the option and go from there.  It does require the Yanfly Save Engine though.  If this is not what you're looing for, check out my sig for the Event Commands Script Equivalents thread.
Consider trying this out: Yanfly's New Game +

You would just need to activate a switch regularly at the end of the game to enable the option and go from there.  It does require the Yanfly Save Engine though.  If this is not what you're looing for, check out my sig for the Event Commands Script Equivalents thread.
Thank you for the script! Although it's not exactly how I wanted to make it, I just wanted the new game + to appear after finishing the game once and replace the old new game command. Also thanks for the link on the sig =D (bookmarked!)

but how can I use the code to turn on the switches in-game? "$game_switches[1] = true" ?
That's exactly it.


$game_switches[id] = true/false
That's exactly it.

$game_switches[id] = true/false
ahh thanks! I finally got the game all modified to the way I'd hoped it would look like ^^ thanks all for the help!
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/how-to-turn-on-switches-in-game-through-scripting.17751/