# Nameplate & Indicator

> **Info:**
Every option on this page is saved to the NPC's own file in the npcs folder.

> **Warning:**
The name above an NPC is always a PhoenixHolograms hologram linked to it. Without PhoenixHolograms installed, NPCs show no text above them.

## Name Hologram

An NPC shows no name until you link a hologram to it. The hologram follows the NPC, sits just above its head and is only seen by players who can see the NPC. Everything PhoenixHolograms can do works in it: several lines, pages, items, animations, click actions and lines only some players see. See [NPC Link](../../phoenix-holograms/main-features/holograms/edit-hologram.md#npc-link).

<figure><img src="../.gitbook/assets/nameplate/name-hologram.png" alt="" width="563"><figcaption><p>Edit NPC (Name Hologram)</p></figcaption></figure>

Open the NPC's editor and click Name Hologram:

| Button | What it does |
| ------ | ------------ |
| Link Hologram | Pick an existing hologram. Holograms linked to another NPC are not listed. |
| Unlink Hologram | Unlinks it. The hologram stays in PhoenixHolograms where it is. |
| Edit Hologram | Opens the linked hologram in the PhoenixHolograms editor. |
| Create & Link | Creates the hologram `npc_<id>` with the NPC's display name and links it. Nothing is ever created on its own. |

`/pholo edit <hologram> link <npc>` links one from a command. Removing an NPC unlinks its hologram and keeps it; renaming an NPC keeps the link.

## Nameplate Height

Moves the name hologram up or down, in blocks, from -5 to 5. It already sits above the NPC's head and follows its scale, so this is only needed for models or poses where it does not fit.

<figure><img src="../.gitbook/assets/nameplate/nameplate-height.png" alt="" width="563"><figcaption><p>Nameplate (Nameplate Height)</p></figcaption></figure>

## Indicator Symbol

A symbol shown above the name hologram, such as `&e&l!` for a quest giver. The symbol, the guard health display and [speech bubbles](speech-bubbles.md) stack above the name in that order, so they never cover it. Color codes work, and `\n` starts a new line. Leave it empty for none.

<figure><img src="../.gitbook/assets/nameplate/indicator-symbol.png" alt="" width="563"><figcaption><p>Nameplate (Indicator Symbol)</p></figcaption></figure>

## Indicator Condition

Shows the indicator only to players who pass the condition, checked again every second. Leave it empty to show it to everyone.

<figure><img src="../.gitbook/assets/nameplate/indicator-condition.png" alt="" width="563"><figcaption><p>Nameplate (Indicator Condition)</p></figcaption></figure>

## Show On Hover

Shows the name hologram only to a player who looks straight at the NPC within the hover distance, and hides it again when they look away, within half a second. The indicator is not affected.

<figure><img src="../.gitbook/assets/nameplate/show-on-hover.png" alt="" width="563"><figcaption><p>Nameplate (Show On Hover)</p></figcaption></figure>

## Hover Distance

How close, in blocks, a player has to be for the name to show on hover, from 1 to 64.

<figure><img src="../.gitbook/assets/nameplate/hover-distance.png" alt="" width="563"><figcaption><p>Nameplate (Hover Distance)</p></figcaption></figure>

## Speech Bubbles

Lines the NPC says above its name. See [Speech Bubbles](speech-bubbles.md).

<figure><img src="../.gitbook/assets/nameplate/speech-bubbles.png" alt="" width="563"><figcaption><p>Nameplate (Speech Bubbles)</p></figcaption></figure>

## Conditions

Conditions are used by the indicator, the `[CONDITION]` action and the [show conditions](visibility.md#show-conditions).

| Condition | Passes when |
| --------- | ----------- |
| `permission:<node>` | The player has the permission. |
| `!permission:<node>` | The player does not have the permission. |
| `item:<material>:<amount>` | The player carries at least that many of the material. |
| `!item:<material>:<amount>` | The player carries fewer. |
| `<left> <operator> <right>` | The comparison is true. Both sides can be placeholders. |
| `%placeholder%` | The placeholder gives `true` or `yes`. |

| Operator | Compares |
| -------- | -------- |
| `>`, `<`, `>=`, `<=` | Numbers. Text never passes. |
| `=`, `==`, `equals` | Equal numbers, or equal text ignoring case. |
| `!=` | The opposite of `=`. |
| `contains` | The left text holds the right text, ignoring case. |

For example `%player_level% >= 10` or `%vault_rank% equals vip`.

Source: https://www.phoenixplugins.com/docs/phoenix-npcs/features/nameplate-and-indicator