If I add a function as follows:
Game_Interpreter.prototype.myFunction = function() {
// do stuff
};
and then I add a Script command to an event:
it gives me an 'undefined' error.
I have to change it to this to make it work:
Is there any way to remove the need to add this as the subject?
Game_Interpreter.prototype.myFunction = function() {
// do stuff
};
and then I add a Script command to an event:
Code:
Script: myFunction();
I have to change it to this to make it work:
Code:
Script: this.myFunction();
Is there any way to remove the need to add this as the subject?

