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

# npc.effectcancel

```lua
npc.effectcancel()
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x00DF`                          |
| arguments               | 0                                 |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 1142 calls in 129 of 1114 scripts |

## What it does

Stops the effect in script effect slot 0: [effectcancel\_e4](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectcancel_e4.md) with the slot fixed at 0.

## Timing

Returns at once.

## In NPC Kit

Slot 0 is shared with the map: this can stop a map effect. Prefer [effectcancel\_e4](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/effectcancel_e4.md) on the slot the NPC read. Not tested on a kit NPC.

## Used with

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

## Example

```lua
stop = function()
    npc.effectcancel();
end,
```

## Pitfalls

* Stops whatever holds slot 0.
