NPCs

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

Generic Fields

Field NameFunction
IDThe ID of this asset data element. Automatically generated.
NameName of the asset data in the project and editor.
Display NameThe name that will be displayed to the player.
File NameThe name of the file in the project. Automatically generated.

AI Settings

Field NameFunction
Set GameObject Tag?Should the NPC have a (custom) tag?
TagDropdown menu where you can choose one of your tags.
Set GameObject Layer?Should the NPC be set to a (custom) layer?
LayerDropdown menu where you can choose one of your layers.
FamilyThe family this NPC belongs to
AI TemplateThe logic template this NPC (AI) will use. Default is AILogicTemplate prefab asset.
PhaseWhich phases the NPC has access to
NPC PresetThe preset of this NPC

Learn more about Phases here

Learn more about NPC Presets here

Functions

Field NameFunction
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 TextThis 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 TextThis 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 TextThis 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 NameFunction
FactionThe faction of this NPC
SpeciesThe species of this NPC.
Scale with player?If on, the NPC level will match the player's class or weapon templates level.
Level MinThe minimum possible level of this NPC.
Level MaxThe 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 HealIf on, NPC will instantly heal to full health once out of combat.
Field NameFunction
Type
  • NPC
  • Family
NPCThe NPC that will also aggro the attacker when this NPC is attacked.
FamilyThe NPC Family that will also aggro the attacker when this NPC is attacked.
Max DistanceThe distance maximum for this NPC to be alerted.

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 NameFunction
DialogueHere you assign a Dialogue. Dialogues are created under World > Dialogues

Learn more about Dialogue Graphs here

Merchant

Field NameFunction
Merchant TableThe merchant table attached to this NPC and that will be presented when interacting with it.
RequirementsLets you assign a requirement template. For example X quest must be completed before you can access this merchant table.

Learn more about Merchant Tables here

Learn more about Requirements here

Quests Given

Quest DataFunction
QuestThe quest that this NPC is starting.

Quests Completed

Quest DataFunction
QuestThe quest that this NPC is completing.

Learn more about Quests here

Respawn

Field NameFunction
Respawn MinMinimum respawn time.
Respawn MaxMaximum respawn time.
Corpse Despawn TimeThe duration for which the dead corpse of an NPC will remain in the scene.

Rewards

Field NameFunction
Loot Bag PrefabCustom 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 DurationDuration (in seconds) the loot bag prefab remains in the scene before it despawns.
EXP MinMinimum amount of EXP rewarded.
EXP MaxMaximum amount of EXP rewarded.
Level Bonus EXPThe 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 NameFunction
Loot TableThe loot table that will drop.
ChanceThe chance in percent for this loot table to drop.

Learn more about Loot Tables here

Stats

Field NameFunction
Use Template?If enabled, you can select a Stat List Template
StatThe Stat to override values for.
Added ValueBase value of this Stat.
Bonus per levelThe 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. ValueThe minimum value of this Stat.
Override maximum value?Should the maximum value of the stat be overriden?
Max. ValueThe maximum value of this Stat.
Override starting percentage?Should the starting percentage of the stat be overriden?
Starting percentageNew starting percentage value. Slider bar.
ChanceChance of the stat being present on the character upon creation

Learn more about stats here

Learn more about Stat Lists here

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard