| Latest version | 2.0 |
|---|---|
| Minimum Core | 14 |
| Compatible Core | 14 |
| Last updated | 3 months ago |
| Created | 6 months ago |
| Authors | |
| Languages |
|
| Systems | All systems |
| Project source | Project URL |
NPC Architect is a dynamic Foundry VTT module designed to automate the creation and scaling of NPCs for Pathfinder 2e and Starfinder 2e.
It features a robust math engine that instantly recalculates an NPC's core statistics, saves, skills, strikes, and spell DCs to match any target level and combat role. Beyond raw stat scaling, the module introduces a custom Archetype Builder, allowing GMs to map out 1 to 20 class progressions using a drag-and-drop interface. When applied, the Architect automatically injects leveled features, overwrites obsolete abilities, and sorts heightened spells into newly generated, fully scaled spellcasting entries. Complete with an on-the-fly weapon Forge, compendium spell scraping, and an interactive public dossier for tracking player notes and faction connections, NPC Architect handles the heavy lifting of custom encounter design.
To use these features, click the Pawn Symbol at the top of any NPC. Enabling "Track in Campaign Hub" will track them inside of the NPC Dossier, accessable from the Token Controls -> Campaign Dossier (Represented by the 3 meeples). Once they're in this menu, Right clicking will bring up their Architect window, left clicking on the token will navigate to a public sheet section, and left clicking on the bottom portion (including the name and affiliation) will open the NPC's sheet. You can also drag NPC's from the Dossier to any canvas!
https://github.com/kerplunk177/PF2E-NPC-Architect-and-Hub/blob/main/npc-architect/module.jsonOpen any NPC sheet and navigate to the new Scaling tab (or the module's main interface). Select a base combat role and input your target level. The module will recalculate the underlying Pathfinder/Starfinder math and update the sheet in a single database payload to prevent race conditions.
When scaling an NPC, you can now select your custom Archetype from the dropdown menu. The module will automatically inject all features up to the NPC's new target level.
If you need to quickly add an attack to an existing NPC without running a full recalculation, you can trigger the Quick Forge via a hotbar macro. Create a new Script macro in Foundry and paste the following code:
if (!token) {
ui.notifications.warn("Please select an NPC token first!");
} else {
// Dynamically import the module's math script and fire the Quick Forge
const NpcMath = await import("/modules/npc-architect/scripts/NpcDataModel.js");
NpcMath.quickForge(token.actor);
}
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: pf2e-npc-architect or copy its manifest URL:
And paste it to the input box at the bottom of your window.

You can install this package directly to your Forge account.