Create a D&D 5e NPC
dnd5e-create-npcCreate a D&D 5e NPC with full stat block and no items, saved to the Foundry MCP Creatures folder. Avoid duplicate names and invalid challenge ratings while dnd5e derives proficiency and XP.
Instructions
[D&D 5e only] Create one NPC with a complete stat block and no items: type, size, alignment, challenge rating, ability scores, saving throw and skill proficiencies, hit points, armor class, speeds, senses, damage and condition traits, languages, biography and source. It goes into the folder "Foundry MCP Creatures". A name any actor already has (ignoring case) and a challenge rating the rules do not have are refused. Proficiency bonus and experience points are left to dnd5e, which derives them. Every value is read back; the answer lists warnings (e.g. a language that is not a dnd5e key) and anything stored differently. Add attacks, features and spells afterwards with dnd5e-add-feature.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cr | Yes | Challenge rating: 0, 1/8, 1/4, 1/2 or a whole number up to 30, as number or text. Anything else is refused | |
| name | Yes | Name of the new NPC; refused when any actor already has it, ignoring case | |
| size | Yes | Size; stored as the dnd5e key (sm, med, lg, grg) | |
| hover | No | The creature hovers while flying | |
| acMode | Yes | "default" lets dnd5e calculate the armor class; "flat" stores acValue | |
| skills | No | Skills with proficiency or expertise | |
| acValue | No | Armor class for acMode "flat" | |
| flySpeed | No | Flying speed in feet; 0 means none | |
| abilities | Yes | All six ability scores | |
| alignment | No | Alignment as text, e.g. "chaotic evil" | |
| biography | No | Biography as HTML | |
| hpAverage | Yes | Hit points, stored as current and maximum | |
| hpFormula | Yes | Hit dice formula, e.g. "3d8+6" | |
| languages | No | Languages by key or English name, e.g. "Common" or "goblin"; unknown ones go into the custom text with a warning | |
| swimSpeed | No | Swimming speed in feet; 0 means none | |
| truesight | No | Truesight in feet; 0 means none | |
| walkSpeed | No | Walking speed in feet; 0 means none | |
| blindsight | No | Blindsight in feet; 0 means none | |
| climbSpeed | No | Climbing speed in feet; 0 means none | |
| darkvision | No | Darkvision in feet; 0 means none | |
| sourceBook | No | Source book, e.g. "MM" | |
| sourcePage | No | Page in the source book | |
| burrowSpeed | No | Burrowing speed in feet; 0 means none | |
| sourceRules | No | Rules version of the source; the world setting of dnd5e when left out | 2014 |
| tremorsense | No | Tremorsense in feet; 0 means none | |
| creatureType | Yes | Creature type, one of 14 dnd5e keys. dnd5e has no type "swarm": it is stored as a custom type with a warning | |
| savingThrows | No | Abilities whose saving throws are proficient | |
| specialSenses | No | Other senses as text | |
| creatureSubtype | No | Subtype such as "goblinoid" | |
| languagesCustom | No | Free text for languages, e.g. "telepathy 60 ft." | |
| damageImmunities | No | Damage type keys the NPC is immune to; unknown words go into the custom text with a warning | |
| damageResistances | No | Damage type keys the NPC resists; unknown words go into the custom text with a warning | |
| conditionImmunities | No | Condition keys such as "charmed"; unknown words go into the custom text with a warning | |
| damageVulnerabilities | No | Damage type keys the NPC is vulnerable to; unknown words go into the custom text with a warning |