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 Tile To Event - NRP_TileToEvent.js

Plugin desc : v1.06 Automatically generate events on tiles.

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

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

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

File name : NRP_TileToEvent.js

Help of plugin :

Automatically generate events on tiles.
 * You can automatically generate specified events on top of them,
 * conditioned on TileID, AutotileType, TerrainTag, and RegionID.
 * 
 * It is also possible to erase tiles and replace them with events.
 * ※Only when TileID or AutotileType is a condition.
 * 
 * ■Usage
 * First, prepare the event you want to generate.
 * 
 * 1. Create a map for the template and create the events.
 *    Name the events for clarity.
 * 2. Register the map ID in the TemplateMapId of the plugin parameter.
 * 
 * In short, it's almost the same as
 * the official launch plugin TemplateEvent.js (by Triacontane).
 * 
 * Next, specify the conditions in the "SettingsList" of the plugin parameters,
 * and enter the "EventId Or Name" of the event to be generated.
 * In this case, set the "SettingId" for reference.
 * 
 * ※If you want to refer to TileIDs or AutotileTypes,
 * the optional "NRP_DebugTile.js" is useful.
 * 
 * Finally, register the "SettingId" in the note of the tileset,
 * and you are done.
 * Enter a value in part ? below.
 * 
 * <TileToEvent:?>
 * 
 * ■Plugin Command (MZ)
 * >CallId
 * If SettingId is specified, the process will be executed.
 * The contents are the same as
 * when the SettingId is registered to the tileset.
 * 
 * ■Plugin Command (MV)
 * > NRP.TileToEvent.CallId [SettingId]
 * The process is the same as the MZ version.
 * 
 * ■Notice
 * Due to Maker's specifications, the mere existence of an event
 * will gradually increase the load on the map.
 * For example, if you generate a large number of events,
 * over a thousand. the system may become sluggish.
 * 
 * This plugin includes a process to stop drawing
 * when the generated event is outside the screen range.
 * This can reduce the load to some extent.
 * 
 * Also, due to the specification of checking & processing tiles
 * one square at a time, generating a large number of events
 * on a large map will take a little bit of time.
 * ※However, unless you do a lot of processing, it will only take a moment.
 * 
 * ■Acknowledgment
 * This plugin refers to and uses processing
 * from the following plugins by Triacontane.
 * 
 * - TemplateEvent.js
 * - EventReSpawn.js
 * 
 * [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 CallId
 * @desc Generate events based on the registered SettingId.
 * 
 * @arg SettingId
 * @desc This is the SettingId of the process to be executed.
 * You can specify multiple IDs separated by commas.
 * @type string
 * 
 * 
 * @param TemplateMapId
 * @desc The map ID where the tile replacement event will be placed.
 * @type number
 * 
 * @param SettingList
 * @type struct<Setting>[]
 * @desc The following is a list of settings.
 * 
 * @param InitEventOnLoad
 * @desc Initializes the events when the game loads.
 * The position of the events will no longer be saved.
 * @type boolean
 * @default true
 * 
 * @param ApplyChangeTileset
 * @desc The process is also executed when the tileset is changed.
 * @type boolean
 * @default false
 * 
 * @param <SpeedUpProcessing>
 * 
 * @param StopOutOfRange
 * @parent <SpeedUpProcessing>
 * @desc Stops drawing events outside the screen range.
 * This will result in a significant reduction in processing.
 * @type boolean
 * @default true
 * 
 * @param OutOfRangeMargin
 * @parent <SpeedUpProcessing>
 * @desc The width of the margin to be considered out of range.
 * It will not stop even if it is slightly outside the screen.
 * @type number
 * @default 100

スポンサードリンク

-MZ plugins

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