Format reference
Document
A piece of the story world that dialogues refer to: a place, an item, a faction, a lore entry. Text shows a document’s name with {{ Document.<id> }}. A Document is not a speaker.
By convention documents live in documents/documents.osf. A Document and a Character may share an id, because ids are unique per kind.
Schema
OSF.osf source
documents/documents.osf
Document old_lighthouse {
name = "The Old Lighthouse"
}
Document east_gate {
name = "East Gate"
}written by
osf convertdocuments/east_gate.yaml
apiVersion: story/v1
kind: Document
data:
id: east_gate
name: East Gatedocuments/old_lighthouse.yaml
apiVersion: story/v1
kind: Document
data:
id: old_lighthouse
name: The Old LighthouseFields
| Field | Value | Required |
|---|---|---|
| id | After Document in .osf. | yes |
name | Text. Translatable. | yes |
For now a document has only an id and a name. Its content (description, parent document, tags, relations, images) is left for a later version; see Metadata.