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

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

FTKR Event Re Spawn Ex - FTKR_EventReSpawnEx.js

Plugin desc : v1.0.0 Record the coordinates and self-switches of temporary events generated by EventReSpawn.js and TemplateEvent.js

License : MIT License

Author : Futokoro

Desc page : https://github.com/munokura/futokoro-MV-plugins

Download Page : https://raw.githubusercontent.com/munokura/futokoro-MV-plugins/refs/heads/master/FTKR_EventReSpawnEx.js

File name : FTKR_EventReSpawnEx.js

Help of plugin :

@plugindesc v1.0.0 Record the coordinates and self-switches of temporary events generated by EventReSpawn.js and TemplateEvent.js
@author Futokoro
@url https://github.com/munokura/futokoro-MV-plugins
@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/futokoro-MV-plugins ).
Original plugin by Futokoro.
Please check the URL below for the latest version of the plugin.
URL https://github.com/futokoro/RPGMaker
-----
-----------------------------------------------------------------------------
Overview
-----------------------------------------------------------------------------
This plugin records the coordinates and self-switch status of temporary events generated by combining Triacontan's dynamic event generation plugin, EventReSpawn.js, and Triacontan's template event plugin, TemplateEvent.js.

If you move to a different location and then return to the same map, a temporary event will be generated with the recorded location and self-switch status.

Tested with the following versions:
EventReSpawn.js v1.7.0
TemplateEvent.js v1.7.1

-----------------------------------------------------------------------------
Setup
-----------------------------------------------------------------------------
1. Add this plugin to the "Plugin Manager."

2. EventReSpawn.js is required for this plugin to work.
In the Plugin Manager, register this plugin under EventReSpawn.js.

EventReSpawn.js

-----------------------------------------------------------------------------
Recording Event Location and Self-Switch Status
----------------------------------------------------------------------------
To record the coordinates and self-switch status of a temporary event,
enter the following tag in the Note field of the source event.

<RES_SAVE>

For temporary events with the above tag, the status will be recorded at the following times:

1. When moving locations
Setting the plugin parameter <Save Condition When Transfer> to 1
records the status of all temporary events on the map when moving locations.

2. Recording via Plugin Command
Executing the following plugin command will record the status at that time.

ERS_SAVE_PREFABEVENT [eventId]

The event ID is the ID of the generated temporary event.
It is not the ID of the original event.
If no event ID is specified, the status of all temporary events on the map will be recorded.

Get the ID of the generated temporary event using the plugin command below.
ERS_GET_LAST_SPAWN_EVENT_ID 10 # Set the last spawned event ID to variable [10]

You can specify the value of an in-game variable for the event ID by using ¥V[x].

When describing the execution content of the original event,
you can specify the ID of the temporary event itself using this._eventId.

Example:
Record the coordinates of event ID 10 on the generated map and the state of the self variable.
ERS_GET_LAST_SPAWN_EVENT_ID 10

To set the recording command for the original event from the beginning:
ERS_GET_LAST_SPAWN_EVENT_ID this._eventId

-----------------------------------------------------------------------------
Initialize the position and self switch state.
-----------------------------------------------------------------------------
The state of a recorded temporary event can be initialized using the following plugin command.

ERS_RESET_PREFABEVENT [mapId] [eventId]

The event ID is the ID of the generated temporary event.
If no event ID is specified, all temporary events for the specified map ID will be initialized.
Also, when describing the action of the original event,
you can specify the ID of the temporary event itself using this._eventId.

If no map ID is specified, temporary events for all maps will be initialized.

You can specify the value of an in-game variable for the map ID or event ID by using ¥V[x].

-----------------------------------------------------------------------------
License for this plugin
-----------------------------------------------------------------------------
This plugin is released under the MIT license.

Copyright (c) 2017 Futokoro
http://opensource.org/licenses/mit-license.php

Plugin release location
https://github.com/futokoro/RPGMaker/blob/master/README.md

-----------------------------------------------------------------------------
Change History
-----------------------------------------------------------------------------

v1.0.0 - November 14, 2017: First version created

-----------------------------------------------------------------------------

@param Save Condition When Transfer
@desc Record temporary event status when moving location 1 - Record, 0 - Do not record
@default 1
@type select
@option Record
@value 1
@option Do not record
@value 0

スポンサードリンク

-MV plugins

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