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

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

MZ plugins

Menu Common Event - MenuCommonEvent.js

Plugin desc : Common event plugin in the menu

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/MenuCommonEvent.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/MenuCommonEvent.js

File name : MenuCommonEvent.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/MenuCommonEvent.js
@plugindesc Common event plugin in the menu
@author Triacontane
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

MenuCommonEvent.js

This allows common events to be executed in parallel on menu screens.
Commands such as messages, pictures, and variable manipulation can be
executed.
Only one common event can be specified per screen.
Events are executed in parallel, so if they are no longer needed, they can be
stopped using a switch or plugin command.

Note: Some commands that target characters, such as setting movement routes,
will not work.
Also, scripts and commands added by plugins may not function correctly.

Script Details
Execute from the ”Script” or ”Variable Manipulation” event command.

/ Get the window object
this.getSceneWindow(windowName);
Returns the window object with the specified name.
Properties can be retrieved and set. This is an advanced feature.
The window names for the main screens are as follows:

・Main Menu
commandWindow Command Window
statusWindow Status Window
goldWindow Money Window

・Item Screen
categoryWindow Item Category Window
itemWindow Item Window
actorWindow Actor Selection Window

・Skill Screen
skillTypeWindow Skill Type Window
statusWindow Status Window
itemWindow Skill Window
actorWindow Actor Selection Window

・Equipment Screen
helpWindow Help Window
commandWindow Command Window
slotWindow Slot Window
statusWindow Status Window
itemWindow Equipment Window

・Status Screen
statusWindow Status Window

// Determine Window Active
this.isWindowActive(windowName);
Returns true if the window with the specified name is active.
The window specification example is the same as above.

/ Get Window Index
this.getSceneWindowIndex();
Gets the index of the currently active window. The index starts at 0.

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder under the RPG Maker
MZ installation folder:

dlc/BasicResources/plugins/official

Terms of Use:
You may modify and redistribute this plugin without permission from the
author, and there are no restrictions on its use (commercial, R18+, etc.).
This plugin is now yours.

@param commonEventInfo
@text Common Event Information
@desc Information on common events executed on each screen.
@type struct<CommonEventInfo>[]

@param maxMenuPicture
@text Maximum number of pictures displayed
@desc The maximum number of pictures to display on the menu screen.
@type number
@default 10
@min 1
@max 100

@param saveInterpreterIndex
@text Remember execution position
@desc The event execution position is remembered and resumes from the remembered position when returning from another screen.
@type boolean
@default false

@param activateTimer
@text Enable timer
@desc The timer will be displayed and will advance even on the menu screen.
@type boolean
@default false

@command CHANGE_WINDOW_CONTROL
@text Changes to prohibition of window operations
@desc Changes whether the active window can be manipulated during the event.
@arg disable
@text Prohibited
@desc If enabled, the active window cannot be manipulated while the event is running.
@type boolean
@default true

@command STOP_EVENT
@text Event stop
@desc Aborts a running menu common event.

スポンサードリンク

-MZ plugins

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