An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

NRP Message Window - NRP_MessageWindow.js

Plugin desc : v1.045 Adjust the message window.

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Takeshi Sunagawa (http://newrpg.seesaa.net/)

Website : https://github.com/NewRPGProject/MZMV_Plugin/blob/main/NRP_MessageWindow.js

Desc page : https://newrpg.seesaa.net/article/492543897.html

Download Page : https://raw.githubusercontent.com/NewRPGProject/MZMV_Plugin/main/NRP_MessageWindow.js

File name : NRP_MessageWindow.js

Help of plugin :

Make various adjustments to the message window.
 * For example, you can adjust the size and position of the window.
 * 
 * -------------------------------------------------------------------
 * [3-line Message Display]
 * -------------------------------------------------------------------
 * For example, a larger font and a 3-line display of the message
 * will make the text easier to read.
 * 
 * As you can find out, most JRPGs and ADVs nowadays
 * have a style of 2 to 3 lines plus a name field.
 * The MZ default style of 4 lines + name field is quite a lot of text,
 * and the text tends to be small, making it difficult to read.
 * It is not recommended to follow the default style without thinking.
 * 
 * The key to this is to make the "LineHeight" wider.
 * 
 * -------------------------------------------------------------------
 * [Variable Window Size]
 * -------------------------------------------------------------------
 * Formulas can be used for most items.
 * For example, if "WindowHeight" is set to "$gameVariables.value(1)",
 * the height of the message window will change according to
 * the value of variable 1.
 * 
 * This is useful, for example, when you want to have
 * two lines of text in a scene displaying a large image.
 * 
 * -------------------------------------------------------------------
 * [Window Imaging]
 * -------------------------------------------------------------------
 * Images can be used to display the message window and name box.
 * Images should be placed in the img¥system folder.
 * 
 * Two methods are supported:
 * one is to use separate images for the message window
 * and the name box, and the other is to use a different image only
 * when a name is displayed.
 * 
 * Also, since the original window will remain as it is,
 * please set opacity to 0 and hide the frame.
 * ※You may decorate it with an image while leaving the original window.
 * 
 * -------------------------------------------------------------------
 * [Mask Image Function]
 * -------------------------------------------------------------------
 * By setting "MaskImage",
 * you can finely adjust the transparency of the window.
 * For example, you can increase
 * the transparency only on the right side of the window.
 * White areas of the mask image
 * are opaque and black areas are transparent.
 * ※See the sample image for details.
 * 
 * Note that this does not work in RPG Maker MV for some reason,
 * so it is for MZ only.
 * 
 * -------------------------------------------------------------------
 * [Terms]
 * -------------------------------------------------------------------
 * There are no restrictions.
 * Modification, redistribution freedom, commercial availability,
 * and rights indication are also optional.
 * The author is not responsible,
 * but will deal with defects to the extent possible.
 * 
 * @------------------------------------------------------------------
 * @ Plugin Parameters
 * @------------------------------------------------------------------
 * 
 * @param <MessageWindow>
 * 
 * @param WindowWidth
 * @parent <MessageWindow>
 * @default Graphics.boxWidth
 * @desc The width of the message window.
 * Default: Graphics.boxWidth
 * 
 * @param WindowHeight
 * @parent <MessageWindow>
 * @default this.fittingHeight(4) + 8
 * @desc The height of the message window.
 * Default: this.fittingHeight(4) + 8
 * 
 * @param WindowX
 * @parent <MessageWindow>
 * @desc X coordinate for displaying the message window.
 * 
 * @param WindowY
 * @parent <MessageWindow>
 * @default (this._positionType * (Graphics.boxHeight - this.height)) / 2
 * @desc Y coordinate for displaying the message window.
 * Default: (this._positionType * (Graphics.boxHeight - this.height)) / 2
 * 
 * @param LineHeight
 * @parent <MessageWindow>
 * @desc The height per line of the message.
 * Default: 36
 * 
 * @param AdjustMessageX
 * @parent <MessageWindow>
 * @type number
 * @desc Adjust the X coordinate of the message.
 * 
 * @param AdjustMessageY
 * @parent <MessageWindow>
 * @type number
 * @desc Adjust the Y coordinate of the message.
 * 
 * @param MessageFontSize
 * @parent <MessageWindow>
 * @desc The font size of the message.
 * 
 * @param WindowOpacity
 * @parent <MessageWindow>
 * @desc Opacity of the message window.
 * 255 makes it completely opaque.
 * 
 * @param HideWindowFrame
 * @parent <MessageWindow>
 * @type boolean
 * @default false
 * @desc Hides the message window frame.
 * 
 * @param WindowImage
 * @parent <MessageWindow>
 * @type file
 * @dir img/system
 * @desc Image for window.
 * 
 * @param AdjustWindowImageX
 * @parent WindowImage
 * @type number @min -9999 @max 9999
 * @desc Adjusts the X coordinate of the window image.
 * 
 * @param AdjustWindowImageY
 * @parent WindowImage
 * @type number @min -9999 @max 9999
 * @desc Adjusts the Y coordinate of the window image.
 * 
 * @param WindowImageName
 * @parent WindowImage
 * @type file
 * @dir img/system
 * @desc If there is a name box, this is the image to use instead of the normal window image.
 * 
 * @param MaskImage
 * @parent <MessageWindow>
 * @type file
 * @dir img/system
 * @desc A mask image that applies semi-transparent processing to the window. For MZ only.
 * 
 * @param NoMaskOpacity
 * @parent MaskImage
 * @desc The opacity of the message window if the mask could not be applied to it.
 * 
 * @param FixIconY
 * @parent <MessageWindow>
 * @type boolean
 * @default true
 * @desc Fix a problem in which the Y coordinate of an icon is misaligned when the height of a line is changed.
 * 
 * @param <NameBoxWindow>
 * @desc This item is related to the name field.
 * This field is invalid because it does not exist in RPG Maker MV.
 * 
 * @param NameBoxAdjustX
 * @parent <NameBoxWindow>
 * @desc X-coordinate correction value for the name field.
 * 
 * @param NameBoxAdjustY
 * @parent <NameBoxWindow>
 * @desc Y-coordinate correction value for the name field.
 * 
 * @param NameBoxFontSize
 * @parent <NameBoxWindow>
 * @desc The font size of the name field.
 * 
 * @param NameBoxOpacity
 * @parent <NameBoxWindow>
 * @desc Opacity of the name field.
 * 255 makes it completely opaque.
 * 
 * @param HideNameBoxFrame
 * @parent <NameBoxWindow>
 * @type boolean
 * @default false
 * @desc Hide the frame in the name box.
 * 
 * @param OverlapNameBox
 * @parent <NameBoxWindow>
 * @type boolean
 * @default false
 * @desc The message window should not disappear even if the name box overlaps.
 * 
 * @param NameBoxImage
 * @parent <NameBoxWindow>
 * @type file
 * @dir img/system
 * @desc Image for name box.
 * 
 * @param AdjustNameBoxImageX
 * @parent NameBoxImage
 * @type number @min -9999 @max 9999
 * @desc Adjust the X coordinate of the name box image.
 * 
 * @param AdjustNameBoxImageY
 * @parent NameBoxImage
 * @type number @min -9999 @max 9999
 * @desc Adjust the Y coordinate of the name box image.
 * 
 * @param <ChoiceWindow>
 * @desc This section is about choices.
 * 
 * @param FixChoiceX
 * @parent <ChoiceWindow>
 * @type boolean
 * @default true
 * @desc Align the X coordinate of the Choice window with the Message window.

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.