QST format

QST files are based on BioWare's Generic File Format, and it is assumed that the reader of this article is familiar with.

Main Structure
The main structure (the one with Type = -1) has the following format:

 *  I suppose that this is the text that you see when you get (or fail) a quest.

QuestPhase structure
 **  This field is a double-purpose one.

The first purpose is to choose which branch of multi-branch phase to choose. "Branching" is not only decision-based, it also allows the game to show different text depending on quest progress — like number of sephirots left to be placed in the corresponding quest.

The second purpose is to check whether the player has advanced to next quest phase.

Overall condition for the phase is done by joining single conditions in this list with (supposedly) and predicate.

Condition types
Notes:
 * 1) Learning sign (Aard at least) is equal to drinking a potion!
 * 2)   is a name of DLG file.

QST files from The Witcher
Dateiformat QST