# NPCs

On this page you will learn to create and use custom NPCs.

If you're a developer you can look at the [#npc-tag-system](https://alex-plugins.gitbook.io/ouranos/api/extensions#npc-tag-system "mention") to develop your own NPC for Ouranos, but if you're not and you want to create a merchant NPC, this page is for you.

### Step 1 - Create the NPC file

First run the command :&#x20;

```
/oconfig create npc <name> 
```

This will create a new NPC file into the /plugins/Ouranos/NPC/ folder.

### Step 2 - Tune your NPC

Change the values inside the NPC configuration file you just created. You can take inspiration from the Ouranos pre-made NPCs into the `/plugins/Ouranos/NPC/Ouranos/` folder.

### Step 3 - Add your NPC into a building

You can add your NPC into Ouranos or custom buildings (it can be either a city, village or structure). To do so, go into the building file you want to add your NPC, for example the bank.yml file located into the /plugins/Ouranos/cities/Ouranos/ folder.

Finally into the npc list, add your npc :&#x20;

```yaml
npcs:
  npc_1: ouranos:none
  npc_4: ouranos:CoinMaster
  npc_5: ouranos:ItemMaster
  npc_2: ouranos:<name>           # Replace <name> by the actual name of your NPC
  npc_3: ouranos:none
  npc_8: ouranos:none
  npc_6: ouranos:none
  npc_7: ouranos:none
```

{% hint style="info" %}
Every NPC made into the Ouranos plugin have the "ouranos" prefix. Only NPCs from other plugins have a different prefix
{% endhint %}
