create-teleporter
Create two-way or one-way teleporter regions between points on existing scenes, linking token movement between them.
Instructions
Create a two-way (or one-way) region TELEPORTER between two points on existing scenes — the thing create-scene can only do at import time. Give a CENTER point (canvas px) on each scene (from/to, may be the same scene); a rectangle trigger is placed at each (sized in whole grid cells, grid-snapped by default) and a teleportToken behavior on each points at the OTHER — so a token that walks onto one is sent to the other. Both regions are created before either link is wired (the destination-UUID chicken-and-egg). twoWay:false makes it one-directional. Regions default to GM/Regions-layer visibility (no player-visible overlay). GM-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The second endpoint (may be the same scene). | |
| from | Yes | The first endpoint. | |
| color | No | Region tint hex (default "#3fb0ff"). | |
| toName | No | Name for the to-side region. | |
| twoWay | No | Wire the return teleporter too (default true). false = one-way from→to. | |
| fromName | No | Name for the from-side region. | |
| snapToGrid | No | Snap each trigger rectangle to the grid cell(s) under its center (default true). | |
| widthCells | No | Trigger width in whole grid cells, applied to both ends. Default 1. | |
| heightCells | No | Trigger height in whole grid cells. Default 1. |