Wikia

Witcher Wiki

QST format

7,625pages on
this wiki
Comments0

Substances Graveir bone This article is a stub. You can help Witcher Wiki by expanding it.


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 Edit

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

Field name Field Type Field Description
QuestLocName CExoLocString Quest name as it appears in the list
QuestLocMainPhas CExoLocString  ?
QuestLocDescrip CExoLocString  ?*
QuestLocShortDes CExoLocString  ?*
QuestFailedLocDe CExoLocString  ?*
QuestFailedLocSh CExoLocString  ?*
Primary BYTE Is 1 if is a part of the plot
MotherDB CExoString  ? Seems to be unused
MainPhase list of QuestPhase structures Main (initial?) phase of the quest, always contain exactly one item.

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

QuestPhase structure Edit

Field name Field Type Field Description
Name CExoString Internal quest name
Type INT  ?
OnCompleted CExoString Script to execute, refers to ncs file
OnFailed CExoString Script to execute, refers to ncs file
JournalEntry CExoString  ?
Comment CExoString Comment
WaypointTag CExoString Internal name of map POI to highlight for the stage.
Optional CHAR  ?
SubquestsColor DWORD  ?
LocName CExoLocString Name of the quest.
LocPhaseName CExoLocString Phase name
LocDescription CExoLocString Phase description (long, shown in white in quests window).
LocShortDescript CExoLocString Phase summary (short, shown in yellow in quests window).
FailedLocDesc CExoLocString Failure description (long, shown in white in quests window).
FailedLocShortDe CExoLocString Failure summary (short, shown in yellow in quests window).
BlockName CExoString  ?
IsInBlock BYTE  ?
Completed BYTE  ?
Failed BYTE  ?
QuestBegan BYTE  ?
FirstStarted INT  ?
CurrPhase INT  ?
NewQuestInfoSent BYTE  ?
QISDFTP BYTE  ?
WorldmapRegion BYTE  ?
Phases list of QuestPhase structures Other quest phases and sub-quests.
Conditions list of Condition structures Some conditions**.
PhaseActions list of Action structures Actions 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 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 structure Edit

Field name Field Type Field Description
Type INT Type of condition
Parameters list of Parameter structures
ParameterIsProgr list of ParameterIsProgr structures  ?

Condition types Edit

Type Description Parameter P1 meaning
0 Flag value Flag name
2 Act number Act number
4 Something to do with quest stages  ?
5
7 Destroyed Count monsters "MonsterName" MonsterName#Count
8 Has at least Count of items Item Item#Count
10 Drunk potion? Potion name
11  ?  ?
12 Has 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 Edit

Field name Field Type Field Description
Id INT Action type
Params list of Parameter structures Parameters

Action types Edit

Type Description Parameter #1 meaning Parameter #2 meaning
305442690 Gain XP XP amount Not used
305442691 Get item Item name Giver name
305442692 Give item Item name To whom
305442694  ? MST file name Not used
305442695 Execute a script NCS file name Not used
305442696 Spawn or move NPC NPC name location
305442697 Gain money Amount From whom
305442699 Set flag Flag name Flag value

Parameter structure Edit

Field name Field Type Field Description
P1 CExoString Parameter name
MarkedAsTrue BYTE Optional

ParameterIsProgr structure Edit

Field name Field Type Field Description
P1 BYTE Parameter name
MarkedAsTrue BYTE  ? (Optional)

QST files from The Witcher Edit

