How to turn on switches in game through scripting

Status
Not open for further replies.

Aeri_Sicher

Rookie Programmer! >.
Veteran
Joined
Jun 3, 2013
Messages
74
Reaction score
10
First Language
English
Primarily Uses
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?

 
Last edited by a moderator:

djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,700
Reaction score
1,901
First Language
Music
Primarily Uses
RMMV
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.
 

Aeri_Sicher

Rookie Programmer! >.
Veteran
Joined
Jun 3, 2013
Messages
74
Reaction score
10
First Language
English
Primarily Uses
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" ?
 
Last edited by a moderator:

Aeri_Sicher

Rookie Programmer! >.
Veteran
Joined
Jun 3, 2013
Messages
74
Reaction score
10
First Language
English
Primarily Uses
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!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top