POG_TeleportRegion : create teleport areas on the map

​


License: Free for personal or commercial use.

Context: When the developer needs to create several teleportation points on the same map, doing this task through events becomes a repetitive and impractical task.


Description: This script causes the player to be transferred to enter a land marked as a specific region.


How to use this script: In each map where there is one or more teleportation regions, the developer must insert a tag in the "Note" field for that map.

transf.jpg
<tpRegionID:mapId, x,y,direction,fadeType>​

  • <tpRegion is the tag suffix
  • ID is the region number
  • mapId is the map number
  • x is a horizontal coordinate of the map to which the player will be transferred;
  • y is a vertical coordinate of the map to which the player will be transferred;
  • direction is the direction the player will be looking at: 2 = low; 4 = left; 6 = right; 8 = above;
  • fadeType is the transition type (can be 0, 1 or 2)

Example: Teleport the player from the MAP001 map to the MAP018 map at x = 65 and y = 60 coordinates, facing upwards, with transition 0 as soon as they reach a terrain marked as region 3;

<tpRegion3:18, 65,60,8,0>
​
You can suppress the direction and type of fading by making the label shorter. In this case, the player's direction after teleportation will be maintained at the table he had before and the fade will be the one set as default in the plugin settings.
plugin.jpg


If you want to change the default fade type for the plug-in, you can use the plugin command.
command-1.jpg




Example of shorter tags, where the direction and type of fading are omitted.​

transf4.jpg



In this example, the teleportation defined for region 10 has the direction of the player.
<tpRegion10:3,5,5,2>​
transf2.jpg


In this other example, in addition to the direction, the tag also includes the type of fade.​
transf3.jpg

More Examples:
transf5.jpg

transf7.jpg
Can you add a "keep Direction" value to the argument that you already have?
Can you add a "keep Direction" value to the argument that you already have?

Yes, it is possible. I will try to implement this in the next update. Thanks for the sugestion.
Is this compatible with VisuStella Plugins?

Original thread: https://forums.rpgmakerweb.com/threads/pog_teleportregion-create-teleport-areas-on-the-map.128299/