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

# npc.charcommoneffecttrigger

```lua
npc.charcommoneffecttrigger(state)
```

|                         |                                |
| ----------------------- | ------------------------------ |
| id                      | `0x0466`                       |
| arguments               | 1: Int                         |
| in NPC Kit              | yes                            |
| measured from a kit NPC | returns                        |
| vanilla scripts         | 76 calls in 21 of 1114 scripts |

## What it does

Sends a state to the NPC's own common effect, the one [charcommoneffectplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/charcommoneffectplay.md) started. With no such effect, nothing happens.

## Arguments

### `state` (Int)

The state. Every vanilla call passes `1`, right after the play.

## Timing

Returns at once.

## In NPC Kit

Use it as vanilla does, `1` straight after [charcommoneffectplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/charcommoneffectplay.md). What other states do is not confirmed. Not tested on a kit NPC.

## Used with

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

## Example

```lua
sparkle = function()
    npc.charcommoneffectplay(13);
    npc.charcommoneffecttrigger(1);
end,
```

## Pitfalls

* Only `1` has a vanilla use.
