Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created October 26, 2017 15:25
Show Gist options
  • Save triacontane/dd18ffe449aae465f83ec35a16f8fcac to your computer and use it in GitHub Desktop.
Save triacontane/dd18ffe449aae465f83ec35a16f8fcac to your computer and use it in GitHub Desktop.
独自関数をGame_Interpreterに追加する方法です。
(function() {
'use strict';
/**
* callOriginalFunction
* オリジナルの関数です。イベントコマンドの「スクリプト」から「this.callOriginalFunction()」で呼べます。
*/
Game_Interpreter.prototype.callOriginalFunction = function() {
// do something
this.wait(60);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment