Then is should be clearer to you, If you look at the code I post above, you should know that changing the y value will never get what you want, because every time for example if you choose bottom, then the y value will be Graphics.height - height(this is absolute) and the same goes for middle and top, what you want to do is edit the code above I give you and overwrite it in the window message section. Look again below
#-------------------------------------------------------------------------- # * Update Window Position #-------------------------------------------------------------------------- def update_placement @position = $game_message.position self.y = @position * (Graphics.height - height) / 2 # <= this is the code that prevent you to get what you want @gold_window.y = y > 0 ? 0 : Graphics.height - @gold_window.height endlook at the code above.
self.y = @position * (Graphics.height - height) / 2
That is the code you must aware.
@position value is determined by
$game_message.position, which I had said above that it comes from Top = 0, Middle = 1, Bottom = 2.
Spoiler
Now for example you choose bottom at the show text, then
@position value will be 2, now let's do the calculation here :
self.y = @position * (Graphics.height - height) / 2
self.y = 2 * (Graphics.height - height) / 2
self.y = Graphics.height - height # <= This is what you get
even if you change the y value or the window height, the position of the window message bottom border will still on the bottom screen.
For the middle and Top is also same, Let's try Top
@position value will be 0, now let's do the calculation here :
self.y = @position * (Graphics.height - height) / 2
self.y = 0 * (Graphics.height - height) / 2 <= this will result 0 because number 0 times whatever number will result in 0.
self.y = 0 # <= This is what you get
again, even if you change the y value or the window height, the position of the window message upper border will still on the upper top screen.
Now do I need to try the middle ? I believe no..
Let's just help you do this shall we?
# Instructions# Place this below Materials, above Main Process. # Go to Editable Region and edit as your own wish.module PiaCarrot module WindowMessage#-=-=-=-=-=-=-=-=-=-=-=-=# EDITABLE REGION#-=-=-=-=-=-=-=-=-=-=-=-= # This for y coordinate when you choose upper TOP_Y_COORDINATE = 10 # This for y coordinate when you choose middle MIDDLE_Y_COORDINATE = 200 # This for y coordinate when you choose bottom BOTTOM_Y_COORDINATE = Graphics.height - 10 - (4 * 24 + 24) # Graphics.height - 10 - (4 * 24 + 24) # number four is how many line number in your window message.#-=-=-=-=-=-=-=-=-=-=-=-=# EDITABLE REGION END !#-=-=-=-=-=-=-=-=-=-=-=-= endend class Window_Message < Window_Base #-------------------------------------------------------------------------- # * Update Window Position #-------------------------------------------------------------------------- def update_placement @position = $game_message.position case @position when 0 self.y = PiaCarrot::WindowMessage::TOP_Y_COORDINATE when 1 self.y = PiaCarrot::WindowMessage::MIDDLE_Y_COORDINATE when 2 self.y = PiaCarrot::WindowMessage::BOTTOM_Y_COORDINATE end @gold_window.y = y > 0 ? 0 : Graphics.height - @gold_window.height end end # End of class Window_Message Edit the window y coordinate at the Editable Region, this should do what you want.