Files
narratio/docs/integrations/party.md

28 lines
1.6 KiB
Markdown

# Canonical Party Input
`party.yml` is a campaign-owned roster conforming to the [shared RPG party
contract](https://forge.maximumdirect.net/eric/schemas/src/commit/f7e3cedeca11ed903311cdf29ca4d81fb1f216b7/rpg/party/v0.2.0/semantics.md).
ConfigKit resolves native imports before Narratio validates the complete roster.
Shared extensions and the authored null or empty `aliases` values survive in the
prepared party document and native inspection.
Narratio additionally requires a nonempty roster, stable character IDs using the
configured-artifact key grammar, player and character names, and at least one
class per character. Names, aliases, and class names must be nonempty, trimmed
strings without control characters. Character names and aliases cannot be
ambiguous under case-insensitive comparison; class names cannot repeat within
one character. Player names may repeat. A supplied class level must be positive.
The maintained [party example](../../examples/campaigns/sample-campaign/party.yml)
shows the shared marker and plural `aliases` field. The configuration reference
owns party selection and source-relative paths.
## Derived players document
During preparation, Narratio writes the resolved shared roster to
`inputs/party.yml` and derives `inputs/players.yml`. The projection uses
`narratio.players.v1`, contains one entry per character sorted by stable ID,
and keeps its existing singular `alias` field. It contains player and character
names and aliases, but no class data. Repeated player names remain separate
entries. Its manifest source is `derived_from_party`.