Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
Simple Teleportation - SimpleTeleportation.js
Plugin desc : Implement teleport and escape.
License : MIT License
Author : あわやまたな (Awaya_Matana)
Website : https://awaya3ji.seesaa.net/
Desc page : https://awaya3ji.seesaa.net/article/512933454.html
File name : SimpleTeleportation.js
Help of plugin :
* @target MZ
* @orderAfter PluginCommonBase
* @plugindesc Implement teleport and escape.
* @author あわやまたな (Awaya_Matana)
* @url https://awaya3ji.seesaa.net/article/512933454.html
* @help Ver.1.0.2
* You will be able to use teleport to a registered location and escape to escape from dungeons, etc.
* Please change [Scope] and [Occasion] as appropriate.
*
* If the [Effects] contains a Common Event, teleportation or escape will not occur.
* Instead, you can use the plugin command [Get Teleport Position] to get the information into variables,
* allowing you to create your own teleport/escape effects.
*
* [Note (Items/Skills)]
* <teleport> //Effect [Teleport]
* <escape> //Effect [Escape]
*
* @param areas
* @text Area Settings
* @desc Add the area name.
* @type struct<areaSettings>[]
*
* @param seParams
* @text SE Settings
* @desc Set the sound effect when using skills/items.
* System sound effect: Blank
* @default
* @type struct<seParams>
*
* @param windowParams
* @text Window Settings
* @desc Customize the window for selecting the teleport destination.
* @default {"skin":"","opacity":"-1","overlap":"false","maxCols":"2","colSpacing":"16","rect":"2000","useNumLines":"false","forceOpen":"true"}
* @type struct<windowParams>
*
* @param inVehicle
* @text In Vehicle
* @desc Can be used in vehicles.
* @type boolean
* @default false
*
* @param requestMapReload
* @text Request Map Reload
* @desc If the teleport target is the current map, the state of the map and events will be initialized.
* @type boolean
* @default true
*
* @command addTeleportationPoint
* @text Add Teleportation Point
* @arg location
* @text Location
* @type location
* @default {"mapId":"1","x":"0","y":"0"}
* @arg areaId
* @text Area ID
* @desc Use this if you want to add different locations to the same map.
* @type number
* @default 0
* @arg switchId
* @text Switch ID
* @default 0
* @type switch
*
* @command removeTeleportationPoint
* @text Remove Teleportation Point
* @arg mapId
* @text Map ID
* @type map
* @default 1
* @arg areaId
* @text Area ID
* @type number
* @default 0
*
* @command setEscapeLocation
* @text Set Escape Location
* @arg location
* @text Location
* @type location
* @default {"mapId":"1","x":"0","y":"0"}
* @arg switchId
* @text Switch ID
* @default 0
* @type switch
*
* @command removeEscapeLocation
* @text Remove Escape Location
*
* @command setTeleportationAccess
* @text Set Teleportation Access
* @arg operation
* @text Operation
* @type select
* @default Disable
* @value Disable
* @value Enable
*
* @command setEscapeAccess
* @text Set Escape Access
* @arg operation
* @text Operation
* @type select
* @default Disable
* @value Disable
* @value Enable
*
* @command setAreaAccess
* @text Set Area Access
* @desc Prevents teleporting to specific areas.
* @arg mapId
* @text Map ID
* @type map
* @default 1
* @arg areaId
* @text Area ID
* @desc All Areas:-1
* @type number
* @default -1
* @min -1
* @arg operation
* @text Operation
* @type select
* @default Disable
* @value Disable
* @value Enable
*
* @command getTransferLocation
* @text Get Transfer Location
* @desc Store destination information in variables.
* Use it for common events.
* @arg mapId
* @text [Map ID]
* @type variable
* @default 1
* @arg x
* @text [X Coordinate]
* @type variable
* @default 1
* @arg y
* @text [Y Coordinate]
* @type variable
* @default 1
*
* @command getTransferArea
* @text Get Transfer Area
* @desc Store the Area ID in a variable.
* Use it for common events.
* @arg areaId
* @text [Area ID]
* @type variable
* @default 1
*