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

# npc.healall

```lua
npc.healall(type)
```

|                         |                                   |
| ----------------------- | --------------------------------- |
| id                      | `0x03AF`                          |
| arguments               | 1: Int                            |
| in NPC Kit              | yes                               |
| measured from a kit NPC | returns                           |
| vanilla scripts         | 2151 calls in 197 of 1114 scripts |

## What it does

Restores the party (and the Espers): HP, MP and statuses, by a selector.

## Arguments

### `type` (Int)

What is restored: `1` (and anything outside 1–5) HP, MP and one set of statuses; `2` also the second set; `3` the first set of statuses only; `4` both sets of statuses; `5` another group of statuses. Vanilla: `0` (1,228 calls) and `5` (903).

## Timing

Returns at once.

## In NPC Kit

A healer NPC: run it in a named function from the talk, with a sound ([sebsoundplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/sebsoundplay.md)) or an effect ([common2effectplay](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/common2effectplay.md)) of your choice.

## Example

```lua
heal = function()
    npc.healall(0);
end,
```
