I've been trying to make a Lore Book for a tiny bit now and I've been running into some issues. I've been trying to reference other scripts and the MV Plugin 'Dev Kit' but I've seem to have
run into a bit of a pickle.
Currently I'm just trying to get the menu to actually exist, so that it pops up and shows something. However thus far in my script, when it runs, all it does it blur the screen like it does when you open the menu, but nothing ever appears and you can't Escape out of it.
Here is the code currently:
(function() { var parameters = PluginManager.parameters('LoreBook'); function Scene_LoreBook() { this.initialize.apply(this, arguments); } Scene_LoreBook.prototype = Object.create(Scene_MenuBase.prototype); Scene_LoreBook.prototype.constructor = Scene_LoreBook; var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); if (command === 'LoreBook') { switch (args[0]) { case 'open': SceneManager.push(Scene_LoreBook); break; } } }; Scene_LoreBook.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this); }; Scene_LoreBook.prototype.start = function() { Scene_MenuBase.prototype.create.call(this); }; Scene_Lorebook.prototype.terminate = function() { Scene_MenuBase.prototype.terminate.call(this);}; function Window_LoreBook() { this.initialize.apply(this, arguments); } Window_LoreBook.prototype = Object.create(Window_Selectable.prototype); Window_LoreBook.prototype.constructor = Window_LoreBook; Window_LoreBook.lastTopRow = 0; Window_LoreBook.last = 0; Window_LoreBook.prototype.initialize = function(x, y) { var width = Graphics.boxWidth; var height = this.fittingHeight(6); Window_Selectable.prototype.initialize.call(this, x, y, width, height); this.refresh(); this.setTopRow(Window_LoreBook.lastTopRow); this.select(Window_LoreBook.last); this.activate(); }; Window_LoreBook.prototype.maxCols = function() { return 3; }; })();The main problem I've been seeing is that the Window never actually generates. And I'm not really sure why. Anyone have an idea?
run into a bit of a pickle.
Currently I'm just trying to get the menu to actually exist, so that it pops up and shows something. However thus far in my script, when it runs, all it does it blur the screen like it does when you open the menu, but nothing ever appears and you can't Escape out of it.
Here is the code currently:
(function() { var parameters = PluginManager.parameters('LoreBook'); function Scene_LoreBook() { this.initialize.apply(this, arguments); } Scene_LoreBook.prototype = Object.create(Scene_MenuBase.prototype); Scene_LoreBook.prototype.constructor = Scene_LoreBook; var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { _Game_Interpreter_pluginCommand.call(this, command, args); if (command === 'LoreBook') { switch (args[0]) { case 'open': SceneManager.push(Scene_LoreBook); break; } } }; Scene_LoreBook.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this); }; Scene_LoreBook.prototype.start = function() { Scene_MenuBase.prototype.create.call(this); }; Scene_Lorebook.prototype.terminate = function() { Scene_MenuBase.prototype.terminate.call(this);}; function Window_LoreBook() { this.initialize.apply(this, arguments); } Window_LoreBook.prototype = Object.create(Window_Selectable.prototype); Window_LoreBook.prototype.constructor = Window_LoreBook; Window_LoreBook.lastTopRow = 0; Window_LoreBook.last = 0; Window_LoreBook.prototype.initialize = function(x, y) { var width = Graphics.boxWidth; var height = this.fittingHeight(6); Window_Selectable.prototype.initialize.call(this, x, y, width, height); this.refresh(); this.setTopRow(Window_LoreBook.lastTopRow); this.select(Window_LoreBook.last); this.activate(); }; Window_LoreBook.prototype.maxCols = function() { return 3; }; })();The main problem I've been seeing is that the Window never actually generates. And I'm not really sure why. Anyone have an idea?