A QUST record defines a quest. Each quest stage starts with an INDX subrecord. Each quest target starts with a QSTA subrecord.
|EDID||zstring||Quest editor ID|
|CTDA||struct||Quest conditions. There is a CTDA subrecord for each condition and they appear before the first INDX subrecord. The quest conditions are added to the individual dialog response conditions for the quest.|
|INDX||short||Quest stage. The INDX subrecord starts a new quest stage and is followed by the subrecords for that quest stage.|
|QSDT||ubyte||Quest stage flags
|SCHR||struct||Result script data. See SCHR for more information.|
|SCDA||struct||Compiled result script. See SCDA for more information.|
|SCTX||string||Result script source.|
|SCRO||formid||Global variable reference. There is an SCRO subrecord for each global reference.|
|QSTA||formid||Quest target. The QSTA subrecord starts a new quest target specification and is followed by one or more CTDA subrecords specifying the target conditions.|
|CTDA||struct||Target conditions. There is a CTDA subrecord for each target condition.|
There is a CTDA subrecord for each condition.
|ubyte||Condition type where the upper 4 bits contain the compare operator and the lower 4 bits contain flags.
|long||Function index. See Functions for a list of function indices.|
|formid/long||First parameter. This can be a number or a Form ID depending on the function.|
|formid/long||Second parameter. This can be a number of a Form ID depending on the function|