Text Box Vertical Reposition?

I'm using Yanfly's Text Script which works fine and all, the only thing is I'm looking for a way to reposition the y-coordinate of how the text box defaults to when at the bottom of the screen. Here's an image for reference of what I'm trying to do.
Is there any way do accomplish this through the default database? I was too scared to mess something up.
.
Assuming you're talking about about the Ace Message System, there isn't a built-in method for it. You'll have to patch Window_Message#update_placement. For example, add the following after the self.y assignment:
Code:
self.y -= <your offset here> if @position == 2
Add one line after line 865
Code:
    self.y = (Graphics.height - self.height) - 16
so it looks like this
Code:
  def adjust_message_window_size
    self.height = window_height
    self.width = window_width
    create_contents
    update_placement
    self.x = (Graphics.width - self.width) / 2
    self.y = (Graphics.height - self.height) - 16
    start_name_window
  end
just change the value of 16 to whatever you want the box to be raised up by.

Question do you want the box to be adjustable? So that you can change the height whenever you want?
Add one line after line 865
Code:
    self.y = (Graphics.height - self.height) - 16
That doesn't account for window position at all, so it'll always be stuck at the bottom.
That doesn't account for window position at all, so it'll always be stuck at the bottom.
It did adjust the top and middle windows. but worked in my tests for the bottom.
However this is a better code to use:

Code:
    case $game_message.position
    when 2
    self.y = (Graphics.height - self.height) - 16
    end

Or with a variable labeled at the top
VARIABLE_HEIGHT = 23 # whatever variable used to adjust height
Code:
    case $game_message.position
    when 2
    self.y = (Graphics.height - self.height) - $game_variables[YEA::MESSAGE::VARIABLE_HEIGHT]
    end
What about the gold window position? That seems to be updated inside #update_placement.
What about the gold window position? That seems to be updated inside #update_placement.
It worked like a charm! Thanks guys for helping me out. ☺️
Moved to: RGSSx Script Support

Original thread: https://forums.rpgmakerweb.com/threads/text-box-vertical-reposition.91706/