Guys
Is there a way to write a script to activate/deactivate plugins based on map ID ?
Can anyone shed some light on this issue ?
Thanks
Step 1: code the plugin features in a way that allows them to be switched off.
Step 2: on map load (e.g. Game_Map.prototype.setup), check the map ID and enable/disable the features as required.
Wrong board - JS Plugins in Development is for plugins that you are creating (and planning to share later). Moving to JS Plugin Requests.
AFAIK there is no way to dynamically change whether a plugin is ON or OFF during gameplay. I would go about it by adding an if-branch in all necessary parts of each script's functionality that checks whether a certain Switch is on (and turn that Switch on or off depending on the map). But aside from taking a long time to do, there would be a lot of technical risk in terms of crashes due to, for example, trying to reference data structures that don't exist because they weren't created because the functionality was Off when they would have been created. This kind of thing is a lot easier to add to scripts/plugins that you are building from scratch.