> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/getsaveramtelepostatus.md).

# npc.getsaveramtelepostatus

```lua
npc.getsaveramtelepostatus()
```

|                         |                                                                                     |
| ----------------------- | ----------------------------------------------------------------------------------- |
| id                      | `0x030A`                                                                            |
| arguments               | 0                                                                                   |
| result                  | bool: goes to the very next call, or to `npc.lua(npc.getsaveramtelepostatus(), fn)` |
| in NPC Kit              | yes                                                                                 |
| measured from a kit NPC | returns                                                                             |
| vanilla scripts         | 162 calls in 81 of 1114 scripts                                                     |

## What it does

Gives the teleport switch: `1` on, `0` while a script holds it off with `setsaveramtelepostatus(0)` (vanilla scripts turn it off 8 times and on 9). A result. Only scripts read it, the crystals among them; the switch lives in the save file.

## Result

`1` or `0`.

## Timing

Returns at once.

## Used with

* [getsaveramsavestatus](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/getsaveramsavestatus.md), [fs\_stonewinopen](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/fs_stonewinopen.md).

## Example

```lua
talk = function()
    talkOpen();
    npc.lua(npc.getsaveramtelepostatus(), function(handle, canTeleport)
        say(handle, canTeleport == 1 and "The crystals will carry you anywhere."
                                     or "The crystals are silent here.")
    end);
    talkClose();
end,
```
