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

# npc.setmeswinline

```lua
npc.setmeswinline(slot, lines)
```

|                         |                                 |
| ----------------------- | ------------------------------- |
| id                      | `0x0474`                        |
| arguments               | 2: Int, Int                     |
| in NPC Kit              | yes                             |
| measured from a kit NPC | returns                         |
| vanilla scripts         | 204 calls in 99 of 1114 scripts |

## What it does

Sizes window `slot`'s next window for `n` lines of text.

## Arguments

### `slot` (Int)

The window slot, 0 to 7.

### `lines` (Int)

How many lines.

## Timing

Returns at once.

## In NPC Kit

**Use the `lines` field of `dialog.*`** for the kit's windows.

## Used with

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

## Example

The kit form of `setmeswinline(0, 3)`: a window sized for three lines, so a later `setText` with more text still fits.

```lua
local oneMoment = [[
One moment, please, I'm almost finished with this.
Then I'm all yours, and you can ask me anything.
]]

npc.lua(function(handle)
    if not dialog.amese.open {
            speaker = "NPCKit 0020",
            body = oneMoment,
            lines = 3,
            queue = true,
            onClose = function() handle.finish() end,
            onError = function() handle.finish() end
        } then
        handle.finish()
    end
end);
```
