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 Keep Event Data - NRP_KeepEventData.js

Plugin desc : v1.00 Remembers & restores the event location when transferring from the map.

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

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

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

File name : NRP_KeepEventData.js

Help of plugin :

Remembers & restores the event location
 * when transferring from the map.
 * Restore them when you go back to a previous map.
 * 
 * For example, in the case of a reminiscence event,
 * where the player is temporarily transferred to a different map
 * and then back to the previous map.
 * 
 * -------------------------------------------------------------------
 * [Usage]
 * -------------------------------------------------------------------
 * Please execute the plug-in command "SaveEvents"
 * before doing "Transfer Player".
 * When you come back to the previous map,
 * the event information will be restored automatically.
 * 
 * In this case, the stored event information will be deleted.
 * 
 * -------------------------------------------------------------------
 * [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 Commands MZ]
 * -------------------------------------------------------------------
 * ◆SaveEvents
 * Save the position and direction of events.
 * 
 * ◆RestoreEvents
 * Restore the position and direction of the saved events.
 * No need to specify as it is automatically executed by default.
 * 
 * ◆RemoveSaveEvents
 * Remove the location and direction of the saved events.
 * If the map ID is left blank, all information will be removed.
 * 
 * -------------------------------------------------------------------
 * [Plugin Commands MV]
 * -------------------------------------------------------------------
 * Since the functions are the same as the MZ version,
 * I will not explain them.
 * ※No distinction is made between individual capital letters.
 *   Also, do not include [].
 * 
 * ◆SaveEvents
 * NRP.KeepEventData.SaveEvents
 * 
 * ◆RestoreEvents
 * NRP.KeepEventData.RestoreEvents
 * 
 * ◆RemoveSaveEvents
 * NRP.KeepEventData.RemoveSaveEvents [MapID (optional)]
 * 
 * @------------------------------------------------------------------
 * @ Plugin Commands
 * @------------------------------------------------------------------
 * @command SaveEvents
 * @desc Save the position and direction of events.
 * 
 * @------------------------------------------------------------------
 * 
 * @command RestoreEvents
 * @desc Restore the position and direction of the saved events.
 * No need to specify as it is automatically executed by default.
 * 
 * @------------------------------------------------------------------
 * 
 * @command RemoveSaveEvents
 * @desc Remove the location and direction of the saved events.
 * 
 * @arg MapId
 * @type number
 * @desc Map ID to remove the saved information.
 * If blank, all saved information will be removed.
 * 
 * @------------------------------------------------------------------
 * @ Plugin Parameters
 * @------------------------------------------------------------------
 * 
 * @param UseSaveData
 * @type boolean
 * @default false
 * @desc Writes event information to saved data.
 * When off, the information will not be retained.
 * 
 * @param AutoRestore
 * @type boolean
 * @default true
 * @desc If the events information of the transfer destination has been saved, it will be restored automatically.

スポンサードリンク

-MZ plugins

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