# Can you use a script call to change the size and placement of the dialogue window in an event?

**URL:** <https://guild.rpgmakerofficial.com/t/topic/2913>\
**Category:** RGSSx\
**Tags:** english, xp\
**Created:** [September 12, 2026, 1:26pm UTC](https://guild.rpgmakerofficial.com/t/topic/2913 "2026-09-12T13:26:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bimbush](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/bimbush/32/7111_2.png) [@Bimbush](https://guild.rpgmakerofficial.com/u/Bimbush)\
**Post date:** [September 12, 2026, 1:26pm UTC](https://guild.rpgmakerofficial.com/t/topic/2913/1 "2026-09-12T13:26:26Z")

</div>

Hi! I am making a game with a resized window (using the script by ForeverZer0 & KK20) and I was wondering if there was a way to make a script call to change the dialogue window placement and size at will?

I am aware you can change it within the script itself, as I’ve done so for one menu already. But I also dig the vibe it gives me when i don’t touch it at all:

 ![b1](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/2X/e/e791f60631129f240f471cf9b18ba1d8a10f00f0.jpeg)

for further reference this is the default size compared to the resized one:

 ![b2](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/2X/2/2e28fddf3b07bf7b7e85cd5508e4c90e79f383a6.jpeg)

Though, for CGs, I’d like to for example have the dialogue window pop back into the bottom and elongate like your typical dialogue box; So that the CG is visible better.

And then right after the CG is over, go back to how it is now (shown in the images).

So, is there a script call I could use? I don’t really know how the scripts work as I still had some trouble resizing the menu (and I will make a new topic for something I’m still looking for later)

---

<div class="post-metadata">

**Author:** ![Baz](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/baz/32/100_2.png) [@Baz](https://guild.rpgmakerofficial.com/u/Baz)\
**Post date:** [November 8, 2026, 11:20pm UTC](https://guild.rpgmakerofficial.com/t/topic/2913/2 "2026-11-08T23:20:41Z")

</div>

RMXP doesn’t have a script call for this out of the box, but a small add on can give you one. Insert a new script above Main (below the resolution script) and paste this:

```auto
class Game_System
  attr_accessor :message_box
end

class Window_Message
  alias message_box_initialize initialize
  def initialize
    message_box_initialize
    @default_box = [self.x, self.width, self.height]
  end

  alias message_box_reset_window reset_window
  def reset_window
    message_box_reset_window
    if $game_system.message_box == nil
      x, w, h = @default_box
      y = self.y
    else
      x, y, w, h = $game_system.message_box
    end
    self.x = x
    self.y = y
    if w != self.width or h != self.height
      self.width = w
      self.height = h
      old = self.contents
      self.contents = Bitmap.new(w - 32, h - 32)
      self.contents.font = old.font
      old.dispose
    end
  end
end

```

Then before the CG text, use the Script event command with this:

```auto
$game_system.message_box = [0, 480, 1024, 160]

```

The four numbers are x, y, width and height. I’m guessing your screen is 1024 x 640 from the screenshots, so that should put a full width box along the bottom. If the SCREEN line in your resolution script says something different, swap in those numbers.

When the CG is over, this puts it back to how it is now:

```auto
$game_system.message_box = nil

```

It kicks in on the next Show Text, so the script call just needs to come before the text you want changed.
