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

# npc.reqenable

```lua
npc.reqenable(trigger)
```

|                         |                                    |
| ----------------------- | ---------------------------------- |
| id                      | `0x002A`                           |
| arguments               | 1: Int                             |
| in NPC Kit              | yes                                |
| measured from a kit NPC | returns                            |
| vanilla scripts         | 10646 calls in 578 of 1114 scripts |

## What it does

Turns on one of the NPC's triggers, so the engine runs the function behind it again: `2` the talk, `3` touch, `4` and `5` touch on and off, `8` and `13` the field sign, `12` the map jump, `16` talk hold, `17` talk term.

## Arguments

### `trigger` (Int)

The trigger number. Vanilla: `2` (5,471 calls), `12`, `8`, `13`, `4`, `5`, `3`, `16`, `17`.

## Timing

Returns at once.

## In NPC Kit

The kit sets up the talk of an NPC with a `talk` by itself. `reqdisable(2)` / `reqenable(2)` to stop and allow talking mid-game are the vanilla way, but not tested on a kit NPC.

## Used with

* [reqdisable](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/reqdisable.md): its off switch.

## Example

A guard who won't talk until a beat of another NPC's talk turns its talk back on.

```lua
-- the guard's init:   npc.reqdisable(2);
-- a beat of the captain's talk:
orderGuard = function()
    npc.on("npckit_0041").reqenable(2);
end,
```

## Pitfalls

* Not tested on a kit NPC.
