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

# npc.setnowjumpindex

```lua
npc.setnowjumpindex(entrance)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x03D1`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 2292 calls in 183 of 1114 scripts |

## What it does

Sets the entrance the current map is recorded as entered by: what [nowjumpindex](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/nowjumpindex.md) gives afterwards. A map jump writes the same field.

## Arguments

### `entrance` (Int)

The entrance index. Vanilla: `-2` (1,146 calls) and variables.

## Timing

Returns at once.

## In NPC Kit

**Leave it alone.** The field is in the save data, and the map's own scripts read it to know how the party came in (the save crystal turns the camera by it).

## Example

None: leave it alone. To react to the entrance, read it with [nowjumpindex](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/nowjumpindex.md):

```lua
npc.lua(npc.nowjumpindex(), function(handle, entrance) ... end);
```