Act Filename Quest name
Prologue p_init _not a quest
Prologue q0001 Defending Kaer Morhen
Prologue q0011_fistfight Fistfight
Prologue q0002 A Potion for Triss
Prologue q1007_berengar Berengar's Secret
Prologue q0003_stolen Witchers' Secrets
Act I q1001_thebeast Of Monsters and Men
Act I q1002_onatrail The Salamander's Tail
Act I q1004_riverbank Strangers in the Night
Act I q1005_crypt Buried Memories
Act I q1000_act1_init _not a quest
Act I q1003_sgarden The Secret Garden
Act I q1006_rasists Racists
Act I q1011_rita She's No Early Bird
Act I q1012_burial Dead Hand of the Past
Act I q9001_barghest The Barghest Contract
Act I q9002_drowner The Drowner Contract
Act I q9003_ghul The Ghoul Contract (1)
Act I q1201_signs Dice Poker: The Novice
Act I q1200_signs A Game of Dice
Act I q9030_topielec The Monster of the Lake
Act I q9031_alghoul King of the Crypt
Act II q2000_act2_init _not a quest
Act II q2001_safeharb Safe Haven
Act II q2002_weed Flowers and Gold
Act II q2004_toshrine A Pilgrimage
Act II q2005_claypits Clay Pits
Act II q2008_towsent The Sentry
Act II q2014_cocatric Prison Break
Act II q2015_grandpa The Cannibal
Act II q2017_messeng Worth its Weight in Gold
Act II q2101_thecase Vizima Confidential
Act II q2103_witness The Crown Witness
Act II q2104_autopsy Anatomy of a Crime
Act II q2105_skalkst Suspect: Kalkstein
Act II q2106_svivaldi Suspect: Vivaldi
Act II q2107_smutton Suspect: Ramsmeat
Act II q2108_stalar Suspect: Thaler
Act II q2109_scaptain Suspect: Vincent Meis
Act II q2110_sleuvaar Suspect: Leuvaarden
Act II q2112_sraymond What Lies Beneath
Act II q2113_tower A Mysterious Tower
Act II q2116_rat The Rat
Act II q2117_girls Working Girls
Act II q2119_shani Old Friend of Mine
Act II q2122_slvswd Memory of a Blade
Act II q1010_parcel Hot Potato
Act II q1014_wanted Wanted
Act II q2006_lostchild A Lost Lamb
Act II q2003_wayhome A Long Way from Home
Act II q2010_ambush Force Recon
Act II q2130_gravedig A Gravedigger's Gratitude
Act II q2019_w_treas Finders Keepers
Act II q2124_w_restl A Restless Ghost
Act II q2125_w_wine A Most Uncommon Wine
Act II q2127_w_haunted A Ghost Story
Act II q9004_ddead The Drowned Dead Contract
Act II q9005_echinops The Echinops Contract
Act II q9007_wolf The Wolf Contract
Act II q9008_algul The Alghoul Contract
Act II q9016_dog The Dogcatcher of Vizima
Act II q2202_signs Dice Poker: The Professional
Act II q9032_skoffin The Beast of the Sewers
Act II q9033_archen Bloodthirsty Vegetation
Act II q1201_signs Dice Poker: The Novice
Act II q2125_tech _not a quest
Act II q2020_obelisk Monoliths
Act II q2107b_tech _not a quest
Act II q2112a_tech _not a quest
Act III q3000_act3_init _not a quest
Act III q3005_poshparty A Posh Reception
Act III q3012_invrich Lock and Key
Act III q3013_shead The Unforgiven
Act III q3014_politics All the King's Men
Act III q3016_invpoor Following the Thread
Act III q3021_sfisst The Viziman Connection
Act III q3026_invmarsh Reaping Time
Act III q3030_sweed Diplomacy and Hunting
Act III q3035_order2 Six Feet Under
Act III q3041_laragift Echoes of Yesterday
Act III q3042_bank Gold Rush
Act III q3043_trisshan The Source
Act III q3044_identity Identity
Act III q3031_lute Dandelion's Lute
Act III q3029_healwolf Beauty and the Beast
Act III q3203_signs Dice Poker: The Sharper
Act III q9009_arche The Archespore Contract
Act III q9006_graveir The Graveir Contract
Act III q9011_cocatric The Cockatrice Contract
Act III q9012_fleder The Fleder Contract
Act III q9013_ghul The Ghoul Contract
Act III q9014_kikimora The Kikimore Contract
Act III q9020_wyvern The Wyvern Contract
Act III q9004_ddead The Drowned Dead Contract
Act III q9005_echinops The Echinops Contract
Act III q9007_wolf The Wolf Contract
Act III q9008_algul The Alghoul Contract
Act III q9016_dog The Dogcatcher of Vizima
Act III q9027_dent Won't Hurt a Bit
Act III q3053_brothel Blue Eyes
Act III q9034_wywern The Predatory Wyvern
Act III q9035_wolf White Fang
Act III q1201_signs Dice Poker: The Novice
Act III q1200_signs A Game of Dice
Act III q2202_signs Dice Poker: The Professional
Act III q2125_tech _not a quest
Act III q2128_ring The Ring
Act III q2126_w_grand Medic in Distress
Act IV q4001_dcity Ripples
Act IV q4003_alvin Alvin
Act IV q4004_elves Free Elves
Act IV q4002_bride The Heat of the Day
Act IV q4000_act4_init _not a quest
Act IV q4005_berengar The Paths of Destiny
Act IV q4011_hermit Hunting the Wild Hunt
Act IV q4012_naiad Old Habits Die Hard
Act IV q4013_succubus Temptation
Act IV q4014_bridge Small Problems
Act IV q9015_basilisk The Basilisk Contract
Act IV q9017_fwyvern The Royal Wyvern Contract
Act IV q9018_hag The Devourer Contract
Act IV q9019_skolop The Giant Centipede Contract
Act IV q9021_alp The Alp Contract
Act IV q4006_bread Daily Bread
Act IV q9036_vodian The Vodyan Priest
Act IV q9039_cmentar The Ancient Cemetaur
Act IV q1200_signs A Game of Dice
Act IV q3203_signs Dice Poker: The Sharper
Act V q5000_act5_init _not a quest
Act V q5001_secrets Sweet Revenge
Act V q5002_ghettorun Hope Burns Bright
Act V q5003_friends Under a Fiery Sky
Act V q5004_relief The Flame that Cleanses
Act V q5005_striga Her Highness the Striga
Act V q5011_charity Mud and Velvet
Act V q5012_armour Armor
Act V q5013_rune A Gnomish Device
Act V q5014_finger Saint Gregory's Litany
Act V q5015_formula A Magic Formula
Act V q9010_cmentar The Cemetaur Contract
Act V q9022_bloed The Bloedzuiger Contract
Act V q9023_bruxa The Bruxa Contract
Act V q9024_garkain The Garkain Contract
Act V q9025_wraith The Wraith Contract
Act V q0011_fistfight Fistfight
Act V q9037_garkain Bloodwing
Act V q9038_bruxa The Vampiress of the Swamp
Act V q1200_signs A Game of Dice
Epilogue q6000_epil_init _not a quest
Epilogue q6002_iceplains Frozen Reflections
Epilogue q6001_wyzim The Ashes of Vizima
Epilogue q5005_striga Her Highness the Striga
missing q3051_radowid Royal Edicts

Around Wikia's network

Random Wiki