Change Choice Window Position

Hi! Is it possible to change the position of the default position of the choice windows for VXace, like the X and Y coordinates? I've searched for some scripts, but they don't seem to do what I want, There's this but it seems I still need to do script call every choice event, and I cant make a default change, there's also this but it seems incompatible with the rest of my yanfly and theolize scripts >.<

Thanks so much for any help! ^^
Please try this! Kira was working on a set of VXAce Scripts for choice windows! 😂
Code:
#==============================================================================
# ** KIRA Move Choice Window (Standalone)
#    Ver: 1.0
#------------------------------------------------------------------------------
#  This script allows you to set the choice window to a custom position on-screen.
#------------------------------------------------------------------------------
# ** Instructions:
# 1. Insert this script below "Materials" but above "Main" in your Script Editor.
# 2. Use the following script call BEFORE a choice event to set the position:
#
#    move_choice_window(x, y)
#
#    - Replace 'x' and 'y' with your desired coordinates.
#
# Example:
#    move_choice_window(200, 300)
#------------------------------------------------------------------------------
#  * Notes:
#  None.
#==============================================================================

($imported ||= {})[:KIRA_MoveChoiceWindow] = true

class Window_ChoiceList < Window_Command
  alias kira_update_placement update_placement
  
  def update_placement
    kira_update_placement
    if $game_message.choice_position_custom
      self.x = $game_message.choice_x
      self.y = $game_message.choice_y
    end
  end
end

class Game_Message
  attr_accessor :choice_position_custom, :choice_x, :choice_y
  
  alias kira_clear_choice clear
  
  def clear
    kira_clear_choice
    reset_choice_window_position
  end
  
  def reset_choice_window_position
    @choice_position_custom = false
    @choice_x = 0
    @choice_y = 0
  end
end

class Game_Interpreter
  def move_choice_window(x, y)
    $game_message.choice_position_custom = true
    $game_message.choice_x = x
    $game_message.choice_y = y
  end
  
  def reset_choice_window
    $game_message.reset_choice_window_position
  end
end
@Kiranyaki - It does work wonders, however I do wonder if its possible to change the default choice window positions in the script, so I don't have to make a script call every choice event? xD <3 Thanks so much!! ^^
@Kiranyaki - It does work wonders, however I do wonder if its possible to change the default choice window positions in the script, so I don't have to make a script call every choice event? xD <3 Thanks so much!! ^^
Then just take the first part of the script and change the $game_message.choice_x to whatever value you want. Mine you that will force it to be at that position always.
If you ever want to change it then you have to do something else like use a variable that you can adjust easily. self.x = $game_variables[X]
change X to whatever variable number you want to use.
Then just take the first part of the script and change the $game_message.choice_x to whatever value you want. Mine you that will force it to be at that position always.
If you ever want to change it then you have to do something else like use a variable that you can adjust easily. self.x = $game_variables[X]
change X to whatever variable number you want to use.
Hi Roninator2, im sorry I dont quite understand, should I change the values in this part of the script I circled in red? Sorry I'm not well versed in how the codes stuff work >.< Thanks so much!
Untitled11.png
im sorry I dont quite understand
well I said
"change the $game_message.choice_x to whatever value you want."
self.x = 10
and then I also said
self.x = $game_variables[X]
take your pick
well I said
"change the $game_message.choice_x to whatever value you want."
self.x = 10
and then I also said
self.x = $game_variables[X]
take your pick
Ohh I realize now, I tried that and changed self.x and self.y with my coordinates, but it didn't seem to change anything when choice window shows up ingame x((

EDIT: Okay, so thanks to Roninator's idea of self.x/self.y changing, I had an idea to check for the same thing in the default VXace scripts, specifically Window_Choicelist, then I went to the "Update Window Position" part then changed the values of self.x/self.y there instead, and voila, it worked like a charm. xD <3, so umm to anyone also interested to do this:

Just go to this part of Window_Choicelist and change the values in self.x and self.y.
def update_placement
self.width = [max_choice_width + 12, 96].max + padding * 2
self.width = [width, Graphics.width].min
self.height = fitting_height($game_message.choices.size)
self.x = Graphics.width - width
if @message_window.y >= Graphics.height / 2
self.y = @message_window.y - height
else
self.y = @message_window.y + @message_window.height
end
end

Note: This is only for people who desire to fully change the default position of their game's choice window for the entirety of their game, which is something I do desire. xD

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/change-choice-window-position.177180/