> 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/api/other-npcs.md).

# Other NPCs

**`npc.on("id").call(...)` runs a call on another NPC of the same script and map.**

It is the EBP's `actor.call()`:

```lua
talk = function()
    npc.on("npckit_0009").dir(1.0);
end,
```

* Only in `talk` and in the functions it runs: the other NPC's index is written when the talk starts.
* An `id` that isn't on the map logs a line, and the call runs on the NPC itself.

***

### An NPC as an argument

**`npc.actor("id")` passes another NPC of the same script and map to a call, where an EBP writes an actor's name.**

Some calls take an actor as an argument: in an EBP that's `PC00` or an actor's name. `common2effectplay(actor, effect)` plays a common effect **on** that actor:

```lua
pop = function()
    npc.sebsoundplay(0, 46);
    npc.common2effectplay(npc.actor("npckit_0011"), 11);
end,
```

* The same rules as `npc.on`: only in `talk` and in the functions it runs, and the index is written when the talk starts.
* An `id` that isn't on the map logs a line, and the NPC itself is passed instead.
