Switches

Hello, I've got a few questions about switches:

1) Are switches unique in the project? So there is only one switch 0001, one switch 0002 etc.? Or do they start in each new map with switch 0001?

2) If they are unique, can a switch in map X be connected with an event in map Y? 

3) If they are unique, can there be more switches than 9999?
There is only one switch 001 for the entire project. And yes, they can be connected with events in other maps. I don't know the limit on switches, but if 9999 is the max and you somehow still need more, I'm sure a plugin can help you with that. Alternatively, you can always try to use self switches as much as possible.
Yes,  switch 0001  is a unique identifier, it cannot be rewritten unless directed to.  Don't forget you have self switches too which I find greatly reduced the number of switches I use.
To add to that; if you find yourself needing to use more than 9999 switches for an RPG, you may probably be using switches wrong. Most of the time developers use "switches" in multiple cases throughout the game. Use them efficiently, reuse them, as much as possible reduce "unique case" switches to as little as possible.
Hm. I spent most of last night designing a little intro scene in an inn, with a few dialogues, events and such. I used quite some switches for this miniature, so 9999 switches may in the end not be as much as it seems. I haven't used self switches yet, and frankly, I do not really comprehend how the work ...
You can technically use variables as switches as well.  Don't forget that a switch is just a Boolean (true or false) which can be imitated with binary ( 0 and 1)

If var = 0  its false,  if var = 1 its true.  But this also gives you an added effect of having a dynamic switch.

if var = 3 Do This instead
Self Switches are pretty useful and really do reduce the amount of global switches that you need.

Read this post it should explain it.
Ah, that's a great link. Thank you. It's for Ace, but I guess in MV it should be the same or at least similar. Anyway it's very helpful for getting an idea about variables and self switches...

Original thread: https://forums.rpgmakerweb.com/threads/switches.47189/