I'm using Yanfly's Options Core, found here:
http://www.yanfly.moe/wiki/Options_Core_(YEP)
I'm also using Galv's Message Sound Effects, found here:
https://galvs-scripts.com/2015/11/05/mv-message-sound-effects/
I use Message SFX to control the typing effect that plays when text is typed out during a show message event. It also makes it so that there's a confirm SFX played when the player advances dialog.
What I'm trying to do is have it so that players can turn both of these sound types on or off through the options menu, which I use the Yanfly plugin for.
I actually have it almost working. I can go into the options and turn off either of those sounds and they do indeed turn off, but then if I save and reload it is back to normal. Same thing if I restart the entire game.
Here's the different code that's used in the plugin settings for the Options plugin. I feel like it has to be something I'm doing wrong here. Maybe in the Save Config Code section?
PRESS OK CODE:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
var catalyst = $gameSwitches.value(6);
if (catalyst) {
$gameSwitches.setValue(6, false)
CallPluginCommand('MSGSE TALK 1');
;
} else {
$gameSwitches.setValue(6, true);
CallPluginCommand('MSGSE TALK 2');
}
CURSOR RIGHT CODE:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, value);
CallPluginCommand('MSGSE TALK CLEAR');
CURSOR LEFT CODE:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, value);
CallPluginCommand('MSGSE TALK CLEAR');
DEFAULT CONFIG CODE:
ConfigManager[symbol] = false;
SAVE CONFIG CODE:
''
LOAD CONFIG CODE:
var value = config[symbol];
if (value !== undefined) {
ConfigManager[symbol] = Number(value).clamp(0, 100);
} else {
ConfigManager[symbol] = 100;
}
http://www.yanfly.moe/wiki/Options_Core_(YEP)
I'm also using Galv's Message Sound Effects, found here:
https://galvs-scripts.com/2015/11/05/mv-message-sound-effects/
I use Message SFX to control the typing effect that plays when text is typed out during a show message event. It also makes it so that there's a confirm SFX played when the player advances dialog.
What I'm trying to do is have it so that players can turn both of these sound types on or off through the options menu, which I use the Yanfly plugin for.
I actually have it almost working. I can go into the options and turn off either of those sounds and they do indeed turn off, but then if I save and reload it is back to normal. Same thing if I restart the entire game.
Here's the different code that's used in the plugin settings for the Options plugin. I feel like it has to be something I'm doing wrong here. Maybe in the Save Config Code section?
PRESS OK CODE:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
var catalyst = $gameSwitches.value(6);
if (catalyst) {
$gameSwitches.setValue(6, false)
CallPluginCommand('MSGSE TALK 1');
;
} else {
$gameSwitches.setValue(6, true);
CallPluginCommand('MSGSE TALK 2');
}
CURSOR RIGHT CODE:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, value);
CallPluginCommand('MSGSE TALK CLEAR');
CURSOR LEFT CODE:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, value);
CallPluginCommand('MSGSE TALK CLEAR');
DEFAULT CONFIG CODE:
ConfigManager[symbol] = false;
SAVE CONFIG CODE:
''
LOAD CONFIG CODE:
var value = config[symbol];
if (value !== undefined) {
ConfigManager[symbol] = Number(value).clamp(0, 100);
} else {
ConfigManager[symbol] = 100;
}