Skip to content

NPCs ​

The NPCs editor (Entities > NPCs).
The NPCs editor (Entities > NPCs).

An NPC is every living thing that is not controlled by a player: enemies, townspeople, animals, bosses, merchants, quest givers, summoned pets. The NPC editor makes the definition, the kind of creature: a Wolf, a Guard, a Dragon. You then place it in a world, or spawn it with an event, an encounter or an effect.

Definition and placed NPC ​

The definition (this editor)The placed NPC
WhatThe kind of creatureOne of them, in one place
Made inEntities > NPCsThe Uniques tool in the 3D viewport
HoldsLevel, faction, stats, abilities, scripts, loot, modelA position, a facing, and overrides of the definition

A placed NPC can override the level, the model scale, the faction, the experience it is worth, its behavior and combat script, its loot table and inventory, and its stats. It can also be given an interaction (a conversation, a shop, a quest to give), have a spawn delay, a respawn timer, and decide whether it vanishes on death. Everything not overridden comes from the definition.

Template ​

An NPC can follow a template: the stats, pools, immunities, growth and abilities that many NPCs share. The Template section at the top of the editor chooses it, lists what this NPC changed on top of it, and makes new templates. A template is edited in this same editor, with the model, animations, audio and loot hidden.

Basic properties ​

FieldWhat it doesDefault
Entity name, Description, Icon, ColorThe name that shows over the creature and in the editor lists
Default levelThe level an NPC of this kind has when it spawns1
FactionThe faction of the NPC. It decides who attacks whom. None is a neutral creature that fights back only when it is attackednone
Entity typeThe type of the creature (Beast, Undead). One type: picking another replaces it. The effects of the type are put on the NPCnone
SpeaksThe language of the NPC's lines (a proficiency that is a language). A listener who does not understand it fully reads the lines garblednone
Entity tagsThe entity tags of the NPC (Boss, Elite, Rare): no effect on the NPC, only for the interface to readnone

Visual properties ​

FieldWhat it doesDefault
Entity skeletonThe skeleton. Select Skeleton opens the catalog; the chosen skeleton is shown in a 3D preview under the button (drag to turn it)none
Skeleton scaleSize of the model, with Uniform scale to keep the axes together1, 1, 1
Collision shapeThe body size for physics and targeting: tiny, small, normal, large or hugeNormal
Navigation domainWhere the NPC can go: Amphibious (walks and swims, never enters lava), Land (walks only: goes round deep water and lava) or Water (lives in the water and cannot walk: a fish; it is left stuck on land). The party is always amphibious. A Land or Water NPC needs the navigation baked againAmphibious

Animations ​

FieldWhat it does
Animation typeThe animation set from the animation library
Weapon ProfileHow the NPC fights: the attack, stance, block, aim and reload clips of a Weapon Profile. An NPC that carries no weapon item says here which profile it uses (a bow for an archer, Unarmed for a wolf). Without a profile it uses the old tags below
Is ranged, Attack tag, Stance tag, Aim tag, Reload tagThe old tags, only shown when the NPC has no profile. They work like the old tags of a weapon class: an NPC that carries no weapon item says here how it fights

Audio ​

FieldWhat it does
Voice audioThe voice type and variant from the audio library
Motion audioThe footstep set
FootprintThe picture of one footprint of this kind of entity (a sole, a paw, a hoof): a white shape on a transparent background, toes up. The ground tints it and decides how long it stays. Empty = it leaves no footprints (marks on the ground)

Stats ​

