じ☆ve冰风 发表于 2026-7-18 19:59:13

POG_TeleportRegion : create teleport areas on the map

https://tecnoanalogica386748854.files.wordpress.com/2020/10/tpregion.jpg?w=561​


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.


https://tecnoanalogica386748854.files.wordpress.com/2020/10/transf.jpg?w=1024
         <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.

https://tecnoanalogica386748854.files.wordpress.com/2020/10/plugin.jpg?w=1024


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

https://tecnoanalogica386748854.files.wordpress.com/2020/10/command-1.jpg?w=491




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


https://tecnoanalogica386748854.files.wordpress.com/2020/10/transf4.jpg?w=1000&h=



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

https://tecnoanalogica386748854.files.wordpress.com/2020/10/transf2.jpg?w=1000&h=


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

https://tecnoanalogica386748854.files.wordpress.com/2020/10/transf3.jpg?w=1200&h=

More Examples:

https://tecnoanalogica386748854.files.wordpress.com/2020/10/transf5.jpg?w=700&h=


https://tecnoanalogica386748854.files.wordpress.com/2020/10/transf7.jpg?w=700&h=



本贴来自国际rpgmaker官方论坛作者:Logica处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/pog_teleportregion-create-teleport-areas-on-the-map.128299/
页: [1]
查看完整版本: POG_TeleportRegion : create teleport areas on the map