> 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/getsaveramsavestatus.md).

# npc.getsaveramsavestatus

```lua
npc.getsaveramsavestatus()
```

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

## What it does

Gives the save switch: `1` on, `0` once a script turned it off with `setsaveramsavestatus(0)`. A result. Only scripts read it; vanilla never turns it off, so in the game it is always `1`.

## Result

`1` or `0`.

## Timing

Returns at once.

## In NPC Kit

Read in Lua. Vanilla's save crystals test it before offering to save. The switch lives in the save file: a mod that turns it off leaves it off in every later save.

## Used with

* [getsaveramtelepostatus](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/getsaveramtelepostatus.md).

## Example

An NPC that offers to "keep your records" only while saving is allowed.

```lua
talk = function()
    talkOpen();
    npc.lua(npc.getsaveramsavestatus(), function(handle, canSave)
        say(handle, canSave == 1 and "The crystal is close. Rest easy."
                                 or "No time to rest now.")
    end);
    talkClose();
end,
```