The Stats section is the same stats data a player class has: the pools, the core stat overrides (an NPC's weapon damage and weapon speed are how hard and how fast its bite hits), the base value of each stat, permanent immunities and level growth overrides.

The Stats page has, from the top: a line saying what the NPC follows (a template) and a Preview at level tick box; the Resources (a card for each pool, with its maximum); the Stats table; and three folds, Combat basics (the core stats: weapon damage, speeds, carry capacity, sight), Immunities and Level growth (advanced).

The table has a Stat group menu, which starts on All stats; the other choices are Stats with a value (the stats that are not left at their default, 0 for most: the ones this entity really uses, so that an NPC with six stats shows six rows), one stat group or In no group. + Add stat shows a hidden stat so that you can set it. Each row has the base value and, when the NPC follows a template, the value of the template (a value that differs is amber, with a reset arrow). Tick Preview at level and choose a level: the table gets the Growth and At level columns and the pool cards say what they are at that level.

The table lists the stats that are set (not at their default); the Show menu lists all stats, or one stat group, and + Add stat shows one that is at its default. Each row has the base value, what the template says (when it follows one), the growth at the preview level and the value at that level; a value that differs from the template is amber with a reset arrow.

An NPC levels with its level: its stats grow with it by their level growth, so a level 20 wolf is a stronger wolf than a level 5 one without a second definition.

FieldWhat it doesDefault
Growth profile (in the Level growth fold)The growth profile of this NPC (Heavy, Caster, Elite...): which stats and pools grow, and how fast. Default is the profile the template suggests, else the one the Gameplay Config names for every NPC. An NPC that follows a template still chooses its ownDefault
Level growth overrides (Add Override)A growth for one stat or pool of this NPC only. It wins over the profilenone

A pool and the stats that feed it all grow with the level, and the weapon damage of an NPC that has some can grow too (a profile entry for Weapon Damage). When the level changes (a respawn, level scaling) the NPC keeps its share of health. See Growth Profiles.

Abilities ​

The same three lists as a class: the auto attack ability, the active abilities it uses and the passive abilities that apply to it. An NPC with no abilities of its own and a weapon-less definition attacks with its basic attack.

AI scripts ​

FieldWhat it does
Behavior scriptWhat it does when nothing is happening: wander, patrol, follow a daily schedule. See Behavior Scripts
Combat scriptHow it fights: what it does when it sees an enemy and in the fight. See Combat Scripts. With none, it fights simply: it uses its abilities in turn

Loot ​

The loot rules, the bag and the ranks of the abilities are in the Inventory & Loot section of the editor.

What the NPC hands out is a list of loot rules: each is a loot table, a trigger (On Initialize: it carries it from the start, On Death: it is on the body, On First Access: the first time its pockets are opened, by a pickpocket or when the body is looted) and where the item level of generated items comes from (the NPC's own level by default). Add a rule with a shared table, or with a table of its own that you edit right there ("this guard carries the key"). A fixed starting inventory is just a rule on Initialize with a table of guaranteed entries.

FieldWhat it does
RulesAdd a rule (shared table) or (its own table). Each rule has When, the table, Item level and The receiver changes it
Move the older settings into loot rulesShown when the NPC still has the older Loot table / logic and fixed Inventory. They keep working, and this turns them into rules you can edit

When an NPC dies it becomes a corpse that can be looted, if it has anything (or a rule still waits for the first time it is looted). After the last item the corpse has nothing to loot. A placed NPC with a respawn timer comes back; one with despawn on death vanishes. A placed NPC can replace the rules of its definition.

Bag ​

The bag of an NPC has no limit and no weight: it holds as many things as it is given, so there is nothing to set (the inventory styles of the Gameplay Config are for characters and containers). See Inventories.

Ability ranks ​

An NPC can use abilities that have ranks. The Ability ranks section of the NPC editor lists its abilities that have ranks:

FieldWhat it does
A number for each abilityThe rank that ability has (1 to its highest). 0 = not set
Rank by levelA formula for the abilities that have no number: the levels above the first go in (level 11 gives 10), the ranks above the first come out, rounded down. Linear 0.1: rank 2 at level 11, rank 3 at level 21, rank 4 at level 31

An ability that has neither is rank 1. The ranks follow the NPC's level whenever it changes (a rescale, a respawn).

Experience ​

An NPC gives the party experience when it dies. How much is decided by the Kill Experience settings of the project: a fixed amount, a table by the NPC's level, or a formula of its level.

FieldWhat it doesDefault
Experience worthWith Fixed kill experience, the amount the NPC gives. With a table or a formula, a worth above 0 replaces the amount of the NPC's level0
Experience multiplierMultiplies the result: 2 is double, 0 is none1

A placed NPC can override the worth, and has a multiplier of its own that multiplies on top. The entity types of the NPC multiply too (an Elite type that is worth 3 times as much). The experience goes to the party, and the reserve gets its share.

Level ​

The Default level is the level the NPC has when it is made. If the project uses NPC level scaling the level is then moved towards the level of the party, and the stats grow with the level it ends up with. A placed NPC can override the level. The scaled level is not fixed for ever: with the rescale options on, an NPC takes a new level when it respawns and when the party levels up. An NPC with the entity type Boss or Elite can follow its own scaling rule.

How an NPC behaves in a fight ​

  1. It is hostile to the factions its own faction says, so it pulls (starts a fight) when one of them comes into its sight range. A neutral creature never pulls; it fights only once it was attacked, and is neutral again when the fight ends.
  2. Its threat table decides whom it attacks, unless the project turned the threat system off (it then attacks the nearest).
  3. It follows its combat script: search, chase, attack, flee.
  4. When it is far from the player the game lowers how often it thinks (the level of detail settings in the Gameplay Config), so a world full of NPCs stays fast.

See also ​