Фэндом

Д'жинни Вики

Формат QST

72статьи на
этой вики
Добавить новую страницу
Обсуждение0 Поделиться
Эта страница нуждается в доработке. Можете попытаться её доработать.


NOTE: This article is incomplete. Much work is still left to be done. QST format is the file format used for quests within The Witcher.

QST File Править

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

Field nameField TypeField Description
QuestLocNameCExoLocStringQuest name as it appears in the list
QuestLocMainPhasCExoLocString?
QuestLocDescrip CExoLocString?*)
QuestLocShortDes CExoLocString?*)
QuestFailedLocDeCExoLocString?*)
QuestFailedLocSh CExoLocString?*)
PrimaryBYTEIs 1 if is a part of the plot
MotherDBCExoString? Seems to be unused
MainPhaselist of QuestPhase structuresMain (initial?) phase of the quest, always contain exactly one item

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

QuestPhase structure Править

Field nameField TypeField Description
NameCExoStringInternal quest name
TypeINT?
OnCompletedCExoStringScript to execute, refers to ncs file
OnFailedCExoStringScript to execute, refers to ncs file
JournalEntryCExoString?
CommentCExoStringComment
WaypointTagCExoStringInternal name of map POI to highlight for the stage
OptionalCHAR?
SubquestsColorDWORD?
LocNameCExoLocStringName of the quest
LocPhaseNameCExoLocStringPhase name
LocDescriptionCExoLocStringPhase description (long, shown in white in quests window)
LocShortDescriptCExoLocStringPhase summary (short, shown in yellow in quests window)
FailedLocDesc CExoLocStringFailure description (long, shown in white in quests window)
FailedLocShortDe CExoLocStringFailure summary (short, shown in yellow in quests window)
BlockNameCExoString?
IsInBlockBYTE?
CompletedBYTE?
FailedBYTE?
QuestBeganBYTE?
FirstStartedINT?
CurrPhaseINT?
NewQuestInfoSentBYTE?
QISDFTPBYTE?
WorldmapRegionBYTE?
Phaseslist of QuestPhase structuresOther quest phases and sub-quests
Conditionslist of Condition structuresSome conditions**)
PhaseActionslist of Action structuresActions to perform when moving onto this phase

**) 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 structure Править

Field nameField TypeField Description
TypeINTType of condition
Parameterslist of Parameter structures
ParameterIsProgrlist of ParameterIsProgr structures?

Condition types Править

TypeDescriptionParameter P1 meaning
0Flag valueFlag name
2Act numberAct number
4Something to do with quest stages?
5
7Destroyed Count monsters "MonsterName"MonsterName#Count
8Has at least Count of items ItemItem#Count
10Drunk potion?Potion name
11??
12Has journal entry tagged "Tag" (after dialog DialogName)DialogName@Tag

Notes:

  1. Learning sign (Aard at least) is equal to drinking a potion!
  2. DialogName is a name of DLG file.

Action structure Править

Field nameField TypeField Description
IdINTAction type
Paramslist of Parameter structuresParameters

Action types Править

TypeDescriptionParameter #1 meaningParameter #2 meaning
305442690Gain XPXP amountNot used
305442691Get itemItem nameGiver name
305442692Give itemItem nameTo whom
305442694?MST file nameNot used
305442695Execute a scriptNCS file nameNot used
305442696Spawn or move NPCNPC namelocation
305442697Gain moneyAmountFrom whom
305442699Set flagFlag nameFlag value

Parameter structure Править

Field nameField TypeField Description
P1CExoStringParameter name
MarkedAsTrueBYTEOptional

ParameterIsProgr structure Править

Field nameField TypeField Description
P1BYTEParameter name
MarkedAsTrueBYTE? (Optional)

Обнаружено использование расширения AdBlock.


Викия — это свободный ресурс, который существует и развивается за счёт рекламы. Для блокирующих рекламу пользователей мы предоставляем модифицированную версию сайта.

Викия не будет доступна для последующих модификаций. Если вы желаете продолжать работать со страницей, то, пожалуйста, отключите расширение для блокировки рекламы.

Также на Фэндоме

Случайная вики