I have a custom menu that I need to activate when the game starts, and disable the original menu. I'm wondering if there is any way to have a switch activated upon booting the game, that way I do not need to manually activate it in the first room of the game? Thanks.
Switch On at Startup?
RPG Maker MZ Supportdepends what the room is, if you have a cutscene, you can do it there.
as it only required to run once.
if you have more events/scenes that runs that moment, you can implement it
on the top.
there is a small way to do it on boot, but why every time though?
as it only required to run once.
if you have more events/scenes that runs that moment, you can implement it
on the top.
there is a small way to do it on boot, but why every time though?
So I wanna have people who are testing new builds to still have access to the custom menu, but it needs an event to disable the normal menu function and implement the custom one before then. So to get it to show up in old saves I would need to activate a switch on boot otherwise I would have to manually add the event to trigger the switch to every room.
A piece of advice - give up now on trying to preserve compatibility with old saves.
Tell your playtesters that when you release new versions of the game it will break saves and require a restart.
There's too much stuff that you do in your project that will cause saves to be incompatible - not even little things with workarounds like this, but that you actually can't load an old save without crashing.
It's not worth spending your time on that when you could be making more parts of the game.
The state of switches is a part of the save game, even if you used a meta controls plugin to turn on the switch when booting the game,
1 - installing a plugin would break old saves
2 - loading the save would turn it back off
I understand what you're saying, but actually I've installed plenty of new plugins and all of my saves still work. It's usually big ones that change the functionality of the engine itself that make saves unplayable, like VisuStella Core Engine or any of its primary components, like Battle Core or Event Core for example. But anyway, this is moreso about just being able to load up a switch universally before you actually start the game. Hell, it could also be activated post-loading up the game. Is there any way?
Plugin parameters and anything loaded from notetags into object data are a part of the save file, so to some extent this can't be right. It might not be crashing your game, but it's overwhelmingly likely not doing everything the plugins are expected to do.
I did address this in my reply. You can find meta controls plugins (commonly used for things like New Game+).
You can also use caethyril's Auto Switch plugin to do things with switches every time a save is loaded. But, again, I don't see how that would work correctly with saves created before the plugin was installed...
Good luck with your project!
Thank you. It ended up working.
Original thread: https://forums.rpgmakerweb.com/threads/switch-on-at-startup.171568/