public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MVCall Common Event By Name

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Call Common Event By Name
  • Original author: ovate
  • Original date: February 16, 2018
  • Source thread: https://forums.rpgmakerweb.com/threads/call-common-event-by-name.91420/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)

Summary

CallCommonEventByName Creator name: Mokusei Penguin Overview Plugin command that calls Common Event by name.

Archived First Post

CallCommonEventByName

Creator name: Mokusei Penguin

Overview
Plugin command that calls Common Event by name.

Features
Use "Plugin Command" to call the name of a common event

For example- CallCommon [insert common event name]
image.png


Calls the common event name "arg1"

※ About CallCommon

Since it's called by Common Event name, there's no need to modify even if the ID changes.

If there are multiple common events with the same names, the most recent will be called.
(This includes deleting the previous event, if you create a new common event of the same name, you can overwrite it.)

Credit and Thanks: Mokusei Penguin

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

Code:
//=============================================================================
// CallCommonEventByName.js
//=============================================================================
// Copyright (c) 2015 Mokusei Penguin
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
//=============================================================================
 
/*:
 * @plugindesc 【MPP ver.1.1】 Plugin command that calls Common Event by name.
 * @author Mokusei Penguin
 *
 * @help Use "Plugin Command" to call the name of a common event
 * 『Plugin Command』
 * Ex- CallCommon arg1
 * Calls the common event named arg1
 *
 * ※ About CallCommon
 *
 * Since it's called by Common Event name, there's no need to modify even if the ID changes.
 *
 * If there are multiple common events with the same names, the most recent will be called.
 * (This includes deleting the previous event,
 *  If you create a new common event of the same name, you can overwrite it.)
 *
 * ================================
 * Author : Mokusei Penguin
 * URL : http://woodpenguin.blog.fc2.com/
 */
 
(function() {
 
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
    _Game_Interpreter_pluginCommand.call(this, command, args);
    if (command === 'CallCommon' && args.length > 0) {
        for (var i = $dataCommonEvents.length - 1; i > 0; i--) {
            var event = $dataCommonEvents[i];
            if (event.name === args[0]) {
                var eventId = this.isOnCurrentMap() ? this._eventId : 0;
                this.setupChild(event.list, eventId);
                break;
            }
        }
    }
};
 
})();

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/ee4swtzvt41j56s/CallCommonEventByName.js?dl=1

Features Mentioned

  • Use "Plugin Command" to call the name of a common event
  • For example- CallCommon [insert common event name]
  • "lightbox_close": "Close",
  • "lightbox_next": "Next",
  • "lightbox_previous": "Previous",
  • "lightbox_error": "The requested content cannot be loaded. Please try again later.",
  • "lightbox_start_slideshow": "Start slideshow",
  • "lightbox_stop_slideshow": "Stop slideshow",
  • "lightbox_full_screen": "Full screen",
  • "lightbox_thumbnails": "Thumbnails",
  • "lightbox_download": "Download",
  • "lightbox_share": "Share",
  • "lightbox_zoom": "Zoom",
  • "lightbox_new_window": "New window",
  • "lightbox_toggle_sidebar": "Toggle sidebar"
  • Calls the common event name "arg1"
  • Since it's called by Common Event name, there's no need to modify even if the ID changes.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

License / Terms Note

Credit and Thanks: Mokusei Penguin Terms of Use- Free for commercial and non-commercial use. License - MIT License: http://opensource.org/licenses/mit-license.php Code:

Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rmmv#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar