Baldur's Gate Wiki
Advertisement

This page present known information on the global variables involved in Baldur's Gate: Siege of Dragonspear. They are primarily the domain of .BCS script and .DLG dialog files, but can be altered using the Console.

This page is a Work in Progress(!!!!!!)

All[]

Variable Files /
Subject
Description / Information / States
BD_CHAPTER_SAVE Siege of Dragonspear Seems to store the last time the auto-save for chapter was done.
<#>, same as chapter.
BD_CORWINROMANCE1
BD_CORWINROMANCE2
BD_CORWINROMANCE3
BD_CORWINROMANCE4
BD_CORWINROMANCE5
BD_CORWINROMANCE6
Romance
Schael Corwin
Status of the various romance conversations with Corwin.
0 is not ready
1 is triggered waiting for next talk
2 is talk complete
BD_CORWIN_ROMANCEACTIVE Schael Corwin Status of the romance with Corwin.
0 is unstarted
1 is started
2 is advanced
3 is ended
BD_PLAYERCHEST Siege of Dragonspear Marks where the active player storage chest is.
BD_PLOT Siege of Dragonspear This seems to be the variable for the progress of the main plot of SoD.
101 is right after talking to Corwin at start of the 9th chapter in Coast Way Crossing
< 240 is checked before Dorn's map marker is placed on BD2000.ARE
< 250 before Keherrem is spawned on map BD2000.ARE. This implies that 250 is the value for when the Crusaders have left the map.
279 is before the explosive barrels map marker is placed on BD2000.ARE.
280 is the marker for after the camp being destroyed and the explosive barrels are on the bridge
300 is at the start of Chapter Ten
310 is after getting instructions to infiltrate the caves
311 checks if Corwin is dead or in the party, moves Bence Duncan, and advances to 312, otherwise jumps straight to 312
< 395 seems to have something to do with whether or not events at the Coalition Camp will occur.
CHAPTER All Stores the current chapter.
<#>, same as chapter.


Chapter Nine[]

Global[]

Variable Files /
Subject
Description / Information / States
BD2100GL ? ?
BD_205_FORGE_DESTROYED Since it seems tied to Bridgefort, most likely records if Jegg Hillcarver is still available to make items.
0 is false
1 is true
BD_205_FORGE_DRAGONSCALE Jegg Records whether Jegg Hillcarver has made a Dragonscale Armor or Dragonscale Shield yet.
0 is false
1 is true
BD_205_FORGE_DRAGONSCALE_TIMER Jegg Based on the name, seems to be the timer for Jegg Hillcarver's completion of the Dragonscale Armor or Dragonscale Shield
Type: Timer
BD_205_KNOW_JEGG Jegg Seems to be whether or not the PC knows who Jegg Hillcarver is. Also see #BD_PC_MET_JEGG
0 is false
1 is true
BD_205_STAKEOUT Jegg Somehow tied to Jegg Hillcarver.
Goes up to at least 5.
BD_209_STATUS ? Seems to be tied to a quest involving stolen food and Jegg Hillcarver
BD_BRIDGEFORT_PLOT The Desperate Defenders Holds status of the Bridgefort quest The Desperate Defenders.
5: seems to be when you have to speak with Jegg Hillcarver and Wynan Hess
6 is the fort surrendering
10 is going to open the drawbridge
11 is having opened the drawbridge
30 is ?
BD_HAS_DORNS_SWORD Dorn This seems to be the flag for whether Gorion's Ward has Dorn's Rancor sword.
0 is false
1 is true
BD_JEGG_FORGE Jegg Seems to be the flag for whether or not Jegg Hillcarver can make things.
0 is false
1 is true
BD_JEGG_PLOT The Desperate Defenders Seems to record whether Jegg Hillcarver has been talked to? or whether you talked to her about sabotaging the supplies? Also see #BD_WYNAN_PLOT.
0 is false
1 is true
BD_JEGG_REACTS_TO_MKHIIN Jegg Records whether Jegg Hillcarver has yet reacted to M'Khiin Grubdoubler being in the party when you talk to her.
0 is false
1 is true
BD_MUNSCH_PLOT BD2000.ARE Seems to be involved in one of the ways to enter the Crusader camp.
If it's 5, #BD_MDD276BAA on BD2000.ARE is 0, and "Cages_Right" are open, then BD_MDD276BAA on BD2000.ARE is set to 1.
BD_PC_MET_JEGG Jegg Records whether the PC has spoken with Jegg Hillcarver before.
0 is false
1 is true
BD_SDD200 ? Seems tied to the situation at Bridgefort.
BD_SDD201_MISSING_PATROL The Missing Patrol Pretty clearly marks the progress of the quest The Missing Patrol. Also see #BD_SDD201_REWARD.
State 3 seems to indicate that Keherrem has been saved, as it is one of the triggers for getting the reward on map BD2000.ARE.
BD_SDD222_PERP Tender of the Dead This seems to be involved with the quest Tender of the Dead, as it's checked for being 1 when the corpse marker is placed on map BD2000.ARE.
BD_WYNAN_PLOT The Desperate Defenders Seems to record whether Jegg Hillcarver has been talked to during The Desperate Defenders. Also see #BD_JEGG_PLOT.
0 is false
1 is true
SPRITE_IS_DEADKHALID Khalid It appears to be the global variable for whether Khalid is dead or not. When Khalid is created on map BD2000.ARE, this is set to 0.
0 is false
1 is true

