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

# npc.getsummonmodebit

```lua
npc.getsummonmodebit()
```

|                         |                                                                              |
| ----------------------- | ---------------------------------------------------------------------------- |
| id                      | `0x0512`                                                                     |
| arguments               | 0                                                                            |
| result                  | int: goes to the very next call, or to `npc.lua(npc.getsummonmodebit(), fn)` |
| in NPC Kit              | yes                                                                          |
| measured from a kit NPC | returns                                                                      |
| vanilla scripts         | 5387 calls in 468 of 1114 scripts                                            |

## What it does

Gives `1` while an Esper is summoned (the party's Esper mode), else `0`. A result.

## Result

`1` or `0`.

## Timing

Returns at once.

## In NPC Kit

Read in Lua: an NPC that won't talk while an Esper is out. A summon's cinematic doesn't hide kit NPCs.

## Used with

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

## Example

An NPC that refuses to talk while an Esper is out.

```lua
talk = function()
    talkOpen();
    npc.lua(npc.getsummonmodebit(), function(handle, summoned)
        say(handle, summoned == 1 and "Put that... thing away first!" or "What can I do for you?")
    end);
    talkClose();
end,
```
