> 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/examples/inspectable-object.md).

# An Inspectable Object

**A Sun Cryst rests in the bazaar. Face it and a magnifier shows over the player; press the button and a message says what it is.**

This example takes place on map id 290, Rabanastre / Muthru Bazaar.

Download: [inspectable-object.lua](https://github.com/FelipeJulio/NPC-Kit/tree/main/examples/inspectable-object.lua)

```lua
local ok, npc = pcall(require, "scripts.NPCKit.Helper")
if not ok then
    print("Couldn't install, NPC Kit is missing.")
    return
end

local look = [[
A crystal humming with a warm, steady light.
It feels like the sun itself is resting inside.
]]

local function placeObject(model, x, y, z, heading)
    npc.setautorelax(1);
    npc.usecharhit(0);
    npc.bindp2_d4(model, 1, 0);
    npc.stdmotionread(16);
    npc.stdmotionreadsync();
    npc.stdmotionplay_2c2(0x01000000, 0);
    npc.setoverheadicontype(0);
    npc.usemapid(0);
    npc.usecharhit(1);
    npc.setweight(-1);
    npc.set_ignore_hitgroup(1);
    npc.motionloop(1);
    npc.setpos2(x, y, z);
    npc.dir(heading);
    npc.fetchambient();
    npc.bonecalcforce(-1);
    npc.clearhidecomplete();
    npc.show();
    npc.showshadow();
end

local function myMod()
    npc.add {
        id = "npckit_0017",
        map = 290,
        name = "NPCKit 0017",

        init = function()
            placeObject(0x00670037, 31.9, -9.0, 64.0, 3.1416);
            npc.setnavimapdrawstatus(0);
            npc.reqenable(13);
            npc.fieldsignicon(3);
            npc.showfieldsign();
        end,

        main = function()
            npc.wait(90);
        end,

        talk = function()
            npc.ucoff();
            npc.lua(function(handle)
                if not dialog.amese.open {
                        speaker = "NPCKit 0017",
                        icon = 3,
                        body = look,
                        queue = true,
                        onClose = function() handle.finish() end,
                        onError = function() handle.finish() end
                    } then
                    handle.finish()
                end
            end);
            npc.ucon();
        end
    }
end

event.registerEventAsync("onInitDone", myMod)
```

This is how the vanilla signs work (the Moogles Eight in Old Archades). `reqenable(13)` turns on the field sign, `fieldsignicon(3)` picks the magnifier and `showfieldsign` shows it: the label is drawn over the **player**, only while the player faces the object. `fieldsignicon(2)` draws "!!" instead. `setnavimapdrawstatus(0)` takes off the object's own tag, so the magnifier is the only icon and the `name` shows once, beside the button, as "The Moogles Eight" does.

The talk has no turn and no talking pose: an object doesn't look at you. `icon = 3` puts the same magnifier on the message's name plate.

Don't use `fieldsignmes` on a kit NPC: it replaces the name NPC Kit finds the NPC by. See [fieldsignicon](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/fieldsignicon.md).
