How to change the battle system through Yanfly Options Core Plugin?
I was able to do it but the config doesn't get loaded properly.
This is the raw text
{"Name":"\\i[4]Battle System","---Settings---":"","HelpDesc":"\"Changes the battle system.\"","Symbol":"defaultbattlesys","ShowHide":"\"show = true;\"","Enable":"\"enabled = true;\"","Ext":"\"ext = 0;\"","---Functions---":"","MakeCommandCode":"\"this.addCommand(name, symbol, enabled, ext);\"","DrawItemCode":"\"var rect = this.itemRectForText(index);\\nvar statusWidth = this.statusWidth();\\nvar titleWidth = rect.width - statusWidth;\\nvar halfStatusWidth = this.statusWidth() / 2;\\nthis.resetTextColor();\\nthis.changePaintOpacity(this.isCommandEnabled(index));\\nthis.drawOptionsName(index);\\nthis.drawOptionsOnOff(index, \\\"STB\\\", \\\"DTB\\\");\"","ProcessOkCode":"\"\"","CursorRightCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, true);\\nvar line = 'setBattleSys STB';\\nCallPluginCommand(line);\"","CursorLeftCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, false);\\nvar line = 'setBattleSys DTB';\\nCallPluginCommand(line);\"","DefaultConfigCode":"\"ConfigManager[symbol] = false;\"","SaveConfigCode":"\"config[symbol] = ConfigManager[symbol];\"","LoadConfigCode":"\"ConfigManager[symbol] = config[symbol];\\nif ($gameSystem._battleSystem == 'stb') {\\nthis.changeValue(symbol, false);\\n} else \\nthis.changeValue(symbol, true);\\n\""}
I was able to do it but the config doesn't get loaded properly.
This is the raw text
{"Name":"\\i[4]Battle System","---Settings---":"","HelpDesc":"\"Changes the battle system.\"","Symbol":"defaultbattlesys","ShowHide":"\"show = true;\"","Enable":"\"enabled = true;\"","Ext":"\"ext = 0;\"","---Functions---":"","MakeCommandCode":"\"this.addCommand(name, symbol, enabled, ext);\"","DrawItemCode":"\"var rect = this.itemRectForText(index);\\nvar statusWidth = this.statusWidth();\\nvar titleWidth = rect.width - statusWidth;\\nvar halfStatusWidth = this.statusWidth() / 2;\\nthis.resetTextColor();\\nthis.changePaintOpacity(this.isCommandEnabled(index));\\nthis.drawOptionsName(index);\\nthis.drawOptionsOnOff(index, \\\"STB\\\", \\\"DTB\\\");\"","ProcessOkCode":"\"\"","CursorRightCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, true);\\nvar line = 'setBattleSys STB';\\nCallPluginCommand(line);\"","CursorLeftCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, false);\\nvar line = 'setBattleSys DTB';\\nCallPluginCommand(line);\"","DefaultConfigCode":"\"ConfigManager[symbol] = false;\"","SaveConfigCode":"\"config[symbol] = ConfigManager[symbol];\"","LoadConfigCode":"\"ConfigManager[symbol] = config[symbol];\\nif ($gameSystem._battleSystem == 'stb') {\\nthis.changeValue(symbol, false);\\n} else \\nthis.changeValue(symbol, true);\\n\""}