Change Position of Show Choices With Script Call

So I'm using the show choices script call from the script call spread sheet

choices = []; params = [];
$gameMessage.setChoices(choices, 0)
choices.push("I love you1");choices.push("I love you2");
choices.push("I love you3");choices.push("I love you4");
choices.push("I love you5");choices.push("I love you6");
choices.push("I love you7");choices.push("I love you8");
params.push()

and everything is working fine the only thing I can't figure out is how to change to position of the window since it always appears on the right side of the screen and I'd like it in the middle.
$gameMessage.setChoicePositionType = n;

where n is 0, 1 and 2, and corresponds with the 'position' of the Show Text box.

Other than that, you'd have to have a small plugin to do it, with variables or something, because the position is calculated on the fly, and you can't set it before you set up the choices (it'll be recalculated) or after the message is showing (too late).
@Shaz so something like this?

choices = []; params = [];
$gameMessage.setChoicePositionType = n;
$gameMessage.setChoices(choices, 0);
choices.push("I love you1");choices.push("I love you2");
choices.push("I love you3");choices.push("I love you4");
choices.push("I love you5");choices.push("I love you6");
choices.push("I love you7");choices.push("I love you8");
params.push();
oh - sorry. I'm working on an XP script and forgetting the syntax.

$gameMessage.setChoicePositionType(n)

but change n to be 0, 1 or 2.

Edit: looking at Window_ChoiceList.prototype.updatePlacement ...
0 moves the choice box to the left
1 moves it to the middle
2 moves it to the right

Here is what happens when you use the Show Choices command:
Code:
Game_Interpreter.prototype.setupChoices = function(params) {
    var choices = params[0].clone();
    var cancelType = params[1];
    var defaultType = params.length > 2 ? params[2] : 0;
    var positionType = params.length > 3 ? params[3] : 2;
    var background = params.length > 4 ? params[4] : 0;
    if (cancelType >= choices.length) {
        cancelType = -2;
    }
    $gameMessage.setChoices(choices, defaultType, cancelType);
    $gameMessage.setChoiceBackground(background);
    $gameMessage.setChoicePositionType(positionType);
    $gameMessage.setChoiceCallback(function(n) {
        this._branch[this._indent] = n;
    }.bind(this));
};
@Shaz worked like a charm thanks for the help 🙂

Original thread: https://forums.rpgmakerweb.com/threads/change-position-of-show-choices-with-script-call.93715/