RPG Maker Forums

(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:

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.
    };
this.height is the part I want to change through PluginCommand. The variable is a parameter:

Code:
var messageHeight = Number(parameters['Message Text Height']);
And this is the Plugin Command I made, but it doesn't work:

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]);
            }       
    };
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?

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,035
Messages
1,018,459
Members
137,821
Latest member
Capterson
Top