(I hope this is the right part of the forum to post this)
Hi, I'm trying to make a plugin command but nothing seems to work, I don't understand how this pluginCommand function works. I tried watching some tutorials but none are what I'm looking for:
I have this piece of code:
this.height is the part I want to change through PluginCommand. The variable is a parameter:
And this is the Plugin Command I made, but it doesn't work:
I also tried to make it without any parameter and write Window_Message.height = Number(args[0]);
When I write MessageHeight 50, nothing changes.
Any help/idea?
Hi, I'm trying to make a plugin command but nothing seems to work, I don't understand how this pluginCommand function works. I tried watching some tutorials but none are what I'm looking for:
I have this piece of code:
Code:
Window_Message.prototype.updatePlacement = function() {
this._positionType = $gameMessage.positionType();
this.y = this._positionType * (Graphics.boxHeight - this.height) / 2;
this.x = 190;
this.width = 800;
this.height = messageHeight; // the default is 150.
};
Code:
var messageHeight = Number(parameters['Message Text Height']);
Code:
var PEZ_Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
PEZ_Game_Interpreter_pluginCommand.call(this, command, args);
if(command === "MessageHeight") {
var messageHeight = Number(args[0]);
}
};
When I write MessageHeight 50, nothing changes.
Any help/idea?

