create-pc-from-prefab
Copy a premium-book pregen (e.g., Fighter) to create a player character. Override ability scores and apply modifications to the copy, then assign the player as owner.
Instructions
Create a player character by COPYING a premium-book PREGEN (a complete type:character template — e.g. the PHB class pregens Barbarian…Wizard in dnd-players-handbook.actors, each a ready level-1 build with gear/feats/art) and layering your changes, INSTEAD of building via advancement. The PC family's prefab-as-base path — the §6/§7 analog of create-actor-from-compendium for NPCs, but PC-correct (files under the PC folder, never the NPC one). Resolve the source by prefab NAME (e.g. "Fighter") OR explicit packId+actorId; premium books only, never the SRD (design.md §2.3). Override the pregen's ability array via abilities (final scores) and/or any update-actor-shaped modifications — applied to the COPY only, the source is never touched. @scale resolves natively (it is a real character, no advancement run). Assign the player as owner afterward with set-actor-ownership. Returns {success, from, actor, modificationsApplied, unresolvedScale, warnings}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| folder | No | ||
| packId | No | ||
| prefab | No | ||
| actorId | No | ||
| abilities | No | ||
| modifications | No |