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

# npc.common2effectplay

```lua
npc.common2effectplay(actor, effect)
```

|                         |                                                                                  |
| ----------------------- | -------------------------------------------------------------------------------- |
| id                      | `0x03E8`                                                                         |
| arguments               | 2: Int, Int                                                                      |
| result                  | Int: goes to the very next call, or to `npc.lua(npc.common2effectplay(...), fn)` |
| in NPC Kit              | yes                                                                              |
| measured from a kit NPC | returns                                                                          |
| vanilla scripts         | 324 calls in 81 of 1114 scripts                                                  |

## What it does

Plays one of the game's common effects, owned by the calling NPC and aimed at an actor (a sparkle, a puff, a flash on someone). Returns the effect's handle.

## Arguments

### `actor` (Int)

The actor the effect plays on: in the kit another NPC with `npc.actor("id")` (in a talk), `-1` for no target. Vanilla aims it at a party member (`PC00`).

### `effect` (Int)

Which common effect, **0 to 13**. The game reads its table with no bound check: a value of 14 or more takes other data as an effect id. Vanilla passes `11` (on a party member coming to); the kit examples use `4` and `11`. What each of the 14 looks like has no bundled table.

## Result

The effect's handle.

## Timing

Returns at once; the effect plays on its own.

## In NPC Kit

```lua
pop = function()
    npc.sebsoundplay(0, 46);
    npc.common2effectplay(npc.actor("npckit_0011"), 11);
    npc.wait(150);
end,
```

## Used with

* [sebsoundplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/sebsoundplay.md): a sound with it.
* [wait](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/wait.md): let it play before the next beat.

## Example

A puff on another NPC as it appears in a beat, with a sound, held long enough to play.

```lua
pop = function()
    local other = npc.on("npckit_0011")
    other.show();
    other.showshadow();
    npc.sebsoundplay(0, 46);
    npc.common2effectplay(npc.actor("npckit_0011"), 4);
    npc.wait(150);
end,
```

## Pitfalls

* Never above 13.
