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

# npc.questeffectread

```lua
npc.questeffectread(file)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x01DA`                        |
| arguments               | 1: Int                          |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 145 calls in 86 of 1114 scripts |

## What it does

Loads a quest effect file into script effect slot 0: [questeffectread\_1db](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/questeffectread_1db.md) with the slot fixed at 0.

## Arguments

### `file` (Int)

The quest effect file. Vanilla: `217`, `178`, `242`, `128`, `218`.

## Timing

Returns at once; the file loads on its own.

## In NPC Kit

Slot 0 is the slot the map's scripts use most; prefer [questeffectread\_1db](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/questeffectread_1db.md) with a slot of 16 to 30. Not tested on a kit NPC.

## Used with

* [effectreadsync](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectreadsync.md), [effectplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectplay.md), [effectsync](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectsync.md), [effectcancel](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectcancel.md): the slot-0 forms.

## Example

The vanilla shape: read into slot 0, wait, play, hold until it is over.

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

## Pitfalls

* Slot 0 is shared with the map: a read while the map holds an effect there is ignored.
