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

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

MV plugins

Random Event Set - RandomEventSet.js

Plugin desc : ver1.03/Event locations will be moved randomly when moving locations.

License : MIT License

Author : Yana

Website : https://w.atwiki.jp/pokotan/pages/3.html

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

Download Page : https://raw.githubusercontent.com/munokura/Yana-MV-plugins/refs/heads/master/Map_Message/RandomEventSet.js

File name : RandomEventSet.js

Help of plugin :

@plugindesc ver1.03/Event locations will be moved randomly when moving locations.
@author Yana
@url https://github.com/munokura/Yana-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/Yana-MV-plugins ).
Original plugin by Yana.
-----
Plugin Commands
--------------------------------------------------------------------
*Please enter spaces using half-width characters.

- Moves events set for random movement to a random location.
RandomSet

- Moves events set for a random region to a random location.
RegionSet

---------------------------------------------------------
How to Set
------------------------------------------------------
Write
<RandomSetKey>
or
<RegionSetKey:x>
in the event's Note field.

Events set with this description will be moved to a random location when you use a plugin command for random movement or
move the location with the corresponding switch turned on.
In the case of a random region, the event will move to one of the tiles with the region ID specified by x.

***About Initializing the Cache***
This plugin records the event's location in the save data to recreate the event's location.
This is called a cache, and using this plugin for random movement in multiple locations
will cause the cache to grow.
Therefore, to prevent save data from becoming bloated,
please initialize the cache by turning on the switch set by InitTransfer at a specific time.

------------------------------------------------------
Terms of Use
------------------------------------------------------
This plugin is released under the MIT License.
http://opensource.org/licenses/mit-license.php
------------------------------------------------------
Update History:
ver1.03:180917
Added explanation about caching.
ver1.021:180410
Updated plugin parameter specifications to 1.5.0.
ver1.02:
Fixed a bug that could cause an error.
ver1.01:
Fixed a bug that prevented the cache initialization function from working properly.
ver1.00:
Released

@param RandomSetSwitchID
@desc By turning on the switch for this ID and moving the location, the randomly placed event will be moved to a random location.
@default 21
@type switch

@param RegionSetSwitchID
@desc By turning on the switch for this ID and moving the location, the event in the random region will be moved to a random position.
@default 22
@type switch

@param Init Transfer
@desc By turning on the switch for this ID and moving to another location, the cache for recording random locations will be initialized.
@default 23
@type switch

@param RandomSetKey
@desc The keyword to use for random movement. Events with this keyword in their notes will be subject to random movement.
@default <RandomSetKey>

@param RegionSetKey
@desc This is the keyword used for random region movement. Events with this keyword in their notes will be subject to region movement.
@default <RegionSetKey:(¥d+)>

スポンサードリンク

-MV plugins

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