Boareskyr Bridge[]

Variable Files /
Subject
Description / Information / States
BD_BRIDGE_PLOT BD2000.ARE
BDBRIDGE.DLG
This variable seems to be involved in how the Boareskyr Bridge camp views Gorion's Ward.
In BDBRIDGE.DLG, the guard says "Return to your assignment, mercenary. When Bridgefort has fallen, then you shall cross Boareskyr. Not before." if it's 1 or "Halt! Come no farther!" if it's 0. Then further in the file, offering the gate guard a sack of money to let you pass or saying "Caelar doesn't always get what she wants" sets it to 1 (and triggers journal 59748).
BD_DORN_MAP_NOTE Dorn Marks whether the map marker for Dorn's cage on BD2000.ARE has been put down.
0 is false
1 is true
BD_DORN_SPAWN Dorn Seems to mark whether Dorn Il-Khan has been spawned for the first time.
If it's 0 and Dorn Il-Khan has been in the party, it's set to 1, he is moved to 1545.3215 and resurrected if dead.
If it's 0 and Dorn hasn't been in the party, it's set to 1, it creates him at 1545.3215
BD_KHAL_SPAWN Khalid Seems to mark whether Khalid has spawned for the first time.
In BD2000.BCS, if set to 0 and Khalid has been in the party, it's set to 1, he is moved to 2900.1310, resurrected if dead, and has a number of his variables changed.
BD_KHERRAM_SPAWN Keherrem
The Missing Patrol
Checks whether Keherrem has already been spawned in BD2000.ARE.
0 is false
1 is true
BD_MDD276BAA BD2000.ARE Seems to be involved in one of the ways to enter the Crusader camp on map BD2000.ARE. Also see #BD_MUNSCH_PLOT.
If #BD_MUNSCH_PLOT is 5, BD_MDD276BAA on BD2000.ARE is 0, and "Cages_Right" are open, then bd_mdd276baa on BD2000.ARE is set to 1.
BD_MDD285 BD2000.ARE
BDBARGHE.CRE
BDHORMOR.CRE
?
If it's 0 on map BD2000.ARE, then it's set to 1 and the #BD_ENLIGHTENMENT variable is set to 2 for BDBARGHE.CRE (The Barghest) and BDHORMOR.CRE (Hormorn)
BD_SDD201_REWARD The Missing Patrol Set based on whether or not the party has been rewarded with experience for The Missing Patrol.
0 is false
1 is true
BD_SDD222_MAP_NOTE Tender of the Dead This seems to control whether the map marker for the corpses for Tender of the Dead has been added.
0 is false
1 is true

