Hi all! I'm working on a plugin for my game that will allow me to add an Assist Mode to the game (something that will change settings to make the game easier for people who need it). These Assist Mode settings will be saved to the local save file, rather than globally, so I would like to only allow the Assist Mode button to appear in the options menu if we are loaded into a game (not on the main menu). Unfortunately, from what I have been able to see, it appears to not be obvious how to check if we are in game from the options menu. Does anyone know how this could get done?
MV Checking if we are in game from Options Menu
Javascript/Plugin Support!SceneManager.isPreviousScene(Scene_Title)
Is the game played online?
Otherwise it would be useless to save that info in a game session rather than the global settings. Normally there's only a single player per PC or laptop playing the game.
Otherwise it would be useless to save that info in a game session rather than the global settings. Normally there's only a single player per PC or laptop playing the game.
That looks perfect, I'll give it a go when I get home tonight. Thank you!
"Normally" there's only a single player. Not always, meaning it's not useless. Besides, even if there is only a single player per machine, that person may want a normal game, then start a second casual game to try different things. Or there could be other reasons. It's a simple quality of life thing that is easy to implement and can make a pretty big difference to players.
Not really, it should be functional instead of quality of life. If it works, they won't ever need to change it. Of course, you're free to do it but it's not a logical design pattern.
This may be an "agree to disagree" thing. In my view, if there is a possibility that different save files will require different settings, forcing a player to go and change the settings whenever they change save files is something that would lead to plenty of frustration. That is both functional and quality of life, and I'd argue way more logical than "you have multiple people playing on one machine? Go dig into the settings every time you swap players rather than just loading up a save".
Either way, the original question has been answered so this thread can be closed.
Original thread: https://forums.rpgmakerweb.com/threads/checking-if-we-are-in-game-from-options-menu.159211/