MV deleted

deleted
View attachment 314884
I would like to move the choice box to be aligned with my message box. I tried using Eli's Choice Manager plugin, but it still doesn't work (I even used bigger numbers for the X/Y to even see if it move it - it did not).

How do I go about aligning the choice box to the message box? (For changing the message box width, I'm using Yanfly's Message Core and X_ExtMessagePack1. The width of the message box is 600.)

Thanks in advance for any help! 🙂
Try placing this as a plugin to overwrite what is in the corescript (place below the Yanfly stuff):
JavaScript:
Window_ChoiceList.prototype.updatePlacement = function() {
    var positionType = $gameMessage.choicePositionType();
    var messageY = this._messageWindow.y;
    this.width = this.windowWidth();
    this.height = this.windowHeight();
    switch (positionType) {
    case 0:
        this.x = 96;
        break;
    case 1:
        this.x = (Graphics.boxWidth - this.width) / 2;
        break;
    case 2:
        this.x = Graphics.boxWidth - this.width - 96;
        break;
    }
    if (messageY >= Graphics.boxHeight / 2) {
        this.y = messageY - this.height;
    } else {
        this.y = messageY + this._messageWindow.height;
    }
};

Mind you this is a quick fix.

Edit: sorry, just try this edit for now and let me know.
deleted
JavaScript:
Window_ChoiceList.prototype.updatePlacement = function() {
    var positionType = $gameMessage.choicePositionType();
    var messageY = this._messageWindow.y;
    this.width = this.windowWidth();
    this.height = this.windowHeight();
    switch (positionType) {
    case 0:
        this.x = 0;
        break;
    case 1:
        this.x = (Graphics.boxWidth - this.width) / 2;
        break;
    case 2:
        this.x = 600 - this.width;
        break;
    }
    if (messageY >= Graphics.boxHeight / 2) {
        this.y = messageY - this.height;
    } else {
        this.y = messageY + this._messageWindow.height;
    }
};

Thanks!
@bass2yang I would like to be able to use a plugin command to be able to change the position of the choice box in events. If it's not too much trouble, are you able to add that? I don't know Javascript (or any coding, really lol) so that's why I'm asking
Unfortunately, I would not be able to implement it with a plugin command without thoroughly testing, which is why I am only modifying what is there. You should be able to just use "left" or "right" alignment in your choices event command (default RPG MV event commands).

Here is the final modification you can use:

JavaScript:
Window_ChoiceList.prototype.updatePlacement = function() {
    var positionType = $gameMessage.choicePositionType();
    var messageY     = this._messageWindow.y;
    this.width       = this.windowWidth();
    this.height      = this.windowHeight();
    switch (positionType) {
    case 0:
        this.x = (Graphics.boxWidth - $gameSystem.messageWidth()) / 2;
        break;
    case 1:
        this.x = (Graphics.boxWidth - this.width) / 2;
        break;
    case 2:
        this.x = Graphics.boxWidth - this.width - (Graphics.boxWidth - $gameSystem.messageWidth()) / 2;
        break;
    }
    if (messageY >= Graphics.boxHeight / 2) {
        this.y = messageY - this.height;
    } else {
        this.y = messageY + this._messageWindow.height;
    }
};

It should work with the regular Show Choices event command.
deleted

Original thread: https://forums.rpgmakerweb.com/threads/deleted.171160/