Register

PF2e and SF2e NPC Hub and Architect

An Add-on Module for Foundry Virtual Tabletop

Author: kerplunk177 Project: Source Foundry Version 13 (Verified 13) Last Updated 13 hours, 38 minutes ago

NPC Architect for Foundry VTT

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!

Core Features

Installation

  1. Open Foundry VTT and navigate to the Add-on Modules tab.
  2. Click Install Module.
  3. Paste the following link into the Manifest URL field at the bottom: https://github.com/kerplunk177/PF2E-NPC-Architect-and-Hub/blob/main/npc-architect/module.json
  4. Click Install.
  5. Open your World, navigate to Manage Modules, and enable NPC Architect.

Usage Guide

Scaling an NPC

Open 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.

Building an Archetype

  1. Navigate to the Builder tab.
  2. Select + Create New Class and give it a name.
  3. If it is a spellcasting class, check Is Spellcaster? and select a tradition.
  4. Drag and drop features, weapons, and spells from your items directory or compendiums directly into the level rows.
  5. For Spells: Once dropped, a small input box will appear next to the spell name. Enter a number (1 through 10) to dictate which rank the spell should be heightened to when injected.
  6. Click Save.

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.

The Quick Forge Macro

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);
}

Supported Game Systems

  1. Pathfinder Second Edition

    Latest Version: Version 7.10.1 Last Updated 2 weeks, 1 day ago
  2. Starfinder Second Edition

    Latest Version: Version 0.0.4 Last Updated 3 weeks, 4 days ago

Categories

Available Versions

  1. Version 1.2

    13 hours, 38 minutes ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  2. Version 1.0

    1 day, 10 hours ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL
  3. Version 0.0.1

    1 day, 17 hours ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes