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 Call Event - NRP_CallEvent.js

Plugin desc : v1.011 Expanded calling of map events and common events.

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_CallEvent.js

Desc page : http://newrpg.seesaa.net/article/482150579.html

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

File name : NRP_CallEvent.js

Help of plugin :

Call map events and common events.
 * 
 * In Maker MZ, it is usually not possible to call map events.
 * So, you can call them as you used to do in Maker 2000.
 * 
 * You can use the event name or refer to a variable
 * to call the event with a high degree of freedom.
 * Also, if you perform an operation that targets "this event"
 * from the called event, you can target a different character than usual.
 * For example, you can target a follower, which is usually impossible.
 * 
 * Common events can be called as well.
 * 
 * ■Usage
 * Run the following plugin command.
 * 
 * ◆CallMapEvent
 * Call a map event by specifying the event ID (event name) and page number.
 * Multiple events can be targeted at the same time.
 * A sample is provided in the combo box of EventId, so please use it.
 * 
 * ◆CallCommonEvent
 * Call a common event by specifying the common event ID or common event name.
 * The gist is almost the same as for map events.
 * 
 * When calling more common events from a common event,
 * it is also possible to call "current common event ID + 1".
 * However, this function is only available
 * for common events that have been called in the proper way.
 * It may not work if you call it from an external plugin.
 * 
 * [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.
 * 
 * @command CallMapEvent
 * @desc Call the map event.
 * 
 * @arg EventId
 * @desc Specify the ID of the event to be called.
 * Numbers and formulas are possible. If blank, this event.
 * @type combo
 * @option $gameVariables.value(1) #Variable number event
 * @option this._eventId + 1
 * @option 1,2,3 #Multiple
 * @option 1~3 #Range
 * 
 * @arg EventName
 * @desc Specify the name of the event to be called.
 * This takes precedence over the ID specification.
 * 
 * @arg PageNo
 * @desc The page number to be called.
 * If not specified, it will be the currently active page.
 * @type combo
 * @option this.pageNo() + 1
 * @option $gameVariables.value(1) #Variable number event
 * 
 * @arg ChangeThisEventId
 * @desc When "this event" is targeted in the called event, the event with the specified ID will be targeted.
 * @type combo
 * @option this._eventId #Caller's Event
 * @option $gameVariables.value(1) #Variable number event
 * @option -1 #Player
 * @option -2 #Follower
 * 
 * 
 * @command CallCommonEvent
 * @desc Call the common event.
 * 
 * @arg CommonEventId
 * @desc Specify the ID of the common event to be called.
 * Numbers and mathematical expressions are valid.
 * @type combo
 * @option $gameVariables.value(1) #Variable number commmon event
 * @option this._commonEventId + 1
 * @option 1,2,3 #Multiple
 * @option 1~3 #Range
 * 
 * @arg CommonEventName
 * @desc Specifies the name of the common event to be called.
 * This takes precedence over the ID specification.
 * 
 * @arg ChangeThisEventId
 * @desc When you target "this event" in a common event, the event with the specified ID will be targeted.
 * @type combo
 * @option $gameVariables.value(1) #Variable number event
 * @option -1 #Player
 * @option -2 #Follower
 * @option this._eventId + 1 #Caller's event +1

スポンサードリンク

-MZ plugins

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