A QUST record defines a quest. Each quest stage starts with an INDX subrecord. Each quest target starts with a QSTA subrecord.
Subrecord | Type | Info |
---|---|---|
EDID | zstring | Quest editor ID |
FULL | zstring | Quest name |
ICON | zstring | ICON filename |
DATA | ubyte | Quest flags
|
ubyte | Quest priority | |
SCRI | formid | Quest script |
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
|
CNAM | zstring | Log Entry. |
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. |
ubyte | Flags
|
|
ubyte[3] | Unknown | |
CTDA | struct | Target conditions. There is a CTDA subrecord for each target condition. |
CTDA SubrecordEdit
There is a CTDA subrecord for each condition.
Type | Info |
---|---|
ubyte | Condition type where the upper 4 bits contain the compare operator and the lower 4 bits contain flags.
|
ubyte[3] | Unknown |
float | Comparison value |
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 |