# In-Game Editor

## Opening the Editor

`/pnpc editor` opens the main menu, and `/pnpc edit [id]` opens one NPC straight away, the one you look at when no id is given. Both need `phoenixnpcs.command.editor`.

<figure><img src="../.gitbook/assets/editor/npcs.png" alt="" width="563"><figcaption><p>Editor (NPCs)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/import-example.png" alt="" width="563"><figcaption><p>Editor (Import Example)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/discord.png" alt="" width="563"><figcaption><p>Editor (Discord)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/our-plugins.png" alt="" width="563"><figcaption><p>Editor (Our Plugins)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/groups.png" alt="" width="563"><figcaption><p>Editor (Groups)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/changelog.png" alt="" width="563"><figcaption><p>Editor (Changelog)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/migrations.png" alt="" width="563"><figcaption><p>Editor (Migrations)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/reload.png" alt="" width="563"><figcaption><p>Editor (Reload)</p></figcaption></figure>

<figure><img src="../.gitbook/assets/editor/settings.png" alt="" width="563"><figcaption><p>Editor (Settings)</p></figcaption></figure>

| Button | Opens |
| ------ | ----- |
| NPCs | The [NPC list](../main-features/npcs/README.md#the-npc-list). |
| Import Example | The [examples](examples.md), ready-made NPCs to place and learn from. |
| Discord | Sends you the link to our Discord. |
| Our Plugins | The other Phoenix products, each with a link to its store page. |
| Groups | The [groups](groups.md) of NPCs. |
| Changelog | The released builds of the plugin and what changed. |
| Migrations | Imports from Citizens, FancyNpcs, ZNPCsPlus and ZNPCs, see [Migrations](migrations.md). |
| Reload | Reloads the plugin, the same as `/pnpc reload`. |
| Settings | The defaults shared by every NPC, and [Backups](backups.md) with restore, see [Main Configuration](../configurations/main-configuration.md). |

Every change is saved as you make it, and the NPC updates for everyone straight away. `/pnpc undo` takes back your last changes, see [Undo](groups.md#undo).

## NPC Editor

Display, entity or model, identifier, name hologram and the bottom bar sit on the NPC's own screen. The rest is split into screens by topic, see [Edit NPC](../main-features/npcs/edit-npc.md).

| Screen | Holds |
| ------ | ----- |
| Model | Engine, model, idle and click animation. |
| Click Actions | Left, right and any click actions, Test, proximity actions, more triggers, action order, sounds, trades and the [Cooldowns & Limits](../main-features/cooldowns-and-limits.md) screen. |
| Appearance | Pose, scale, glow, equipment, emote, look, collision, per-player look rules and nameplate. |
| Movement | Mode, speed, waypoints, wander, pause, follow, mount and guard, see [Movement](movement.md). |
| Visibility | Visibility distance, visibility permission, show conditions, hidden players, servers and Check a Player, see [Visibility](visibility.md). |
| Tools | Move Here, Center, Face Me, Teleport to NPC and Refresh. |
| Dialogue | The steps, with Settings and Preview, see [Dialogues](dialogues.md). |

## Typing a Value

Text fields open a dialog where the server supports one, otherwise they ask in chat. Type `cancel` in chat to stop.

With Floodgate or Geyser installed on the server, Bedrock players get a Bedrock form instead of the dialog, and a button with more than one click action opens a form listing them. A list, such as the show conditions, opens as one field per entry plus an empty one at the bottom: clear a field to remove that entry, fill the empty one to add another.

> **Info:**
A reload closes every open editor, and tells the admins who had one open.

Source: https://www.phoenixplugins.com/docs/phoenix-npcs/features/in-game-editor