Hello.
I'm trying to adapt this little script I made for VX Ace.
I'm trying to modify the Scene_Gameover from rpg_scenes.js, I also looked at rpg_managers.js for something useful.
Here's what I have:
(function() {Scene_Gameover.prototype.gotoTitle = function() { DataManager.loadGame(DataManager.latestSavefileId()); # also tried DataManager.lastAccessedSavefileId but I think the problem isn't here Scene_Load.onLoadSuccess(); # without this, clicking does nothing};})();No matter what I do, I get "TypeError. undefined is not a function".
Trying other things like removing the "onLoadSuccess" line or adding other methods just make it worse, no response when clicking.
I don't know where the problem is.
I'm trying to adapt this little script I made for VX Ace.
I'm trying to modify the Scene_Gameover from rpg_scenes.js, I also looked at rpg_managers.js for something useful.
Here's what I have:
(function() {Scene_Gameover.prototype.gotoTitle = function() { DataManager.loadGame(DataManager.latestSavefileId()); # also tried DataManager.lastAccessedSavefileId but I think the problem isn't here Scene_Load.onLoadSuccess(); # without this, clicking does nothing};})();No matter what I do, I get "TypeError. undefined is not a function".
Trying other things like removing the "onLoadSuccess" line or adding other methods just make it worse, no response when clicking.
I don't know where the problem is.