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

# npc.incentryid

```lua
npc.incentryid()
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x03E5`                        |
| arguments               | 0                               |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 193 calls in 80 of 1114 scripts |

## What it does

Renews the NPC's unit id: the generation inside the id goes up by one, so an id other code took before stops naming it. For an actor with a battle unit it also clears who has it targeted.

## Timing

Returns at once.

## In NPC Kit

**Avoid it.** The kit finds its NPCs by their records; not tested.

## Example

None: avoid it in the kit. An NPC is named to other calls by its id (`npc.on("id")`, `npc.actor("id")`), which doesn't need the handle renewed.

```lua
npc.on("npckit_0021").dir(1.0);
```
