Help about switches?

To answer one of my biggest problems, could somebody please explain to me what all switches are used for? The only answer to my question will be more research about switches. Please help.
A switch is used to help you. A switch has two states; on and off (default is off). By itself, these states do absolutely nothing, unless you, the creator, make something happen based on the on/off state of this switch. So to summarize, turning a switch on or off won't do a thing unless you use this switch in combination with other commands (such as event pages and conditional branches).


Now, stop asking questions, and go read the tutorials already.
Have you looked at tutorials and the help file?

Using Switches to Determine Game Status


Switches and variables are the primary conditions on event pages for determining game status.


Switches are for keeping track of whether a value is on or off. Use them to determine game status and progress, such as whether the quest was accepted from the king or whether the boss was defeated.


At the start of the game, all switches are set to off. The execution of events that change game status will change the value of certain switches according to the Contents setting (use the Control Switches event command).


By using the same switch in the Condition setting of other event pages, you can switch the content of map events all at once when the value of all the switches is on. Build the game story by changing overall game status through changes in these events.
Switches represent milestones in your game. Your events use switches to determine what should happen at different points in the game.


Research them a bit (yes, you DO need to research - I had to look up the information above, and you could have done it just as easily as I did), look at a few examples, try it out yourself, then if you still don't understand, come back and tell us what you've done, what happened, what you expected to happen, and where your understanding is lacking, and we'll fill in the blanks 🙂
Switches are basically signal variables to store and condition something on them.

For example, you can make a switch "Chapter 1", then create half a dozen events with the condition "Switch Chapter 1 is ON".

Those events will only be visible if the switch "Chapter 1" is ON, and you can use other events to turn that switch ON at the beginning, and turn it OFF (and a "Chapter 2" switch ON) when the player reaches that part of your story.

Or you can use a self-switch on a chest to make sure that the treasure can only be taken once (Treasure is there when the switch is OFF and disappears when the switch is turned ON, and you place the control for that switch behind the code used for taking the treasure.
Thanks! It really helps. I guess the thread can close now.
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/help-about-switches.19058/