create_transfer_event
Create a Transfer Player event to warp between maps. Set trigger, fade, direction, and optional graphic; source and destination tiles are validated before writing.
Instructions
Wire two maps together: create a Transfer Player (command 201) event at (x,y) on a map that warps the player to (targetX,targetY) on targetMapId. trigger 0 = action button (a door — give it a graphic); trigger 1 = player touch (an edge teleport — leave it invisible). Validates both endpoints exist and are in-bounds before writing. Use validate_connectivity afterwards to check the whole world graph.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mapId": "<mapId>",
"x": "<x>",
"y": "<y>",
"targetMapId": "<targetMapId>",
"targetX": "<targetX>",
"targetY": "<targetY>"
},
"name": "create_transfer_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Event x (tile) on this map | |
| y | Yes | Event y (tile) on this map | |
| fade | No | Fade through black during transfer (default true) | |
| name | No | Event name (default transfer_to_<targetMapId>) | |
| mapId | Yes | Map the event is placed on | |
| graphic | No | Optional event appearance (for a visible door). Omit for an invisible touch teleport. | |
| targetX | Yes | Destination x (tile) | |
| targetY | Yes | Destination y (tile) | |
| trigger | No | 0 action button (door), 1 player touch (edge teleport, default), 2 event touch | |
| direction | No | Facing after transfer: 0 retain, 2 down, 4 left, 6 right, 8 up (default 0) | |
| targetMapId | Yes | Destination map id |