Way to temporarily move the "choices" window?

Had a look for solutions to this, but I only found stuff that's about moving the choices window throughout an entire game.

Can anyone tell me how I can...

  • Temporarily call something which will move the choices window to appear at X/Y coordinate of my choosing?
  • Call something to reset this effect so that it's back to normal once this part of the game is done?
Basically I have a minigame where I want it to be in a different position, but only for a short time. The default is fine in all other cases.
Code:
_alias_windowchoicelist_updateplacement = Window_ChoiceList.prototype.updatePlacement;
Window_ChoiceList.prototype.updatePlacement = function() {
    if ($gameSwitches.value(1)){
        this.x = $gameVariables.value(1);
        this.y = $gameVariables.value(2);
    }else _alias_windowchoicelist_updateplacement.call(this);
};

If you want to change the position, set switch to on (feel free to change the switch ID to whichever you need).
Then take x and y from variables (change the 1 and 2 to whichever variable ID you see fit)
Put an invisible empty textbox eventcommand infront of the show choices command, depending on the position of the textbox,
the choice box will have a different position.
@EthanFox I have been tinkering on a plugin for another forum user that will allow you to adjust the X, Y, columns, rows, and text alignment of a choice window. Choice List Options

Code:
// Temporarily set the X and Y values of the Choice List window ...
ossra ChoiceList setPosition x y retain
// Set 'retain' to true if you want to lock in the X and Y values

Original thread: https://forums.rpgmakerweb.com/threads/way-to-temporarily-move-the-choices-window.113204/