QST format

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

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

Notes:  *  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 weather 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) DialogName is a name of DLG file.