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

# npc.setstatuserrordispdenystatus

```lua
npc.setstatuserrordispdenystatus(state)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x032B`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 9626 calls in 962 of 1114 scripts |

## What it does

Hides (`1`) or shows again (`0`) the status-ailment display.

## Arguments

### `state` (Int)

`1` hidden, `0` shown. Vanilla: `0` 9,273 times, `1` 353. Talks only ever pass `0`, at their end.

## Timing

Returns at once.

## In NPC Kit

`setstatuserrordispdenystatus(0)` is in `talkClose`, as in every vanilla talk.

## Used with

* The rest of `talkClose`: [clear\_force\_char\_nearfade](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/clear_force_char_nearfade.md), [setmaphighmodeldepth](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setmaphighmodeldepth.md), [setmapmodelstatus](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/setmapmodelstatus.md).

## Example

In `talkClose`, with the other calls every vanilla talk ends with.

```lua
local function talkClose()
    -- ... mouth, nods, lookatoff, ucon, sethpmenu(1) ...
    npc.clear_force_char_nearfade();
    npc.setmaphighmodeldepth(-1);
    npc.setmapmodelstatus(1);
    npc.setstatuserrordispdenystatus(0);
    npc.settrapshowstatus(1);
    npc.stdmotionplay_2c2(0x01000000, 20);
end
```
