So I am looking to use VisuStella's Weather Effects plugin to create weather effects, akin to Pokémon. I use status points at the activation of the weather moves in order to trigger the effects of the weather. I want them to fade out after a couple of turns, and also to be able to check for these weather conditions for various moves or effects. However, I don't see any sort of way to call the weather plugin commands. Is there a way to do that with the way the plugin operates? Would there be a way to remove the weather when the status clears? If anyone is familiar with these or has an alternative suggestion, that would be very much appreciated.
MZ VisuStella Weather Effects - Call Plugin Command?/Clear Weather in Battle?
Javascript/Plugin SupportThe plugin commands of this plugin work the same as with any other plugin. You call them using the "Plugin Command" event command on page 3. Maybe I'm misunderstanding your question though?
You would use the "Clear Weather" plugin command at that time. You would probably want to keep track of which weather layer you used for the specific effect in a variable, so that you will know which layer to target with "Clear Weather".
The main issue is, I don't see a way to call the plugin command through the state, that's what I need to be able to clear the weather. I would have to combine it with the States Core to be able to remove the weather on Expiration, but then how I would be able to call the Plugin Command in the Notes to be able to set the clear weather is then what I am looking for.
Oh, ok. I understand now. There are two ways. Probably the easiest way would be to use this script call:
Replace
If you'd rather not use a common event, you can also call the plugin command directly through this script call:
However, figuring out the correct value for some of those parameters would be a bit tricky. If you own the plugin, and you're certain that you want to use this method, then let me know and I'll figure it out for you.
JavaScript:
$gameTemp.reserveCommonEvent(commonEventId);
commonEventId with the ID of a common event that executes the plugin command for you.If you'd rather not use a common event, you can also call the plugin command directly through this script call:
JavaScript:
PluginManager.callCommand(
interpreter,
pluginName,
command,
args
);
This event thing with the Common Events worked, thank you! This actually opens a whole lot of other doors once I play around with it more. I looked into some more things with the Cores as well and not only was this able to be used with clearing the weather, it can trigger it as well.
Now I imagine Gen 5 weather wars in a magic-heavy JRPG....
Original thread: https://forums.rpgmakerweb.com/threads/visustella-weather-effects-call-plugin-command-clear-weather-in-battle.158507/