NPCs

NPCs can be used for many different things such as Enemies, Allies, Neutral Units, Merchants, Quest Givers..

Generic Fields

Field Name

Function

ID

The ID of this asset data element. Automatically generated.

Name

Name of the asset data in the project and editor.

Display Name

The name that will be displayed to the player.

File Name

The name of the file in the project. Automatically generated.


AI Settings

Field Name

Function

Set GameObject Tag?

Should the NPC have a (custom) tag?

Tag

Dropdown menu where you can choose one of your tags.

Set GameObject Layer?

Should the NPC be set to a (custom) layer?

Layer

Dropdown menu where you can choose one of your layers.

Family

The family this NPC belongs to

AI Template

The logic template this NPC (AI) will use. Default is AILogicTemplate prefab asset.

Phase

Which phases the NPC has access to

NPC Preset

The preset of this NPC

Phases

Learn more about Phases here

NPC Preset

Learn more about NPC Presets here


Functions

Field Name

Function

Training Dummy?

If on, this NPC will never die, instead it goes back to full health.

Combat Enabled?

If on, this NPC will run the combat logic and use its abilities.

Merchant?

If on, this NPC will get a merchant option.

Merchant Text

This is the text that appears during interaction that will open the merchant window once clicked

Quest?

If on, this NPC can give you quests.

Quest Text

This is the text that appears during interaction that will open the quest window once clicked

Dialogue?

If on, you can add a dialogue graph to this NPC

Dialogue Text

This is the text that appears during interaction, once clicked the dialogue graph will become active

Can Be Targeted?

If on, this NPC can be targeted.

Player Interactable?

If on, this NPC can be interacted with by using the interaction key.

Show Nameplate?

If on, this NPC will have its nameplate showing above it.

Movement Enabled?

If on, this NPC will be able to move.

Collision Enabled?

If on, this NPC will be possible to collide with.

Combat

Field Name

Function

Faction

The faction of this NPC

Species

The species of this NPC.

Scale with player?

If on, the NPC level will match the player's class or weapon templates level.

Level Min

The minimum possible level of this NPC.

Level Max

The maximum possible level of this NPC.

Reset phase after combat?

If on, NPC will reset back to its first phase once out of combat.

Instantly Heal

If on, NPC will instantly heal to full health once out of combat.


Field Name

Function

Type

  • NPC

  • Family

NPC

The NPC that will also aggro the attacker when this NPC is attacked.

Family

The NPC Family that will also aggro the attacker when this NPC is attacked.

Max Distance

The distance maximum for this NPC to be alerted.

Info

If type is set to "Family" then all members of this NPC Family will engage in combat if the player attacks this NPC.

For example, you have an "Undead" NPC family and a Skeleton Warrior & a Lich are part of this family. If the aggro type is set to "Family" and setup on the Lich then once you attack the Lich, every Lich & Skeleton Warrior that are in range will come to the aid of the Lich you attacked.

Additionally, if you were to set the "Undead" family up on an Aggro Link on let's say a Bear. Then once you attack this Bear, every Lich and Skeleton Warrior that are in range will come to this Bear's aid.


Dialogue

Field Name

Function

Dialogue

Here you assign a Dialogue. Dialogues are created under World > Dialogues

Dialogue

Learn more about Dialogue Graphs here


Merchant

Field Name

Function

Merchant Table

The merchant table attached to this NPC and that will be presented when interacting with it.

Requirements

Lets you assign a requirement template. For example X quest must be completed before you can access this merchant table.

Merchant Tables

Learn more about Merchant Tables here

Requirements

Learn more about Requirements here


Quests Given

Quest Data

Function

Quest

The quest that this NPC is starting.


Quests Completed

Quest Data

Function

Quest

The quest that this NPC is completing.

Quests

Learn more about Quests here


Respawn

Field Name

Function

Respawn Min

Minimum respawn time.

Respawn Max

Maximum respawn time.

Corpse Despawn Time

The duration for which the dead corpse of an NPC will remain in the scene.


Rewards

Field Name

Function

Loot Bag Prefab

Custom prefab of the loot bag item that is spawned once NPC is killed. If left empty a default loot bag prefab will be spawned that is set in Settings > Economy > Loot

Bag Duration

Duration (in seconds) the loot bag prefab remains in the scene before it despawns.

EXP Min

Minimum amount of EXP rewarded.

EXP Max

Maximum amount of EXP rewarded.

Level Bonus EXP

The amount of extra EXP that is rewarded per level of the NPC.

% For each lower player level

This field defines a percentage of either bonus or negative EXP based on how many levels the player is below the NPCs level.

For example, the player is level 5 and the NPC is lvl 7. Value = 10. This means the player gets a 20% bonus amount of EXP from killing this NPC. If the value is set to -10 then the player would gain a decreased amount of EXP (decreased by 20% in this case)

% For each higher player level

This field defines a percentage of either bonus or negative EXP based on how many levels the player is above the NPCs level.

For example, the player is level 5 and the NPC is lvl 3. Value = 10. This means the player gets a 20% bonus amount of EXP from killing this NPC. If the value is set to -10 then the player would gain a decreased amount of EXP (decreased by 20% in this case)

Faction Reward

  • Faction: The faction to reward points toward player faction stance

  • Amount: The amount to reward. Can also be negative value to lose faction points


Loot Tables

Field Name

Function

Loot Table

The loot table that will drop.

Chance

The chance in percent for this loot table to drop.

Loot Tables

Learn more about Loot Tables here


Stats

Field Name

Function

Use Template?

If enabled, you can select a Stat List Template

Stat

The Stat to override values for.

Added Value

Base value of this Stat.

Bonus per level

The amount gained of this Stat per level.

Is Percent?

Is the value a percentage?

Override minimum value?

Should the minimum value of the stat be overriden?

Min. Value

The minimum value of this Stat.

Override maximum value?

Should the maximum value of the stat be overriden?

Max. Value

The maximum value of this Stat.

Override starting percentage?

Should the starting percentage of the stat be overriden?

Starting percentage

New starting percentage value. Slider bar.

Chance

Chance of the stat being present on the character upon creation

Stats

Learn more about stats here

Stat Lists

Learn more about Stat Lists here