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

# npc.ismapjumpgroupflag

```lua
npc.ismapjumpgroupflag(flag)
```

|                         |                                                                                   |
| ----------------------- | --------------------------------------------------------------------------------- |
| id                      | `0x0432`                                                                          |
| arguments               | 1: Int                                                                            |
| result                  | int: goes to the very next call, or to `npc.lua(npc.ismapjumpgroupflag(...), fn)` |
| in NPC Kit              | yes                                                                               |
| measured from a kit NPC | returns                                                                           |
| vanilla scripts         | 3667 calls in 189 of 1114 scripts                                                 |

## What it does

Gives the state of one of the game's story flags (the same bit array as the story-flag reads of the map scripts, despite the name). A result.

## Arguments

### `flag` (Int)

The flag number.

## Result

`1` set, `0` clear.

## Timing

Returns at once.

## In NPC Kit

Reading is safe: an NPC that says something else once a story point is reached, `npc.lua(npc.ismapjumpgroupflag(n), fn)`. Which number means what has no bundled table: ask the requester.

## Example

An NPC that says something else once a story point is reached. The flag number is the requester's: there is no bundled table.

```lua
local flag = 90   -- one of vanilla's flags; ask the requester which one gates what

talk = function()
    talkOpen();
    npc.lua(npc.ismapjumpgroupflag(flag), function(handle, set)
        say(handle, set == 1 and "Have you heard the news from the palace?"
                             or "Quiet day, isn't it?")
    end);
    talkClose();
end,
```
