npcs
Opens the gump to look mobile templates up: you type a part of a name or of an id, or a body number, and it lists the matches with the picture of their body, to spawn one at your feet.
| Syntax | Console | In game | Minimum level | Role |
|---|---|---|---|---|
npcs [text] |
No | Yes | GameMaster | Game |
.npcs.npcs orc lordIn game only. Without a text the gump opens with an empty search box; with one it opens already searched, the words after the command being the text (quotes around them are dropped).
The search
Section titled “The search”Type a part of a name or of an id, or a body number (17 or 0x11), and press Search. The match is a part of the name
or of the template id, without regard to case, and the templates of the body when the text is a number; the list is
sorted by id. A template with neither a body nor a race, such as an abstract base, is left out; a human template has the body of its
race. The list shows five matches to a
page, each with the picture of its body, its name and its template id, and keeps the first 40; when there are more the
title says so (NPCs: the first 40, type more to narrow it.):
an orc lordorc_lordThe picture is the item art data/portraits.toml names for the body; a body that file does
not list leaves the place empty. 1 / 3 and the arrows under the list turn the pages.
The Spawn button beside a match makes the NPC on the ground where you stand, as npc.spawn does: it is saved first, so
it appears a moment later with its own script. You read Spawning an orc lord (orc_lord) at 1500, 1600. or
Could not spawn an orc lord (orc_lord). when it cannot be made, and the list opens again on the same page for the next
one. A button of the gump does nothing for one who has lost the rank since it was opened. To choose the spot with a
cursor, use spawn.
The gump is templates/gumps/npcs.xml and its script
scripts/gumps/npcs.lua, which are yours to change.
See also
Section titled “See also”Made with ❤️ by Tom
