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

# npc.effectreadsync

```lua
npc.effectreadsync()
```

|                         |                                                                         |
| ----------------------- | ----------------------------------------------------------------------- |
| id                      | `0x00DC`                                                                |
| arguments               | 0                                                                       |
| 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         | 1143 calls in 189 of 1114 scripts                                       |

## What it does

Holds the script until the effect file read into script effect slot 0 has loaded: [effectreadsync\_e1](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectreadsync_e1.md) with the slot fixed at 0.

## Timing

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

## In NPC Kit

Slot 0 is shared with the map; prefer the slot forms on 16 to 30. Not tested on a kit NPC.

## Used with

* [questeffectread](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/questeffectread.md) before it, [effectplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectplay.md) after it.

## Example

```lua
flash = function()
    npc.questeffectread(217);
    npc.effectreadsync();
    npc.effectplay(0);
end,
```

## Pitfalls

* Waits on slot 0 whoever read it, the map included.
