> For the complete documentation index, see [llms.txt](https://picnic-in-the-oblivion.gitbook.io/level-editor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://picnic-in-the-oblivion.gitbook.io/level-editor/ai-npc-zones-or-normal/talkable-npc.md).

# Talkable NPC

Go to the **AI/** folder and drag **ai\_npc.tscn** on the scene.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FOTZjaXtqvUES2QttCzaI%2Fimage.png?alt=media&amp;token=ad6f077a-3f17-4a2d-bab6-9dc2029e25dc" alt=""><figcaption></figcaption></figure>

NPC has a different type, it's not level\_object. But it has some parameters that player can change in editor inside inspector.\
\
**ID** - string of npc profile ID from assets/creatures/characters.json\*

**Is Hostile** - turn on/off enemy state. If ON then Eyezone ID, Attack anims and Start anims is required!

**Eyezone ID** - ID of eyezone on the level (first create eyezone, then put your own id inside keys of eyezone and then duplicate this id to Hostile NPC)

**Attack Animations** - list of attacking animations for combat when player is inside eyezone. Hold mouse on this field and tooltip will show what type of animations is available.

**Start Animation** - animation that will be player when Enemy NPC will spawn.<br>

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FxVIbksHtyqweBNPcmXPc%2Fimage.png?alt=media&amp;token=f2a797ae-11ed-48c2-995c-3933b675543a" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
But now we need only ID in NPC PROFILE group because our npc will be friendly.
{% endhint %}

Let's put the trader's ID into this NPC.<br>

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FsMjYz6jqVYHN4RpZ67cX%2Fimage.png?alt=media&amp;token=e2c792a2-1384-4675-b921-b2fca7b8bc25" alt=""><figcaption></figcaption></figure>

All animations of the friendly NPC will be player from characters.json file on spawn.

When we'll start game our NPC will be in sit pose.

<figure><img src="https://1426670673-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FekY9xNdT8kuOP48LQNQK%2Fuploads%2FhPZVBXhzmDRLLIXQZu9K%2Fimage.png?alt=media&amp;token=393e014c-9900-4392-bca8-95d4b1015a7b" alt=""><figcaption></figcaption></figure>