Bridgefort[]

Variable Files /
Subject
Description / Information / States
BD_JEGG_FORGE Jegg Exact purpose unknown, but it undoubtedly is tied to Jegg Hillcarver.
BD_BRIDGEFORT_SABOTAGED Bridgefort Records if the PC brought down the drawbridge
0 is false
1 is true
BD_BRIDGEFORT_SAVED Bridgefort Records if Bridgefort was saved by killing the Crusaders
0 is false
1 is true
BD_BRIDGEFORT_SURRENDERED Bridgefort Records if Bridgefort surrendered to the Crusaders
0 is false
1 is true
Uknown bd_corwin_bf_slaughter

bd_betrayal_discussion bd_betrayal_discuss_timer bd_enemy_gone_hostile bd_sdd225_spawn_kava BD_SDD225 bd_neera_plot BD_SDD200_NOTE BD_SDD200 bd_sdd200_journal_scroll bd_spawn_wynan bd_crusaders_retreat bd_sdd200_remove_weakness BD2100GL bd_sdd208_journal bd_208_status bd_208_go_to_player BD_SDD225 BD_SDD225_ALE bd_sdd210_cut_horsels_quest bd_mdd410z_ot_timer bd_ot_Voghiln bd_ot_Dorn bd_ot_Neera bd_ot_Glint bd_mdd285 }}

Chapter Ten[]

