NPCs

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

Step 1 - Create the NPC file

First run the command :

/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 :

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

Every NPC made into the Ouranos plugin have the "ouranos" prefix. Only NPCs from other plugins have a different prefix

Last updated