.kfpg Graph file with a StartNode, DialogueNodes and an EndNode. Files live under Resources/{languageEnglishName}/{folderName}/{langCode}.{fileName}.kfpg.
A complete graph
The rest of this page documents each node type in detail.
Node Types
Meta Node
Handles language and reading direction for the file. Used by Parley at load time and and used for UI layout decisions.
The language this file is authored in. See LanguageID.
Reading direction.
LTR or RTL. See TextDirection.The MetaData for the current file. Connected to a
MetaData utility node.Start Node
Marks the beginning of the file, and handles metadata.
Ports
The MetaData for the current file. Connected to a
MetaData utility node.Dialogue Node
Spoken dialogue. The most common node type. Plain dialogue
With flags
Ports
Choice Node
A dialogue node that presents the player with options. Same as a Dialogue Node but with aChoices list. When Choices is populated, NextNode on the parent is ignored and is prefered to not be set as it is semantically incorrent. The player’s selection determines the next node.
Branch Node
A utility node that routes to one of two targets based on flag state. Branch nodes have no speaker or text. They’re invisible at runtime, used for control flow.
Branch nodes are also how you build loops — point False back to an earlier node in the conversation to create a loop.
End Node
Marks the beginning of the file, and handles metadata.
Ports