- Joined
- Aug 3, 2014
- Messages
- 109
- Reaction score
- 22
- First Language
- German
- Primarily Uses
Hello,
I hope this is the right section, but there's no MV section in Scripting, so...
Anyway, I'm trying to write a plugin that displays a book.
I'm basically displaying two windows in the current map scene, fill them with text, and eventually close the windows again.
The windows are derrived from Window_Base. It looks like this:
//Creates the pages on the map screen - call in Event using $gameSystem.createPages();
Game_System.prototype.createPages = function(){
this._windowBookPageLeft = new Window_BookPageLeft(0, 0);
this._windowBookPageRight = new Window_BookPageRight(RD.Param.windowWidth/2, 0);
SceneManager._scene.addChild(this._windowBookPageLeft);
SceneManager._scene.addChild(this._windowBookPageRight);
};
//Removes the pages - call in Event using $gameSystem.disposePages();
Game_System.prototype.disposePages = function(){
SceneManager._scene.removeChild(this._windowBookPageLeft);
SceneManager._scene.removeChild(this._windowBookPageRight);
};
Now here's the thing: as soon as I actually create an instance of one of the windows
this._windowBookPageLeft = new Window_BookPageLeft(0, 0);
I can no longer save in the game. Selecting save and choosing a save slot, I only hear the buzzer and nothing happens.
This also happens when I create an instance of any other window class, such as Window_Base or Window_Gold. As soon as I instantiate, saving is disabled.
Using the "change save access" content in the event to try and manually turn on saving again does not help either.
I don't understand what's going on here. Can anyone help? I'll attach the entire script to the post.
View attachment BooksAndScrolls.js
I hope this is the right section, but there's no MV section in Scripting, so...
Anyway, I'm trying to write a plugin that displays a book.
I'm basically displaying two windows in the current map scene, fill them with text, and eventually close the windows again.
The windows are derrived from Window_Base. It looks like this:
//Creates the pages on the map screen - call in Event using $gameSystem.createPages();
Game_System.prototype.createPages = function(){
this._windowBookPageLeft = new Window_BookPageLeft(0, 0);
this._windowBookPageRight = new Window_BookPageRight(RD.Param.windowWidth/2, 0);
SceneManager._scene.addChild(this._windowBookPageLeft);
SceneManager._scene.addChild(this._windowBookPageRight);
};
//Removes the pages - call in Event using $gameSystem.disposePages();
Game_System.prototype.disposePages = function(){
SceneManager._scene.removeChild(this._windowBookPageLeft);
SceneManager._scene.removeChild(this._windowBookPageRight);
};
Now here's the thing: as soon as I actually create an instance of one of the windows
this._windowBookPageLeft = new Window_BookPageLeft(0, 0);
I can no longer save in the game. Selecting save and choosing a save slot, I only hear the buzzer and nothing happens.
This also happens when I create an instance of any other window class, such as Window_Base or Window_Gold. As soon as I instantiate, saving is disabled.
Using the "change save access" content in the event to try and manually turn on saving again does not help either.
I don't understand what's going on here. Can anyone help? I'll attach the entire script to the post.
View attachment BooksAndScrolls.js
