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

# npc.getchocobomodebit

```lua
npc.getchocobomodebit()
```

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

## What it does

Gives `1` while the party rides a chocobo, else `0`. A result.

## Result

`1` or `0`.

## Timing

Returns at once.

## Used with

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

## Example

A stable hand who comments on the chocobo when the party rides one.

```lua
talk = function()
    talkOpen();
    npc.lua(npc.getchocobomodebit(), function(handle, riding)
        say(handle, riding == 1 and "Fine bird you've got there!" or "Need a chocobo?")
    end);
    talkClose();
end,
```
