Game_Interpreter.prototype.command356 = function() { var args = this._params[0].split(" "); var command = args.shift(); this.pluginCommand(command, args); return true; };
雪在燃 发表于 2018-1-27 22:13
与其模拟按键,不如直接调用?
找到入口然后调用不可以么?
yang1zhi 发表于 2018-1-27 22:23
我知道啊,不还是要用this.pluginCommand(command, args);
也就是Game_Interpreter.pluginCommand(comman ...
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); // 在这里插入额外的内容 };
雪在燃 发表于 2018-1-27 22:30
var _Game_Interpreter_pluginCommand =
Game_Interpreter.prototype.pluginCommand;
...
yang1zhi 发表于 2018-1-27 22:32
这个我也找到了,是
Input._latestButton = 'escape';
Input._pressedTime = 0;
yang1zhi 发表于 2018-1-27 22:32
这个我也找到了,是
Input._latestButton = 'escape';
Input._pressedTime = 0;
雪在燃 发表于 2018-1-27 23:41
查阅了半天相关代码,我觉得你这个的实现不如直接调用需要的方法来得快捷(我觉得比起按下x键,不如直接 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |