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

# npc.effectsync\_e3

```lua
npc.effectsync_e3(slot)
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x00E3`                                                                |
| arguments               | 1: Int                                                                  |
| in NPC Kit              | yes                                                                     |
| measured from a kit NPC | returns                                                                 |
| waits                   | it has a wait handler: it can hold the script, and in `talk` the player |
| vanilla scripts         | 153 calls in 132 of 1114 scripts                                        |

## What it does

Holds the script until the effect in a script effect slot is gone and the slot is free again.

## Arguments

### `slot` (Int)

The slot, 0 to 31.

## Timing

Waits, once a frame, until the game reports the slot's effect gone. A free slot (never read) goes on at once; a cancelled one goes on once the game has cleared it. No limit: an effect that never ends holds the script for good.

## In NPC Kit

In a talk the player is held for the whole effect; use a [wait](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/wait.md) instead when the effect is long. Not tested on a kit NPC.

## Used with

* [effectplay\_e2](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectplay_e2.md) before it.

## Example

```lua
flash = function()
    npc.questeffectread_1db(16, 116);
    npc.effectreadsync_e1(16);
    npc.effectplay_e2(16, 0);
    npc.effectsync_e3(16);
end,
```

## Pitfalls

* Also waits on a slot only read and never played: it is freed only when its effect is gone.
