var val = true;
var _plugin_command = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function (command, args)
{
_plugin_command.call(this,command,args);
if(command === 'plugin')
{
switch (args[0])
{
case 'on': val = true; break;
case 'off': val = false; break;
}
}
}
/*用plugin on/plugin off 就可以控制开关了,当然别写的太简单了以免发生冲突*/
var val = true;
var _plugin_command = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function (command, args)
{
_plugin_command.call(this,command,args);
if(command === 'plugin')
{
switch (args[0])
{
case 'on': val = true; break;
case 'off': val = false; break;
}
}
}
/*用plugin on/plugin off 就可以控制开关了,当然别写的太简单了以免发生冲突*/