Make your own NPC¶
NPC Utilities is a framework: it supplies the brains (AI, hiring, orders, gunfights, factions, dialog hooks, voices)
and you supply the people. An NPC is a normal entity class, so if you have edited entityclasses.xml before, you
already know most of this.
What you can make¶
| You want | You need | Page |
|---|---|---|
| A new NPC on the built-in body (stats, weapons, faction, price, dialog) | XML only | Your first NPC |
| Your own faction with its own friends and enemies | XML only | Factions |
| Your own conversation trees | XML only | Dialog |
| Your own voice | Audio clips in a bundle + sounds.xml | Voices |
| Your own character model | A humanoid model in a Unity bundle | Your own model |
| NPCs that appear in the world | entitygroups.xml | Spawning |
Start with Your first NPC, then look at the example pack for a complete mod.
Rules of thumb¶
- Name your mod folder so it sorts after
DSD_NPCUtilities(for exampleDSD_NPCUtilities_MyPack). Mods load in name order and yours needs the template that NPC Utilities defines. - Every NPC extends
dsdNpcTemplate. Override what you need, keep the rest. - Use your own prefix on every name (
myNpc...,myFaction...) so packs don't collide. - Your mod also needs EAC off only because NPC Utilities does; your XML itself is plain XML.
Share your pack
Made an NPC pack? Show it off and get help on the DarkSideDev Discord: discord.gg/gZJDgHD7Jw