RMMV Yanfly Options Menu - How do I make option to turn on/off a switch?

Tuomo L

Oldbie
Veteran
Joined
Aug 6, 2012
Messages
2,326
Reaction score
1,286
First Language
Finnish
Primarily Uses
RMMV
I want to make an option in the game to turn on/off a switch but I'm not sure how to do it.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,896
Reaction score
1,029
First Language
Dutch
Primarily Uses
RMMV
read this one, it works the way you want to turn of the switch On or OFF:

It can be found here [link]
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,091
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
Note that game switches/variables get reset on starting a new game or continuing from a save, so you should be careful about toggling them out of game, e.g. via the title menu. Not sure what approach the video covers.

If necessary you can use a plugin that allows for "global" game switches, e.g. Hime's Sync Save Data:
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,896
Reaction score
1,029
First Language
Dutch
Primarily Uses
RMMV
@caethyril if my link is the same as the video, it covers Olivia's Meta plugin,
I believe that persist switches when you run the game if hte switch has <meta> in it,
so it covers teh save file, and the one you save on a different slot.

<global> covers all save files entirely, so it is covered.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,586
Latest member
Usagiis
Top