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

# npc.effectreadsync\_e1

```lua
npc.effectreadsync_e1(slot)
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x00E1`                                                                |
| 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         | 563 calls in 275 of 1114 scripts                                        |

## What it does

Holds the script until the effect file read into a slot has loaded, so that [effectplay\_e2](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectplay_e2.md) can play it.

## Arguments

### `slot` (Int)

The slot the read named, 0 to 31.

## Timing

Waits, once a frame, until the file is loaded. A slot that is not reading goes on at once.

## In NPC Kit

Always put it between the read and the play: a play on a slot still loading plays nothing. Not tested on a kit NPC.

## Used with

* [questeffectread\_1db](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/questeffectread_1db.md), [effectread\_e0](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectread_e0.md), [locationeffectread\_128](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/locationeffectread_128.md) before it.
* [effectplay\_e2](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectplay_e2.md) after it.

## Example

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

## Pitfalls

* Going on at once doesn't mean the effect is ready: the read may have been ignored (busy slot).