Variable Files /
Subject
Description / Information / States
BD_BATTLE BDGARROL.DLG Is checked at the Coalition Camp for not being 0 during conversations (BDGARROL.DLG state 9).
BD_DANINE_INTRO Troop Train Marks which conversation branch to start with when beginning a conversation with Danine during the quest Troop Train.
1-3 denote different starting branches.
BD_FAMARI_PLOT Beno Famari
Schael Corwin
The status of interactions with Beno Famari.
5 is set when he sees and begins a conversation with Corwin in your group
7 is set after talking to Famari without killing him while romancing Corwin
BD_FIGHTERS_SKILL Troop Train Totals the value of the training given during Troop Train.
0 - 12
BD_GARROLD_INTRO Troop Train Marks which conversation branch to start with when returning to a conversation with Garrold during the quest Troop Train.
1-3 denote different starting branches.
BD_GARROLD_MAGESCHOOL Troop Train Marks whether or not Garrold was convinced to become a mage during Troop Train.
0 is false
1 is true
BD_SDD301_DANINE_SKILL Troop Train How much skill Danine contributes to the success of the Troop Train quest.
0, 1, or 2 depending on success of training
BD_SDD301_GARROLD_SKILL Troop Train How much skill Garrold contributes to the success of the Troop Train quest.
0, 1, or 2 depending on success of training
BD_PATIENT_XERRA The Uncommon Cold Records the state of Xerra during The Uncommon Cold quest.
0 is unexamined
1 is examined but not treated
2 is treated
BD_PATIENT_YESTIMELL The Uncommon Cold Records the state of Yestimell during The Uncommon Cold quest.
0 is unexamined
1 is examined but not treated
2 is treated
BD_PATIENT_ZIDRAND The Uncommon Cold Records the state of Zidrand during The Uncommon Cold quest.
0 is unexamined
1 is examined but not treated
2 is treated
BD_PUNCHED_CHARNAME Troop Train Records if Vigilant Halasan was angry enough as a result of Troop Train to punch the PC.
1 means Halasa is either about to or has just done it and hasn't retriggered a conversation
2 means the conversation after the punch has happened
BD_SDD302_BLACKTHORN The Uncommon Cold Records whether or not the party knows the cure is Blackthorn
0 is false
1 is true
BD_SDD302_DEATH_COUNT The Uncommon Cold The degree of success or failure for The Uncommon Cold quest. Future interactions with Dosia check it.
Initially set to 5 at the beginning of the quest
Quest failure without a cure sets it to 5
Having the patient executed sets it to 10
BD_SDD302_RAT_HUNT The Uncommon Cold Marks the progress of the rat hunt branch of the quest
0 is unavailable
1 is rats were mentioned during Yestimell examination
2 is while searching for rats in the camp
BD_SDD302_UNCOMMON_COLD The Uncommon Cold Records the status The Uncommon Cold quest.
0 is unstarted
1 is started
2 is after talking to Dosia about a cure
3 is ended with a cure
4 is ended without a cure
BD_SINDRET_PLOT Troll Breakout Records the status of the Troll Breakout quest.
0 is unstarted
1 is while searching for the Troll Shackles
2 is after returning with them
5 is quest complete and troll alive
6 is quest complete but troll dead
BD_STOP_SWINGING_GARROLD Troop Train Marks whether or not Garrold should be performing the attack animation during the quest Troop Train.
1 stops the attack animations
BD_STOP_SWINGING_TAIELD Troop Train Marks whether or not Taield should be performing the attack animation during the quest Troop Train.
1 stops the attack animations
BD_THE_TRAITOR_TIMER The Traitor Unknown Most likely tied to The Traitor quest.
BD_TRAINED_GARROLD Troop Train Marks whether or not the training of Garrold has occurred during the quest Troop Train, successful or otherwise.
0 is false
1 is true
BD_TRAINED_DANINE Troop Train Marks whether or not the training of Danine has occurred during the quest Troop Train, successful or otherwise.
0 is false
1 is true
BD_TROLL_WRANGLED Troll Breakout Records if Ulori the troll was shackled.
0 is false
1 is true
BD_TROOPS_TRAIN Troop Train Records how many of the troops have been trained during the quest Troop Train.
0 - 6
BD_TROOP_TRAIN Troop Train Records if the progress of the Troop Train quest.
0 is unstarted
1 is active
BD_WHERE_IS_CHEST Troll Breakout Unknown
BD_WOUNDED_ZEALOT The Wounded Zealot Records the progress of The Wounded Zealot quest.
0 is not yet begun
1 is in progress
2 is between him agreeing to be healed and the conversation after
3 is quest ended
BD_WOUNDED_ZEALOT_DOSIA The Wounded Zealot Records the state of Dosia's assistance during The Wounded Zealot.
1 is the player knowing about Ilmater
?
4 is her having agreed to help
BD_WOUNDED_ZEALOT_GBERRY The Wounded Zealot Whether Goodberries was used to heal Hyreth.
1 is true
BD_WOUNDED_ZEALOT_GLINT The Wounded Zealot Whether Viconia healed Hyreth.
1 is true
BD_WOUNDED_ZEALOT_JAHEIRA The Wounded Zealot Whether Viconia healed Hyreth.
1 is true
BD_WOUNDED_ZEALOT_PLAYER1 The Wounded Zealot Whether Gorion's Ward used magic to heal Hyreth.
1 is true
BD_WOUNDED_ZEALOT_POTION The Wounded Zealot Whether a healing potion was used to heal Hyreth.
1 is true
BD_WOUNDED_ZEALOT_SUFFER The Wounded Zealot Whether Gorion's Ward agreed to injure themselves to convince Hyreth to get healed.
1 is true
BD_WOUNDED_ZEALOT_VICONIA The Wounded Zealot Whether Viconia healed Hyreth.
1 is true
MDD1105AC_HEALED The Uncommon Cold Unknown
Set to -1 if the cure is given

Also see[]

  • Global Variables (BG1)
    Global Variables (TotSC)
  • Global Variables (BG2)
    Global Variables (ToB)
  • Global Variables (TBP)
    Global Variables (TBP2)
  • IESDP Index - a great site for Infinity Engine documentation, though from before the Enhanced Editions.
Advertisement