RPG Maker MZ

RPG Maker MZ

R Dec 17, 2024 @ 3:32pm
How exactly do Self-Switches work?
I feel like I'm missing something in regards to how Self Switches work because when I try to use them, they don't seem to really do anything.

I was under the impression that if you have an event that activates a Self Switch, all events that are conditioned with the matching Self Switch will happen and using this for multiple events is going to be a lot cleaner than using regular Switches for everything. But when I try to use them for that purpose, nothing happens. Am I doing something wrong?
< >
Showing 1-5 of 5 comments
Mesuen Dec 17, 2024 @ 7:23pm 
Self switches affects only it's own event, used to just switch pages. like with chests, you open the chest and the self switch trigger to change to an empty page to prevent it from resetting.
R Dec 17, 2024 @ 10:39pm 
Ah. I figured I was missing something.
ZombieKidzRule! Dec 18, 2024 @ 2:24am 
There are some great YouTube tutorials that explain switches and self-switches.

One thing I will add is that you can access a self-switch in one event by using a script in another event.

So if you are using self-switches in an event and you discover that you need to access that event remotely, without actually engaging with that event, you can use a script to turn the self-switches on or off.

It can be very useful.

$gameSelfSwitches.setValue([47, 1, ‘A’], true);

47 = Map ID
1 = Event Number on the Map
A = Which Self Switch
True = On
False = Off
Scripts are case sensitive.
Caethyril Dec 18, 2024 @ 6:45am 
Originally posted by ZombieKidzRule!:
$gameSelfSwitches.setValue([47, 1, ‘A’], true);
You've used ‘open/close quotes’ here, which will cause an error. Use 'neutral quotes' instead:
$gameSelfSwitches.setValue([47, 1, 'A'], true);
You can usually just use standard switches or variables to convey information between events, though.
ZombieKidzRule! Dec 18, 2024 @ 7:02am 
Originally posted by Caethyril:
Originally posted by ZombieKidzRule!:
$gameSelfSwitches.setValue([47, 1, ‘A’], true);
You've used ‘open/close quotes’ here, which will cause an error. Use 'neutral quotes' instead:
$gameSelfSwitches.setValue([47, 1, 'A'], true);
You can usually just use standard switches or variables to convey information between events, though.

Yes, thanks for pointing that out. It is actually how it copies and pastes from Word. I usually have to manually change the quotes.
< >
Showing 1-5 of 5 comments
Per page: 1530 50