I'm updating my game with the ARPG Plugin for MZ and I had a thought about how I could make a button in the settings to allow people to turn the plugin on and off in the game itself. I don't know how I could do it or if it is something I would need to put in when the game is started for them to select, but I wanted it to be in the settings so they could turn it on and off to try the combat. If anyone has an answer for me I would appreciate the help. I am still learning how to program and do some tricks in RPG Maker itself.
MZ Making A Button In Settings
Javascript/Plugin Supportyou can't blindly turn ON and OFF in the plugin settings.
it depends on the plugin you use (link to it) and based how it works,
we need see how they activated it.
if you want it toggle able and dynamic by options or switch, we have
to look if its even possible without modifying a lot.
in case it does a lot, we can return some functions to not call them,
but if it will work and efficient is unknown.
it depends on the plugin you use (link to it) and based how it works,
we need see how they activated it.
if you want it toggle able and dynamic by options or switch, we have
to look if its even possible without modifying a lot.
in case it does a lot, we can return some functions to not call them,
but if it will work and efficient is unknown.
It's the ARPG plugin set that is on the Steam page.
The ARPG plugin has command to switch the ARPG mode on/off (that doesn't mean that the whole plugin would be turned ON/OFF). You can use VS Options Core to put an extra option in the options scene, but don't think you can just put the scripts there. Maybe just control the config value and then have a parallel common event checking that:
if the arpg mode is OFF and options setting is true ->
If the arpg mode is ON and options setting is false ->
EDIT: Or actually does the mode have to be turned ON in every map? Then you could just make a check in the autorun events that turn the arpg mode ON depending the setting value.
if the arpg mode is OFF and options setting is true ->
$gameMap.startARPGMode();If the arpg mode is ON and options setting is false ->
$gameMap.endARPGMode();EDIT: Or actually does the mode have to be turned ON in every map? Then you could just make a check in the autorun events that turn the arpg mode ON depending the setting value.
It's on an off for every map. For example though of what I was trying to word but didn't word well is my game right now also has the permadeath plugin that I had managed to allow players to choose between at the start of the game, but this is a whole different beast. I was just thinking it could be a unique idea if I could get it to work somehow.
Original thread: https://forums.rpgmakerweb.com/threads/making-a-button-in-settings.181720/