One of the big changes to MZ over MV is how windows are coded. Even using FOSSIL to make most of the features work, I would not expect an MV plugin to work correctly with this.
Yanfly's Message Core only lets me change the width and number of rows, but not the height of the textbox.
I don't understand - the number of rows
is the height.
I would suggest either trying an MZ plugin, like seeing what options are available in VisuStella's Message Core, or making a plugin with the changes you want. You can copy the chunks of code below into a text editor, save it with any changes as a *.js file, and include as a plugin.
Code:
Window_Message.prototype.updatePlacement = function() {
const goldWindow = this._goldWindow;
this._positionType = $gameMessage.positionType();
this.y = (this._positionType * (Graphics.boxHeight - this.height)) / 2;
if (goldWindow) {
goldWindow.y = this.y > 0 ? 0 : Graphics.boxHeight - goldWindow.height;
}
};
The line that starts with
this.y is setting the y coordinate. By default, it goes off of the bottom/center/top that you selected (positionType) and relates that to the height of the game window.
You can change the formula after the = sign, or just replace it all with a specific number.
Code:
Scene_Message.prototype.messageWindowRect = function() {
const ww = Graphics.boxWidth;
const wh = this.calcWindowHeight(4, false) + 8;
const wx = (Graphics.boxWidth - ww) / 2;
const wy = 0;
return new Rectangle(wx, wy, ww, wh);
};
The number inside calcWindowHeight() is how many lines of text to accommodate. Again, you could replace that entire formula after
wh = with a specific number of pixels for the height.