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

# npc.openfullscreenmenu\_48d

```lua
npc.openfullscreenmenu_48d(menu, parameter)
```

|                         |                                                                                       |
| ----------------------- | ------------------------------------------------------------------------------------- |
| id                      | `0x048D`                                                                              |
| arguments               | 2: Int, Int                                                                           |
| result                  | int: goes to the very next call, or to `npc.lua(npc.openfullscreenmenu_48d(...), fn)` |
| in NPC Kit              | yes                                                                                   |
| measured from a kit NPC | waits: holds the script until its condition holds                                     |
| vanilla scripts         | 1274 calls in 224 of 1114 scripts                                                     |

## What it does

Opens one of the game's full-screen menus (the world map's destination screen, a shop, the notice board, ...) and holds the script until it closes; returns the player's choice.

## Arguments

### `menu` (Int)

Which menu: `0` the world map "Choose your destination", `1` the world map with no title, `2` a shop, more ids for other screens. Vanilla: `0x8005` (1,146 calls), `0x8000`, `2`.

### `parameter` (Int)

The screen's parameter: for a shop (`2`), which shop (vanilla `10` to `23`).

## Result

The choice made.

## Timing

**Waits until the full-screen menu next closes**, the main menu the player opens included.

## In NPC Kit

Not tested as a shop from a kit NPC. In a talk the player is held until the menu closes.

## Used with

* `references/traps.md`, Calls that never return.

## Example

The vanilla shape of a shop opened from a talk. Not tested from a kit NPC: try it in the game before shipping.

```lua
local comeAgain = [[
Come again! There's always something new in stock,
so drop by whenever you happen to be in town.
]]

shop = function()
    npc.openfullscreenmenu_48d(2, 10);   -- a shop, shop 10; waits until it closes
end,

talk = function()
    talkOpen();
    npc.lua(function(handle)
        handle.run("shop", function() say(handle, comeAgain) end)
    end);
    talkClose();
end,
```

## Pitfalls

* It waits until the next full-screen menu closes, the player's main menu included.
