- Joined
- Oct 10, 2014
- Messages
- 34
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Hi there!
So, I'm trying to call a plugin command using the VPS Dynamic Weather System and YEP - States and Buffs Core.
Basically I'm trying to make weather effects end when certain buffs do.
I'm mostly just trying to call this command:
stopWeather
into this spot:
<Custom Leave Effect>
</Custom Leave Effect>
I do see that I need to use this:
var aliasPluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
aliasPluginCommand.call(this, command, args);
if (command === 'plugincommandtextname') {
dostuff(args);
}
};
But, I'm just having a little trouble putting it all together. Would anybody be able to help me out? Thanks in advance.
So, I'm trying to call a plugin command using the VPS Dynamic Weather System and YEP - States and Buffs Core.
Basically I'm trying to make weather effects end when certain buffs do.
I'm mostly just trying to call this command:
stopWeather
into this spot:
<Custom Leave Effect>
</Custom Leave Effect>
I do see that I need to use this:
var aliasPluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
aliasPluginCommand.call(this, command, args);
if (command === 'plugincommandtextname') {
dostuff(args);
}
};
But, I'm just having a little trouble putting it all together. Would anybody be able to help me out? Thanks in advance.