Jump to content
Sign in to follow this  
lmtr14

Question to content of this mod

Recommended Posts

readme is confusing, so... is this siege of dragonspear with Imoen? I haven't played it yet and one reason for that is that they had the galls to remove Imoen from the party! from the second I read that I hoped sb would create a mod to properly put her place at charname's side. abduction in game 2 doesn't bother me at all though cause it's so important to the storyline

Share this post


Link to post

@lmtr14 Content of the current version: in SoD, Imoen will remain in group only in the first dungeon. For the main campaign she will still stay behind in BG city.

In BGII, she will return after the promenade fight.

Both parts are installed in one go.

I am working on a version where BGII and SoD parts can be installed separately.

SoD full content is planned but so far no ETA.

Share this post


Link to post
Guest LZenn

She never stayed in my party in SoD.  And even when I had her as a straight thief, she was a thief/mage when we got there.  Is there any possibility of keeping her a plain old thief?  I want to see what a high level pure thief can do one of these days, and in order to do that I'd have to ditch Imoen and play one myself.  Which I might just do anyway.  She wants to go home (any home from what she says), so I'll set her up in the ranger cabin and say so-long sweetie!

Share this post


Link to post

With this mod installed, Imoen should stay in the group as-is in the first SoD dungeon (Korlasz' Crypt).

Did this not work for you?

Share this post


Link to post
Guest LZenn

It didn't.  I probably messed up on the install, somehow, because there was no difference at all.  I'm doing another run through BGEE with her as a straight thief to test out the mods I just installed.  I gotta say, I love these mods.  It's a whole new game with them.

Imoen as a thief in BGEE2 would be great, though.  Yeah, I don't see it happening either...

Share this post


Link to post

In EET, you get the Imoen in BGII back you had in BG1. (With this mod, you'd also have your Bg1-Imoen in the beginning of SoD. If it works, that is.)

For BGII:EE, all you can do is mod Imoen into a thief. :)

I have no idea why Imoen wouldn't stay in your group at the begining of SoD with this mod installd. Conditions are: Imoen needs to be in the group at the end of BG1, the mod needs to be at v2, install should go without warnings.

There is always the possibility I made a hilarious mistake and patching the scripts didn't work for you for some reason. Using NI, could you post the contents of bd0120.bcs here inside a spoiler?

Share this post


Link to post
Guest LZenn

There is no file by the name of bd0*.bcs or bdo*.bcs listed in NI.  I checked both zero and the letter o just in case.

Share this post


Link to post
Guest LZenn
23 minutes ago, Guest LZenn said:

There is no file by the name of bd0*.bcs or bdo*.bcs listed in NI.  I checked both zero and the letter o just in case.

Sorry - wrong game folder...

There were 16 warnings in the file, all "Script name not found".  Lines of warnings are 2,7,9,33,34,46,47 all dealing with "%IMOEN_DV_SOD%" as either an object, a target, or an actor.  The remaining warnings are all about the object "shar-teel" and probably don't have anything to do with Imoen not showing up.

Here's the contents of the file:

Spoiler
IF
	InPartyAllowDead("%IMOEN_DV_SOD%")
	Global("C#st_ImoenInGroupKD","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("C#st_ImoenInGroupKD","GLOBAL",1)
		ApplySpellRES("bdresurr","%IMOEN_DV_SOD%")  // No such index
		SmallWait(1)
		ApplySpellRES("bdrejuve","%IMOEN_DV_SOD%")  // No such index
		SmallWait(1)
END

IF
	Global("C#st_ImoenRaised","GLOBAL",1)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("C#st_ImoenRaised","GLOBAL",2)
		CreateCreatureObjectDoor("C#STDUJA",Player1,0,0,0)  // Liia Jannath
		Wait(1)
		ActionOverride("C#STDUJA",Dialogue(Player1))
		SetInterrupt(TRUE)
END

IF
	Global("C#st_ImoenInGroupKD","GLOBAL",0)
	Global("C#st_ImoenMoveInCrypt","GLOBAL",1)
	Global("C#st_ImoenMoveInCrypt_120","BD0120",0)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("C#st_ImoenMoveInCrypt_120","BD0120",1)
		ActionOverride("%IMOEN_DV_SOD%",JumpToPoint([1770.1520]))
		ActionOverride("%IMOEN_DV_SOD%",Face(N))
		SetInterrupt(TRUE)
END

IF
	Global("C#st_ImoenInGroupKD","GLOBAL",0)
	Global("C#st_ImoenMoveInCrypt","GLOBAL",2)
	GlobalLT("C#st_ImoenMoveInCrypt_120","BD0120",2)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("C#st_ImoenMoveInCrypt_120","BD0120",2)
		ActionOverride("%IMOEN_DV_SOD%",JumpToPoint([1545.700]))
		ActionOverride("%IMOEN_DV_SOD%",Face(NE))
		SetInterrupt(TRUE)
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("bd_remove_2da_items","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_remove_2da_items","bd0120",1)
		SetCursorState(TRUE)
		ActionOverride(Player1,DestroyAllEquipment())
		Continue()
END

IF
	Global("BD0120_START","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("BD0120_START","GLOBAL",1)
		SetCursorState(TRUE)
		ApplySpellRES("bdresurr",Player2)  // No such index
		ApplySpellRES("bdresurr",Player3)  // No such index
		ApplySpellRES("bdresurr",Player4)  // No such index
		ApplySpellRES("bdresurr",Player5)  // No such index
		ApplySpellRES("bdresurr",Player6)  // No such index
		SmallWait(1)
		ApplySpellRES("bdrejuve",Player1)  // No such index
		ApplySpellRES("bdrejuve",Player2)  // No such index
		ApplySpellRES("bdrejuve",Player3)  // No such index
		ApplySpellRES("bdrejuve",Player4)  // No such index
		ApplySpellRES("bdrejuve",Player5)  // No such index
		ApplySpellRES("bdrejuve",Player6)  // No such index
		GiveItemCreate("BDKEYR",Player1,0,0,0)  // Key Ring
		Continue()
END

IF
	Global("SOD_fromimport","global",1)
	Global("BD_VICONIA_PORTRAIT","GLOBAL",0)
	InPartyAllowDead("VICONIA")  // Viconia
THEN
	RESPONSE #100
		SetGlobal("BD_VICONIA_PORTRAIT","GLOBAL",1)
		ReallyForceSpellDeadRES("BDVICPOR","VICONIA")  // No such index
		Continue()
END

IF
	Global("BD_Init_Gold","BD0120",0)
	Global("SOD_fromimport","global",0)
	PartyGoldLT(30000)
THEN
	RESPONSE #100
		SetGlobal("BD_Init_Gold","BD0120",1)
		GiveGoldForce(30000)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",1)
	Global("BD_Imoen_Items","GLOBAL",0)
	InPartyAllowDead("imoen")  // Imoen
	Global("C#st_ImoenInGroupKD","GLOBAL",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Imoen_Items","GLOBAL",1)
		ActionOverride("Imoen_import_eq",TakeCreatureItems("Imoen",ALL))  // Imoen
		SmallWait(1)
		ActionOverride("imoen",LeaveParty())
		ActionOverride("imoen",DestroySelf())
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_lockpicking","BD0120",0)
	Class(Player1,THIEF_ALL)
	CheckStatGT(Player1,89,LOCKPICKING)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_traps","BD0120",0)
	Class(Player1,THIEF_ALL)
	CheckStatGT(Player1,79,TRAPS)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_traps","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_lockpicking","BD0120",0)
	Class(Player2,THIEF_ALL)
	CheckStatGT(Player2,89,LOCKPICKING)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_traps","BD0120",0)
	Class(Player2,THIEF_ALL)
	CheckStatGT(Player2,79,TRAPS)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_traps","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_lockpicking","BD0120",0)
	Class(Player3,THIEF_ALL)
	CheckStatGT(Player3,89,LOCKPICKING)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_traps","BD0120",0)
	Class(Player3,THIEF_ALL)
	CheckStatGT(Player3,79,TRAPS)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_traps","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_lockpicking","BD0120",0)
	Class(Player4,THIEF_ALL)
	CheckStatGT(Player4,89,LOCKPICKING)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_traps","BD0120",0)
	Class(Player4,THIEF_ALL)
	CheckStatGT(Player4,79,TRAPS)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_traps","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_lockpicking","BD0120",0)
	Class(Player5,THIEF_ALL)
	CheckStatGT(Player5,89,LOCKPICKING)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_traps","BD0120",0)
	Class(Player5,THIEF_ALL)
	CheckStatGT(Player5,79,TRAPS)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_traps","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_lockpicking","BD0120",0)
	Class(Player6,THIEF_ALL)
	CheckStatGT(Player6,89,LOCKPICKING)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_traps","BD0120",0)
	Class(Player6,THIEF_ALL)
	CheckStatGT(Player6,79,TRAPS)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_traps","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_warrior","BD0120",0)
	OR(6)
		ClassLevelGT(Player1,WARRIOR,5)
		ClassLevelGT(Player2,WARRIOR,5)
		ClassLevelGT(Player3,WARRIOR,5)
		ClassLevelGT(Player4,WARRIOR,5)
		ClassLevelGT(Player5,WARRIOR,5)
		ClassLevelGT(Player6,WARRIOR,5)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_warrior","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_priest","BD0120",0)
	OR(6)
		ClassLevelGT(Player1,PRIEST,5)
		ClassLevelGT(Player2,PRIEST,5)
		ClassLevelGT(Player3,PRIEST,5)
		ClassLevelGT(Player4,PRIEST,5)
		ClassLevelGT(Player5,PRIEST,5)
		ClassLevelGT(Player6,PRIEST,5)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_priest","BD0120",1)
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("bd_party_has_wizard","BD0120",0)
	OR(6)
		ClassLevelGT(Player1,WIZARD,5)
		ClassLevelGT(Player2,WIZARD,5)
		ClassLevelGT(Player3,WIZARD,5)
		ClassLevelGT(Player4,WIZARD,5)
		ClassLevelGT(Player5,WIZARD,5)
		ClassLevelGT(Player6,WIZARD,5)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_wizard","BD0120",1)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(4)
		Class(Player1,FIGHTER_ALL)
		Class(Player1,PALADIN_ALL)
		Kit(Player1,BARBARIAN)
		Class(Player1,RANGER_ALL)
	!Kit(Player1,KENSAI)
	!Class(Player1,MONK)
	Global("SOD_fromimport","global",0)
	Global("BD_Bracers","BD0120",0)
	CheckStatLT(Player1,14,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Bracers","BD0120",1)
		GiveItemCreate("brac06",Player1,0,0,0)  // Hands of Takkok
		ActionOverride(Player1,SetItemFlags("brac06",IDENTIFIED,TRUE))  // Hands of Takkok
		XEquipItem("brac06",Player1,SLOT_GAUNTLETS,EQUIP)  // Hands of Takkok
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYBASTARDSWORD)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
		GiveItemCreate("sw1h03",Player1,0,0,0)  // Kondar +1
		ActionOverride(Player1,SetItemFlags("sw1h03",IDENTIFIED,TRUE))  // Kondar +1
		XEquipItem("sw1h03",Player1,SLOT_WEAPON0,EQUIP)  // Kondar +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
		GiveItemCreate("sw1h34",Player1,0,0,0)  // Albruin +1
		ActionOverride(Player1,SetItemFlags("sw1h34",IDENTIFIED,TRUE))  // Albruin +1
		XEquipItem("sw1h34",Player1,SLOT_WEAPON0,EQUIP)  // Albruin +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYLONGSWORD)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYLONGSWORD","BD0120",1)
		GiveItemCreate("sw1h06",Player1,0,0,0)  // Varscona +2
		ActionOverride(Player1,SetItemFlags("sw1h06",IDENTIFIED,TRUE))  // Varscona +2
		XEquipItem("sw1h06",Player1,SLOT_WEAPON0,EQUIP)  // Varscona +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYLONGSWORD","BD0120",1)
		GiveItemCreate("sw1h24",Player1,0,0,0)  // The Burning Earth +1
		ActionOverride(Player1,SetItemFlags("sw1h24",IDENTIFIED,TRUE))  // The Burning Earth +1
		XEquipItem("sw1h24",Player1,SLOT_WEAPON0,EQUIP)  // The Burning Earth +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSHORTSWORD)
	CheckStatGT(Player1,3,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSHORTSWORD","BD0120",1)
		GiveItemCreate("sw1h09",Player1,0,0,0)  // The Whistling Sword +2
		ActionOverride(Player1,SetItemFlags("sw1h09",IDENTIFIED,TRUE))  // The Whistling Sword +2
		XEquipItem("sw1h09",Player1,SLOT_WEAPON0,EQUIP)  // The Whistling Sword +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYAXE)
	CheckStatGT(Player1,9,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYAXE","BD0120",1)
		GiveItemCreate("ax1h03",Player1,0,0,0)  // Battle Axe of Mauletar +2
		ActionOverride(Player1,SetItemFlags("ax1h03",IDENTIFIED,TRUE))  // Battle Axe of Mauletar +2
		XEquipItem("ax1h03",Player1,SLOT_WEAPON0,EQUIP)  // Battle Axe of Mauletar +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYTWOHANDEDSWORD)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("sw2h06",Player1,0,0,0)  // Spider's Bane +2
		ActionOverride(Player1,SetItemFlags("sw2h06",IDENTIFIED,TRUE))  // Spider's Bane +2
		XEquipItem("sw2h06",Player1,SLOT_WEAPON0,EQUIP)  // Spider's Bane +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYKATANA)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYKATANA","BD0120",1)
		GiveItemCreate("sw1h44",Player1,0,0,0)  // Katana +1
		ActionOverride(Player1,SetItemFlags("sw1h44",IDENTIFIED,TRUE))  // Katana +1
		XEquipItem("sw1h44",Player1,SLOT_WEAPON0,EQUIP)  // Katana +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,9,STR)
	Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h23",Player1,0,0,0)  // Rashad's Talon +2
		ActionOverride(Player1,SetItemFlags("sw1h23",IDENTIFIED,TRUE))  // Rashad's Talon +2
		XEquipItem("sw1h23",Player1,SLOT_WEAPON0,EQUIP)  // Rashad's Talon +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,9,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h49",Player1,0,0,0)  // Ninjatō +1
		ActionOverride(Player1,SetItemFlags("sw1h49",IDENTIFIED,TRUE))  // Ninjatō +1
		XEquipItem("sw1h49",Player1,SLOT_WEAPON0,EQUIP)  // Ninjatō +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h23",Player1,0,0,0)  // Rashad's Talon +2
		ActionOverride(Player1,SetItemFlags("sw1h23",IDENTIFIED,TRUE))  // Rashad's Talon +2
		XEquipItem("sw1h23",Player1,SLOT_WEAPON0,EQUIP)  // Rashad's Talon +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,5,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h49",Player1,0,0,0)  // Ninjatō +1
		ActionOverride(Player1,SetItemFlags("sw1h49",IDENTIFIED,TRUE))  // Ninjatō +1
		XEquipItem("sw1h49",Player1,SLOT_WEAPON0,EQUIP)  // Ninjatō +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,4,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYDAGGER)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYDAGGER","BD0120",1)
		GiveItemCreate("dagg03",Player1,0,0,0)  // Heart of the Golem +2
		ActionOverride(Player1,SetItemFlags("dagg03",IDENTIFIED,TRUE))  // Heart of the Golem +2
		XEquipItem("dagg03",Player1,SLOT_WEAPON0,EQUIP)  // Heart of the Golem +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYWARHAMMER)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYWARHAMMER","BD0120",1)
		GiveItemCreate("hamm03",Player1,0,0,0)  // Ashideena +2
		ActionOverride(Player1,SetItemFlags("hamm03",IDENTIFIED,TRUE))  // Ashideena +2
		XEquipItem("hamm03",Player1,SLOT_WEAPON0,EQUIP)  // Ashideena +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSPEAR)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("sper05",Player1,0,0,0)  // Spear +2
		ActionOverride(Player1,SetItemFlags("sper05",IDENTIFIED,TRUE))  // Spear +2
		XEquipItem("sper05",Player1,SLOT_WEAPON0,EQUIP)  // Spear +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYHALBERD)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("halb03",Player1,0,0,0)  // Suryris's Blade +2
		ActionOverride(Player1,SetItemFlags("halb03",IDENTIFIED,TRUE))  // Suryris's Blade +2
		XEquipItem("halb03",Player1,SLOT_WEAPON0,EQUIP)  // Suryris's Blade +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYFLAILMORNINGSTAR)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
		GiveItemCreate("blun39",Player1,0,0,0)  // The Thresher +2
		ActionOverride(Player1,SetItemFlags("blun39",IDENTIFIED,TRUE))  // The Thresher +2
		XEquipItem("blun39",Player1,SLOT_WEAPON0,EQUIP)  // The Thresher +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYFLAILMORNINGSTAR)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
		GiveItemCreate("blun07",Player1,0,0,0)  // Morning Star +1
		ActionOverride(Player1,SetItemFlags("blun07",IDENTIFIED,TRUE))  // Morning Star +1
		XEquipItem("blun07",Player1,SLOT_WEAPON0,EQUIP)  // Morning Star +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYMACE)
	CheckStatGT(Player1,9,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYMACE","BD0120",1)
		GiveItemCreate("blun11",Player1,0,0,0)  // Krotan's Skullcrusher +2
		ActionOverride(Player1,SetItemFlags("blun11",IDENTIFIED,TRUE))  // Krotan's Skullcrusher +2
		XEquipItem("blun11",Player1,SLOT_WEAPON0,EQUIP)  // Krotan's Skullcrusher +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYQUARTERSTAFF)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf07",Player1,0,0,0)  // Staff Spear +2
		ActionOverride(Player1,SetItemFlags("staf07",IDENTIFIED,TRUE))  // Staff Spear +2
		XEquipItem("staf07",Player1,SLOT_WEAPON0,EQUIP)  // Staff Spear +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf08",Player1,0,0,0)  // Aule's Staff +3
		ActionOverride(Player1,SetItemFlags("staf08",IDENTIFIED,TRUE))  // Aule's Staff +3
		XEquipItem("staf08",Player1,SLOT_WEAPON0,EQUIP)  // Aule's Staff +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf18",Player1,0,0,0)  // Quarterstaff +2
		ActionOverride(Player1,SetItemFlags("staf18",IDENTIFIED,TRUE))  // Quarterstaff +2
		XEquipItem("staf18",Player1,SLOT_WEAPON0,EQUIP)  // Quarterstaff +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYCLUB)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYCLUB","BD0120",1)
		GiveItemCreate("blun37",Player1,0,0,0)  // Mighty Oak +2
		ActionOverride(Player1,SetItemFlags("blun37",IDENTIFIED,TRUE))  // Mighty Oak +2
		XEquipItem("blun37",Player1,SLOT_WEAPON0,EQUIP)  // Mighty Oak +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYCLUB","BD0120",1)
		GiveItemCreate("blun38",Player1,0,0,0)  // Night Club +1
		ActionOverride(Player1,SetItemFlags("blun38",IDENTIFIED,TRUE))  // Night Club +1
		XEquipItem("blun38",Player1,SLOT_WEAPON0,EQUIP)  // Night Club +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYDART)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("dart03",Player1,80,0,0)  // Dart of Stunning
		GiveItemCreate("dart02",Player1,80,0,0)  // Dart +1
		GiveItemCreate("dart09",Player1,80,0,0)  // Dart of Fire +1
		ActionOverride(Player1,SetItemFlags("dart03",IDENTIFIED,TRUE))  // Dart of Stunning
		ActionOverride(Player1,SetItemFlags("dart02",IDENTIFIED,TRUE))  // Dart +1
		ActionOverride(Player1,SetItemFlags("dart09",IDENTIFIED,TRUE))  // Dart of Fire +1
		XEquipItem("dart03",Player1,SLOT_WEAPON0,EQUIP)  // Dart of Stunning
		XEquipItem("dart02",Player1,SLOT_WEAPON1,EQUIP)  // Dart +1
		XEquipItem("dart09",Player1,SLOT_WEAPON2,EQUIP)  // Dart of Fire +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSLING)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng03",Player1,0,0,0)  // Arla's Dragonbane +3
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng03",IDENTIFIED,TRUE))  // Arla's Dragonbane +3
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng03",Player1,SLOT_WEAPON0,EQUIP)  // Arla's Dragonbane +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng11",Player1,0,0,0)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng11",IDENTIFIED,TRUE))  // Sling of Unerring Accuracy +1
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng11",Player1,SLOT_WEAPON0,EQUIP)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,11,STR)
	!Class(Player1,THIEF)
	!Class(Player1,MAGE_THIEF)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow03",Player1,0,0,0)  // The Guide +2
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow03",IDENTIFIED,TRUE))  // The Guide +2
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow03",Player1,SLOT_WEAPON0,EQUIP)  // The Guide +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow06",Player1,0,0,0)  // The Army Scythe +1
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow06",IDENTIFIED,TRUE))  // The Army Scythe +1
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow06",Player1,SLOT_WEAPON0,EQUIP)  // The Army Scythe +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,17,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow02",Player1,0,0,0)  // Composite Longbow +1
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow02",IDENTIFIED,TRUE))  // Composite Longbow +1
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow02",Player1,SLOT_WEAPON0,EQUIP)  // Composite Longbow +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow07",Player1,0,0,0)  // The Dead Shot +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow07",IDENTIFIED,TRUE))  // The Dead Shot +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow07",Player1,SLOT_WEAPON0,EQUIP)  // The Dead Shot +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStatGT(Player1,2,PROFICIENCYSHORTBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow08",Player1,0,0,0)  // Protector of the Dryads +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow08",IDENTIFIED,TRUE))  // Protector of the Dryads +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow08",Player1,SLOT_WEAPON0,EQUIP)  // Protector of the Dryads +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYBASTARDSWORD)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
		GiveItemCreate("sw1h03",Player1,0,0,0)  // Kondar +1
		ActionOverride(Player1,SetItemFlags("sw1h03",IDENTIFIED,TRUE))  // Kondar +1
		XEquipItem("sw1h03",Player1,SLOT_WEAPON0,EQUIP)  // Kondar +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
		GiveItemCreate("sw1h34",Player1,0,0,0)  // Albruin +1
		ActionOverride(Player1,SetItemFlags("sw1h34",IDENTIFIED,TRUE))  // Albruin +1
		XEquipItem("sw1h34",Player1,SLOT_WEAPON0,EQUIP)  // Albruin +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYLONGSWORD)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYLONGSWORD","BD0120",1)
		GiveItemCreate("sw1h06",Player1,0,0,0)  // Varscona +2
		ActionOverride(Player1,SetItemFlags("sw1h06",IDENTIFIED,TRUE))  // Varscona +2
		XEquipItem("sw1h06",Player1,SLOT_WEAPON0,EQUIP)  // Varscona +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYLONGSWORD","BD0120",1)
		GiveItemCreate("sw1h24",Player1,0,0,0)  // The Burning Earth +1
		ActionOverride(Player1,SetItemFlags("sw1h24",IDENTIFIED,TRUE))  // The Burning Earth +1
		XEquipItem("sw1h24",Player1,SLOT_WEAPON0,EQUIP)  // The Burning Earth +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSHORTSWORD)
	CheckStatGT(Player1,3,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSHORTSWORD","BD0120",1)
		GiveItemCreate("sw1h09",Player1,0,0,0)  // The Whistling Sword +2
		ActionOverride(Player1,SetItemFlags("sw1h09",IDENTIFIED,TRUE))  // The Whistling Sword +2
		XEquipItem("sw1h09",Player1,SLOT_WEAPON0,EQUIP)  // The Whistling Sword +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYAXE)
	CheckStatGT(Player1,9,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYAXE","BD0120",1)
		GiveItemCreate("ax1h03",Player1,0,0,0)  // Battle Axe of Mauletar +2
		ActionOverride(Player1,SetItemFlags("ax1h03",IDENTIFIED,TRUE))  // Battle Axe of Mauletar +2
		XEquipItem("ax1h03",Player1,SLOT_WEAPON0,EQUIP)  // Battle Axe of Mauletar +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYTWOHANDEDSWORD)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("sw2h06",Player1,0,0,0)  // Spider's Bane +2
		ActionOverride(Player1,SetItemFlags("sw2h06",IDENTIFIED,TRUE))  // Spider's Bane +2
		XEquipItem("sw2h06",Player1,SLOT_WEAPON0,EQUIP)  // Spider's Bane +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYKATANA)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYKATANA","BD0120",1)
		GiveItemCreate("sw1h44",Player1,0,0,0)  // Katana +1
		ActionOverride(Player1,SetItemFlags("sw1h44",IDENTIFIED,TRUE))  // Katana +1
		XEquipItem("sw1h44",Player1,SLOT_WEAPON0,EQUIP)  // Katana +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,9,STR)
	Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h23",Player1,0,0,0)  // Rashad's Talon +2
		ActionOverride(Player1,SetItemFlags("sw1h23",IDENTIFIED,TRUE))  // Rashad's Talon +2
		XEquipItem("sw1h23",Player1,SLOT_WEAPON0,EQUIP)  // Rashad's Talon +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,9,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h49",Player1,0,0,0)  // Ninjatō +1
		ActionOverride(Player1,SetItemFlags("sw1h49",IDENTIFIED,TRUE))  // Ninjatō +1
		XEquipItem("sw1h49",Player1,SLOT_WEAPON0,EQUIP)  // Ninjatō +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h23",Player1,0,0,0)  // Rashad's Talon +2
		ActionOverride(Player1,SetItemFlags("sw1h23",IDENTIFIED,TRUE))  // Rashad's Talon +2
		XEquipItem("sw1h23",Player1,SLOT_WEAPON0,EQUIP)  // Rashad's Talon +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,5,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h49",Player1,0,0,0)  // Ninjatō +1
		ActionOverride(Player1,SetItemFlags("sw1h49",IDENTIFIED,TRUE))  // Ninjatō +1
		XEquipItem("sw1h49",Player1,SLOT_WEAPON0,EQUIP)  // Ninjatō +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,4,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYDAGGER)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYDAGGER","BD0120",1)
		GiveItemCreate("dagg03",Player1,0,0,0)  // Heart of the Golem +2
		ActionOverride(Player1,SetItemFlags("dagg03",IDENTIFIED,TRUE))  // Heart of the Golem +2
		XEquipItem("dagg03",Player1,SLOT_WEAPON0,EQUIP)  // Heart of the Golem +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYWARHAMMER)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYWARHAMMER","BD0120",1)
		GiveItemCreate("hamm03",Player1,0,0,0)  // Ashideena +2
		ActionOverride(Player1,SetItemFlags("hamm03",IDENTIFIED,TRUE))  // Ashideena +2
		XEquipItem("hamm03",Player1,SLOT_WEAPON0,EQUIP)  // Ashideena +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSPEAR)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("sper05",Player1,0,0,0)  // Spear +2
		ActionOverride(Player1,SetItemFlags("sper05",IDENTIFIED,TRUE))  // Spear +2
		XEquipItem("sper05",Player1,SLOT_WEAPON0,EQUIP)  // Spear +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYHALBERD)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("halb03",Player1,0,0,0)  // Suryris's Blade +2
		ActionOverride(Player1,SetItemFlags("halb03",IDENTIFIED,TRUE))  // Suryris's Blade +2
		XEquipItem("halb03",Player1,SLOT_WEAPON0,EQUIP)  // Suryris's Blade +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYFLAILMORNINGSTAR)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
		GiveItemCreate("blun39",Player1,0,0,0)  // The Thresher +2
		ActionOverride(Player1,SetItemFlags("blun39",IDENTIFIED,TRUE))  // The Thresher +2
		XEquipItem("blun39",Player1,SLOT_WEAPON0,EQUIP)  // The Thresher +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYFLAILMORNINGSTAR)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
		GiveItemCreate("blun07",Player1,0,0,0)  // Morning Star +1
		ActionOverride(Player1,SetItemFlags("blun07",IDENTIFIED,TRUE))  // Morning Star +1
		XEquipItem("blun07",Player1,SLOT_WEAPON0,EQUIP)  // Morning Star +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYMACE)
	CheckStatGT(Player1,9,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYMACE","BD0120",1)
		GiveItemCreate("blun11",Player1,0,0,0)  // Krotan's Skullcrusher +2
		ActionOverride(Player1,SetItemFlags("blun11",IDENTIFIED,TRUE))  // Krotan's Skullcrusher +2
		XEquipItem("blun11",Player1,SLOT_WEAPON0,EQUIP)  // Krotan's Skullcrusher +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYQUARTERSTAFF)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf07",Player1,0,0,0)  // Staff Spear +2
		ActionOverride(Player1,SetItemFlags("staf07",IDENTIFIED,TRUE))  // Staff Spear +2
		XEquipItem("staf07",Player1,SLOT_WEAPON0,EQUIP)  // Staff Spear +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf08",Player1,0,0,0)  // Aule's Staff +3
		ActionOverride(Player1,SetItemFlags("staf08",IDENTIFIED,TRUE))  // Aule's Staff +3
		XEquipItem("staf08",Player1,SLOT_WEAPON0,EQUIP)  // Aule's Staff +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf18",Player1,0,0,0)  // Quarterstaff +2
		ActionOverride(Player1,SetItemFlags("staf18",IDENTIFIED,TRUE))  // Quarterstaff +2
		XEquipItem("staf18",Player1,SLOT_WEAPON0,EQUIP)  // Quarterstaff +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYCLUB)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYCLUB","BD0120",1)
		GiveItemCreate("blun37",Player1,0,0,0)  // Mighty Oak +2
		ActionOverride(Player1,SetItemFlags("blun37",IDENTIFIED,TRUE))  // Mighty Oak +2
		XEquipItem("blun37",Player1,SLOT_WEAPON0,EQUIP)  // Mighty Oak +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYCLUB","BD0120",1)
		GiveItemCreate("blun38",Player1,0,0,0)  // Night Club +1
		ActionOverride(Player1,SetItemFlags("blun38",IDENTIFIED,TRUE))  // Night Club +1
		XEquipItem("blun38",Player1,SLOT_WEAPON0,EQUIP)  // Night Club +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYDART)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("dart03",Player1,80,0,0)  // Dart of Stunning
		GiveItemCreate("dart02",Player1,80,0,0)  // Dart +1
		GiveItemCreate("dart09",Player1,80,0,0)  // Dart of Fire +1
		ActionOverride(Player1,SetItemFlags("dart03",IDENTIFIED,TRUE))  // Dart of Stunning
		ActionOverride(Player1,SetItemFlags("dart02",IDENTIFIED,TRUE))  // Dart +1
		ActionOverride(Player1,SetItemFlags("dart09",IDENTIFIED,TRUE))  // Dart of Fire +1
		XEquipItem("dart03",Player1,SLOT_WEAPON0,EQUIP)  // Dart of Stunning
		XEquipItem("dart02",Player1,SLOT_WEAPON1,EQUIP)  // Dart +1
		XEquipItem("dart09",Player1,SLOT_WEAPON2,EQUIP)  // Dart of Fire +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSLING)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng03",Player1,0,0,0)  // Arla's Dragonbane +3
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng03",IDENTIFIED,TRUE))  // Arla's Dragonbane +3
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng03",Player1,SLOT_WEAPON0,EQUIP)  // Arla's Dragonbane +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng11",Player1,0,0,0)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng11",IDENTIFIED,TRUE))  // Sling of Unerring Accuracy +1
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng11",Player1,SLOT_WEAPON0,EQUIP)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,11,STR)
	!Class(Player1,THIEF)
	!Class(Player1,MAGE_THIEF)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow03",Player1,0,0,0)  // The Guide +2
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow03",IDENTIFIED,TRUE))  // The Guide +2
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow03",Player1,SLOT_WEAPON0,EQUIP)  // The Guide +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow06",Player1,0,0,0)  // The Army Scythe +1
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow06",IDENTIFIED,TRUE))  // The Army Scythe +1
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow06",Player1,SLOT_WEAPON0,EQUIP)  // The Army Scythe +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,17,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow02",Player1,0,0,0)  // Composite Longbow +1
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow02",IDENTIFIED,TRUE))  // Composite Longbow +1
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow02",Player1,SLOT_WEAPON0,EQUIP)  // Composite Longbow +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow07",Player1,0,0,0)  // The Dead Shot +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow07",IDENTIFIED,TRUE))  // The Dead Shot +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow07",Player1,SLOT_WEAPON0,EQUIP)  // The Dead Shot +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,2,PROFICIENCYSHORTBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow08",Player1,0,0,0)  // Protector of the Dryads +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow08",IDENTIFIED,TRUE))  // Protector of the Dryads +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow08",Player1,SLOT_WEAPON0,EQUIP)  // Protector of the Dryads +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,11,STR)
	!Class(Player1,THIEF)
	!Class(Player1,MAGE_THIEF)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow03",Player1,0,0,0)  // The Guide +2
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow03",IDENTIFIED,TRUE))  // The Guide +2
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow03",Player1,SLOT_WEAPON0,EQUIP)  // The Guide +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow06",Player1,0,0,0)  // The Army Scythe +1
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow06",IDENTIFIED,TRUE))  // The Army Scythe +1
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow06",Player1,SLOT_WEAPON0,EQUIP)  // The Army Scythe +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,17,STR)
	!Class(Player1,BARD_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow02",Player1,0,0,0)  // Composite Longbow +1
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow02",IDENTIFIED,TRUE))  // Composite Longbow +1
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow02",Player1,SLOT_WEAPON0,EQUIP)  // Composite Longbow +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow07",Player1,0,0,0)  // The Dead Shot +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow07",IDENTIFIED,TRUE))  // The Dead Shot +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow07",Player1,SLOT_WEAPON0,EQUIP)  // The Dead Shot +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSHORTBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow08",Player1,0,0,0)  // Protector of the Dryads +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow08",IDENTIFIED,TRUE))  // Protector of the Dryads +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow08",Player1,SLOT_WEAPON0,EQUIP)  // Protector of the Dryads +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	CheckStat(Player1,1,PROFICIENCYDART)
	Global("BD_Weapon","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("dart03",Player1,80,0,0)  // Dart of Stunning
		GiveItemCreate("dart02",Player1,80,0,0)  // Dart +1
		GiveItemCreate("dart09",Player1,80,0,0)  // Dart of Fire +1
		ActionOverride(Player1,SetItemFlags("dart03",IDENTIFIED,TRUE))  // Dart of Stunning
		ActionOverride(Player1,SetItemFlags("dart02",IDENTIFIED,TRUE))  // Dart +1
		ActionOverride(Player1,SetItemFlags("dart09",IDENTIFIED,TRUE))  // Dart of Fire +1
		XEquipItem("dart03",Player1,SLOT_WEAPON0,EQUIP)  // Dart of Stunning
		XEquipItem("dart02",Player1,SLOT_WEAPON1,EQUIP)  // Dart +1
		XEquipItem("dart09",Player1,SLOT_WEAPON2,EQUIP)  // Dart of Fire +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,0,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,0,PROFICIENCY2HANDED)
	Global("SOD_fromimport","global",0)
	CheckStat(Player1,1,PROFICIENCYSLING)
	Global("BD_Weapon","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng03",Player1,0,0,0)  // Arla's Dragonbane +3
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng03",IDENTIFIED,TRUE))  // Arla's Dragonbane +3
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng03",Player1,SLOT_WEAPON0,EQUIP)  // Arla's Dragonbane +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng11",Player1,0,0,0)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng11",IDENTIFIED,TRUE))  // Sling of Unerring Accuracy +1
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng11",Player1,SLOT_WEAPON0,EQUIP)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYBASTARDSWORD)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
		GiveItemCreate("sw1h03",Player1,0,0,0)  // Kondar +1
		ActionOverride(Player1,SetItemFlags("sw1h03",IDENTIFIED,TRUE))  // Kondar +1
		XEquipItem("sw1h03",Player1,SLOT_WEAPON0,EQUIP)  // Kondar +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
		GiveItemCreate("sw1h34",Player1,0,0,0)  // Albruin +1
		ActionOverride(Player1,SetItemFlags("sw1h34",IDENTIFIED,TRUE))  // Albruin +1
		XEquipItem("sw1h34",Player1,SLOT_WEAPON0,EQUIP)  // Albruin +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYLONGSWORD)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYLONGSWORD","BD0120",1)
		GiveItemCreate("sw1h06",Player1,0,0,0)  // Varscona +2
		ActionOverride(Player1,SetItemFlags("sw1h06",IDENTIFIED,TRUE))  // Varscona +2
		XEquipItem("sw1h06",Player1,SLOT_WEAPON0,EQUIP)  // Varscona +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYLONGSWORD","BD0120",1)
		GiveItemCreate("sw1h24",Player1,0,0,0)  // The Burning Earth +1
		ActionOverride(Player1,SetItemFlags("sw1h24",IDENTIFIED,TRUE))  // The Burning Earth +1
		XEquipItem("sw1h24",Player1,SLOT_WEAPON0,EQUIP)  // The Burning Earth +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSHORTSWORD)
	CheckStatGT(Player1,3,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSHORTSWORD","BD0120",1)
		GiveItemCreate("sw1h09",Player1,0,0,0)  // The Whistling Sword +2
		ActionOverride(Player1,SetItemFlags("sw1h09",IDENTIFIED,TRUE))  // The Whistling Sword +2
		XEquipItem("sw1h09",Player1,SLOT_WEAPON0,EQUIP)  // The Whistling Sword +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYAXE)
	CheckStatGT(Player1,9,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYAXE","BD0120",1)
		GiveItemCreate("ax1h03",Player1,0,0,0)  // Battle Axe of Mauletar +2
		ActionOverride(Player1,SetItemFlags("ax1h03",IDENTIFIED,TRUE))  // Battle Axe of Mauletar +2
		XEquipItem("ax1h03",Player1,SLOT_WEAPON0,EQUIP)  // Battle Axe of Mauletar +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYTWOHANDEDSWORD)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("sw2h06",Player1,0,0,0)  // Spider's Bane +2
		ActionOverride(Player1,SetItemFlags("sw2h06",IDENTIFIED,TRUE))  // Spider's Bane +2
		XEquipItem("sw2h06",Player1,SLOT_WEAPON0,EQUIP)  // Spider's Bane +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYKATANA)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYKATANA","BD0120",1)
		GiveItemCreate("sw1h44",Player1,0,0,0)  // Katana +1
		ActionOverride(Player1,SetItemFlags("sw1h44",IDENTIFIED,TRUE))  // Katana +1
		XEquipItem("sw1h44",Player1,SLOT_WEAPON0,EQUIP)  // Katana +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,9,STR)
	Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h23",Player1,0,0,0)  // Rashad's Talon +2
		ActionOverride(Player1,SetItemFlags("sw1h23",IDENTIFIED,TRUE))  // Rashad's Talon +2
		XEquipItem("sw1h23",Player1,SLOT_WEAPON0,EQUIP)  // Rashad's Talon +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,9,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h49",Player1,0,0,0)  // Ninjatō +1
		ActionOverride(Player1,SetItemFlags("sw1h49",IDENTIFIED,TRUE))  // Ninjatō +1
		XEquipItem("sw1h49",Player1,SLOT_WEAPON0,EQUIP)  // Ninjatō +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h23",Player1,0,0,0)  // Rashad's Talon +2
		ActionOverride(Player1,SetItemFlags("sw1h23",IDENTIFIED,TRUE))  // Rashad's Talon +2
		XEquipItem("sw1h23",Player1,SLOT_WEAPON0,EQUIP)  // Rashad's Talon +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,5,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h49",Player1,0,0,0)  // Ninjatō +1
		ActionOverride(Player1,SetItemFlags("sw1h49",IDENTIFIED,TRUE))  // Ninjatō +1
		XEquipItem("sw1h49",Player1,SLOT_WEAPON0,EQUIP)  // Ninjatō +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSCIMITARWAKISASHININJATO)
	CheckStatGT(Player1,4,STR)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
		GiveItemCreate("sw1h47",Player1,0,0,0)  // Wakizashi +1
		ActionOverride(Player1,SetItemFlags("sw1h47",IDENTIFIED,TRUE))  // Wakizashi +1
		XEquipItem("sw1h47",Player1,SLOT_WEAPON0,EQUIP)  // Wakizashi +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYDAGGER)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYDAGGER","BD0120",1)
		GiveItemCreate("dagg03",Player1,0,0,0)  // Heart of the Golem +2
		ActionOverride(Player1,SetItemFlags("dagg03",IDENTIFIED,TRUE))  // Heart of the Golem +2
		XEquipItem("dagg03",Player1,SLOT_WEAPON0,EQUIP)  // Heart of the Golem +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYWARHAMMER)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYWARHAMMER","BD0120",1)
		GiveItemCreate("hamm03",Player1,0,0,0)  // Ashideena +2
		ActionOverride(Player1,SetItemFlags("hamm03",IDENTIFIED,TRUE))  // Ashideena +2
		XEquipItem("hamm03",Player1,SLOT_WEAPON0,EQUIP)  // Ashideena +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSPEAR)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("sper05",Player1,0,0,0)  // Spear +2
		ActionOverride(Player1,SetItemFlags("sper05",IDENTIFIED,TRUE))  // Spear +2
		XEquipItem("sper05",Player1,SLOT_WEAPON0,EQUIP)  // Spear +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYHALBERD)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("halb03",Player1,0,0,0)  // Suryris's Blade +2
		ActionOverride(Player1,SetItemFlags("halb03",IDENTIFIED,TRUE))  // Suryris's Blade +2
		XEquipItem("halb03",Player1,SLOT_WEAPON0,EQUIP)  // Suryris's Blade +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYFLAILMORNINGSTAR)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
		GiveItemCreate("blun39",Player1,0,0,0)  // The Thresher +2
		ActionOverride(Player1,SetItemFlags("blun39",IDENTIFIED,TRUE))  // The Thresher +2
		XEquipItem("blun39",Player1,SLOT_WEAPON0,EQUIP)  // The Thresher +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYFLAILMORNINGSTAR)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
		GiveItemCreate("blun07",Player1,0,0,0)  // Morning Star +1
		ActionOverride(Player1,SetItemFlags("blun07",IDENTIFIED,TRUE))  // Morning Star +1
		XEquipItem("blun07",Player1,SLOT_WEAPON0,EQUIP)  // Morning Star +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYMACE)
	CheckStatGT(Player1,9,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYMACE","BD0120",1)
		GiveItemCreate("blun11",Player1,0,0,0)  // Krotan's Skullcrusher +2
		ActionOverride(Player1,SetItemFlags("blun11",IDENTIFIED,TRUE))  // Krotan's Skullcrusher +2
		XEquipItem("blun11",Player1,SLOT_WEAPON0,EQUIP)  // Krotan's Skullcrusher +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYQUARTERSTAFF)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf07",Player1,0,0,0)  // Staff Spear +2
		ActionOverride(Player1,SetItemFlags("staf07",IDENTIFIED,TRUE))  // Staff Spear +2
		XEquipItem("staf07",Player1,SLOT_WEAPON0,EQUIP)  // Staff Spear +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf08",Player1,0,0,0)  // Aule's Staff +3
		ActionOverride(Player1,SetItemFlags("staf08",IDENTIFIED,TRUE))  // Aule's Staff +3
		XEquipItem("staf08",Player1,SLOT_WEAPON0,EQUIP)  // Aule's Staff +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #33
		SetGlobal("BD_Weapon","BD0120",2)
		GiveItemCreate("staf18",Player1,0,0,0)  // Quarterstaff +2
		ActionOverride(Player1,SetItemFlags("staf18",IDENTIFIED,TRUE))  // Quarterstaff +2
		XEquipItem("staf18",Player1,SLOT_WEAPON0,EQUIP)  // Quarterstaff +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYCLUB)
	CheckStatGT(Player1,4,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYCLUB","BD0120",1)
		GiveItemCreate("blun37",Player1,0,0,0)  // Mighty Oak +2
		ActionOverride(Player1,SetItemFlags("blun37",IDENTIFIED,TRUE))  // Mighty Oak +2
		XEquipItem("blun37",Player1,SLOT_WEAPON0,EQUIP)  // Mighty Oak +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",1)
		SetGlobal("BD_PROFICIENCYCLUB","BD0120",1)
		GiveItemCreate("blun38",Player1,0,0,0)  // Night Club +1
		ActionOverride(Player1,SetItemFlags("blun38",IDENTIFIED,TRUE))  // Night Club +1
		XEquipItem("blun38",Player1,SLOT_WEAPON0,EQUIP)  // Night Club +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,11,STR)
	!Class(Player1,THIEF)
	!Class(Player1,MAGE_THIEF)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow03",Player1,0,0,0)  // The Guide +2
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow03",IDENTIFIED,TRUE))  // The Guide +2
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow03",Player1,SLOT_WEAPON0,EQUIP)  // The Guide +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYCROSSBOW)
	CheckStatGT(Player1,7,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bolt06",Player1,80,0,0)  // Bolt +2
		GiveItemCreate("bolt02",Player1,80,0,0)  // Bolt +1
		GiveItemCreate("bolt04",Player1,80,0,0)  // Bolt of Biting
		GiveItemCreate("xbow06",Player1,0,0,0)  // The Army Scythe +1
		ActionOverride(Player1,SetItemFlags("bolt06",IDENTIFIED,TRUE))  // Bolt +2
		ActionOverride(Player1,SetItemFlags("bolt02",IDENTIFIED,TRUE))  // Bolt +1
		ActionOverride(Player1,SetItemFlags("bolt04",IDENTIFIED,TRUE))  // Bolt of Biting
		ActionOverride(Player1,SetItemFlags("xbow06",IDENTIFIED,TRUE))  // The Army Scythe +1
		XEquipItem("bolt06",Player1,SLOT_AMMO0,EQUIP)  // Bolt +2
		XEquipItem("bolt02",Player1,SLOT_AMMO1,EQUIP)  // Bolt +1
		XEquipItem("bolt04",Player1,SLOT_AMMO2,EQUIP)  // Bolt of Biting
		XEquipItem("xbow06",Player1,SLOT_WEAPON0,EQUIP)  // The Army Scythe +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,17,STR)
	!Class(Player1,BARD_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow02",Player1,0,0,0)  // Composite Longbow +1
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow02",IDENTIFIED,TRUE))  // Composite Longbow +1
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow02",Player1,SLOT_WEAPON0,EQUIP)  // Composite Longbow +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYLONGBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow07",Player1,0,0,0)  // The Dead Shot +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow07",IDENTIFIED,TRUE))  // The Dead Shot +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow07",Player1,SLOT_WEAPON0,EQUIP)  // The Dead Shot +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	CheckStat(Player1,1,PROFICIENCYSHORTBOW)
	CheckStatGT(Player1,5,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",2)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("arow11",Player1,80,0,0)  // Arrow +2
		GiveItemCreate("arow02",Player1,80,0,0)  // Arrow +1
		GiveItemCreate("arow08",Player1,80,0,0)  // Arrow of Fire +2
		GiveItemCreate("bow08",Player1,0,0,0)  // Protector of the Dryads +2
		ActionOverride(Player1,SetItemFlags("arow11",IDENTIFIED,TRUE))  // Arrow +2
		ActionOverride(Player1,SetItemFlags("arow02",IDENTIFIED,TRUE))  // Arrow +1
		ActionOverride(Player1,SetItemFlags("arow08",IDENTIFIED,TRUE))  // Arrow of Fire +2
		ActionOverride(Player1,SetItemFlags("bow08",IDENTIFIED,TRUE))  // Protector of the Dryads +2
		XEquipItem("arow11",Player1,SLOT_AMMO0,EQUIP)  // Arrow +2
		XEquipItem("arow02",Player1,SLOT_AMMO1,EQUIP)  // Arrow +1
		XEquipItem("arow08",Player1,SLOT_AMMO2,EQUIP)  // Arrow of Fire +2
		XEquipItem("bow08",Player1,SLOT_WEAPON0,EQUIP)  // Protector of the Dryads +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	CheckStat(Player1,1,PROFICIENCYDART)
	Global("BD_Weapon","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("dart03",Player1,80,0,0)  // Dart of Stunning
		GiveItemCreate("dart02",Player1,80,0,0)  // Dart +1
		GiveItemCreate("dart09",Player1,80,0,0)  // Dart of Fire +1
		ActionOverride(Player1,SetItemFlags("dart03",IDENTIFIED,TRUE))  // Dart of Stunning
		ActionOverride(Player1,SetItemFlags("dart02",IDENTIFIED,TRUE))  // Dart +1
		ActionOverride(Player1,SetItemFlags("dart09",IDENTIFIED,TRUE))  // Dart of Fire +1
		XEquipItem("dart03",Player1,SLOT_WEAPON0,EQUIP)  // Dart of Stunning
		XEquipItem("dart02",Player1,SLOT_WEAPON1,EQUIP)  // Dart +1
		XEquipItem("dart09",Player1,SLOT_WEAPON2,EQUIP)  // Dart of Fire +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	CheckStat(Player1,1,PROFICIENCYSLING)
	Global("BD_Weapon","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng03",Player1,0,0,0)  // Arla's Dragonbane +3
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng03",IDENTIFIED,TRUE))  // Arla's Dragonbane +3
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng03",Player1,SLOT_WEAPON0,EQUIP)  // Arla's Dragonbane +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng11",Player1,0,0,0)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng11",IDENTIFIED,TRUE))  // Sling of Unerring Accuracy +1
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng11",Player1,SLOT_WEAPON0,EQUIP)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	!Kit(Player1,CAVALIER)
	!Kit(Player1,KENSAI)
THEN
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng03",Player1,0,0,0)  // Arla's Dragonbane +3
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng03",IDENTIFIED,TRUE))  // Arla's Dragonbane +3
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng03",Player1,SLOT_WEAPON0,EQUIP)  // Arla's Dragonbane +3
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
	RESPONSE #50
		SetGlobal("BD_Weapon","BD0120",3)
		SetGlobal("BD_Missile_Weapon","BD0120",1)
		GiveItemCreate("bull03",Player1,80,0,0)  // Bullet +2
		GiveItemCreate("bull02",Player1,80,0,0)  // Bullet +1
		GiveItemCreate("bull07",Player1,80,0,0)  // Bullet of Fire +1
		GiveItemCreate("slng11",Player1,0,0,0)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SetItemFlags("bull03",IDENTIFIED,TRUE))  // Bullet +2
		ActionOverride(Player1,SetItemFlags("bull02",IDENTIFIED,TRUE))  // Bullet +1
		ActionOverride(Player1,SetItemFlags("bull07",IDENTIFIED,TRUE))  // Bullet of Fire +1
		ActionOverride(Player1,SetItemFlags("slng11",IDENTIFIED,TRUE))  // Sling of Unerring Accuracy +1
		XEquipItem("bull03",Player1,SLOT_AMMO0,EQUIP)  // Bullet +2
		XEquipItem("bull02",Player1,SLOT_AMMO1,EQUIP)  // Bullet +1
		XEquipItem("bull07",Player1,SLOT_AMMO2,EQUIP)  // Bullet of Fire +1
		XEquipItem("slng11",Player1,SLOT_WEAPON0,EQUIP)  // Sling of Unerring Accuracy +1
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",0)
	!Class(Player1,CLERIC_ALL)
	!Kit(Player1,BEASTMASTER)
THEN
	RESPONSE #100
		SetGlobal("BD_Weapon","BD0120",1)
		GiveItemCreate("dagg03",Player1,0,0,0)  // Heart of the Golem +2
		ActionOverride(Player1,SetItemFlags("dagg03",IDENTIFIED,TRUE))  // Heart of the Golem +2
		XEquipItem("dagg03",Player1,SLOT_WEAPON0,EQUIP)  // Heart of the Golem +2
		ActionOverride(Player1,SelectWeaponAbility(SLOT_WEAPON0,0))
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("BD_WEAP_PROF","BD0120",0)
	OR(2)
		Global("BD_Weapon","BD0120",1)
		Global("BD_Weapon","BD0120",3)
	CheckStat(Player1,0,PROFICIENCY2WEAPON)
	CheckStat(Player1,0,PROFICIENCYSINGLEWEAPON)
	Global("BD_Shield","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_WEAP_PROF","BD0120",1)
		SetGlobal("BD_Give_Shield_Anyway","BD0120",1)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("BD_WEAP_PROF","BD0120",0)
	Global("BD_Weapon","BD0120",1)
	CheckStatGT(Player1,1,PROFICIENCY2WEAPON)
	CheckStatLT(Player1,3,PROFICIENCYSINGLEWEAPON)
	CheckStatLT(Player1,3,PROFICIENCYSWORDANDSHIELD)
THEN
	RESPONSE #100
		SetGlobal("BD_WEAP_PROF","BD0120",1)
		SetGlobal("BD_Shield","BD0120",2)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("BD_WEAP_PROF","BD0120",0)
	Global("BD_Weapon","BD0120",1)
	CheckStatGT(Player1,1,PROFICIENCYSWORDANDSHIELD)
	CheckStatLT(Player1,2,PROFICIENCYSINGLEWEAPON)
	CheckStatLT(Player1,2,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_WEAP_PROF","BD0120",1)
		SetGlobal("BD_Two_Weapons","BD0120",1)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("BD_WEAP_PROF","BD0120",0)
	Global("BD_Weapon","BD0120",1)
	CheckStatGT(Player1,1,PROFICIENCYSINGLEWEAPON)
	CheckStatLT(Player1,2,PROFICIENCYSWORDANDSHIELD)
	CheckStatLT(Player1,2,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_WEAP_PROF","BD0120",1)
		SetGlobal("BD_Two_Weapons","BD0120",1)
		SetGlobal("BD_Shield","BD0120",2)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("BD_WEAP_PROF","BD0120",0)
	Global("BD_Weapon","BD0120",1)
	CheckStat(Player1,1,PROFICIENCYSINGLEWEAPON)
	CheckStat(Player1,1,PROFICIENCYSWORDANDSHIELD)
	CheckStat(Player1,1,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_WEAP_PROF","BD0120",1)
		SetGlobal("BD_Shield","BD0120",2)
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,MAGE)
	!Class(Player1,MONK)
	OR(4)
		CheckStatLT(Player1,6,STR)
		Class(Player1,RANGER_ALL)
		Kit(Player1,BEASTFRIEND)
		Class(Player1,SHAMAN)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("leat09",Player1,0,0,0)  // Karajah's Life and Death +3
		ActionOverride(Player1,SetItemFlags("leat09",IDENTIFIED,TRUE))  // Karajah's Life and Death +3
		XEquipItem("leat09",Player1,SLOT_ARMOR,EQUIP)  // Karajah's Life and Death +3
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(7)
		Class(Player1,BARD)
		Class(Player1,FIGHTER_MAGE)
		Class(Player1,FIGHTER_MAGE_THIEF)
		Class(Player1,FIGHTER_MAGE_CLERIC)
		Class(Player1,MAGE_THIEF)
		Class(Player1,CLERIC_MAGE)
		Class(Player1,CLERIC_THIEF)
	CheckStatGT(Player1,4,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("chan12",Player1,0,0,0)  // Elven Chain Mail
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		XEquipItem("chan12",Player1,SLOT_ARMOR,EQUIP)  // Elven Chain Mail
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,MAGE)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
	Alignment(Player1,MASK_EVIL)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("clck17",Player1,0,0,0)  // Robe of the Evil Archmagi
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("clck17",IDENTIFIED,TRUE))  // Robe of the Evil Archmagi
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		XEquipItem("clck17",Player1,SLOT_ARMOR,EQUIP)  // Robe of the Evil Archmagi
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,MAGE)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
	Alignment(Player1,MASK_GOOD)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("clck15",Player1,0,0,0)  // Robe of the Good Archmagi
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("clck15",IDENTIFIED,TRUE))  // Robe of the Good Archmagi
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		XEquipItem("clck15",Player1,SLOT_ARMOR,EQUIP)  // Robe of the Good Archmagi
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,MAGE)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
	!Alignment(Player1,MASK_GOOD)
	!Alignment(Player1,MASK_EVIL)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("clck16",Player1,0,0,0)  // Robe of the Neutral Archmagi
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("clck16",IDENTIFIED,TRUE))  // Robe of the Neutral Archmagi
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		XEquipItem("clck16",Player1,SLOT_ARMOR,EQUIP)  // Robe of the Neutral Archmagi
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Kit(Player1,BARBARIAN)
	CheckStatGT(Player1,7,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("chan03",Player1,0,0,0)  // Mail of the Dead +2
		ActionOverride(Player1,SetItemFlags("chan03",IDENTIFIED,TRUE))  // Mail of the Dead +2
		XEquipItem("chan03",Player1,SLOT_ARMOR,EQUIP)  // Mail of the Dead +2
		Continue()
	RESPONSE #50
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("chan07",Player1,0,0,0)  // Chain Mail +3
		ActionOverride(Player1,SetItemFlags("chan07",IDENTIFIED,TRUE))  // Chain Mail +3
		XEquipItem("chan07",Player1,SLOT_ARMOR,EQUIP)  // Chain Mail +3
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Kit(Player1,Blackguard)
	CheckStatGT(Player1,14,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat05",Player1,0,0,0)  // Plate of the Dark +1
		ActionOverride(Player1,SetItemFlags("plat05",IDENTIFIED,TRUE))  // Plate of the Dark +1
		XEquipItem("plat05",Player1,SLOT_ARMOR,EQUIP)  // Plate of the Dark +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(2)
		Class(Player1,PALADIN)
		Kit(Player1,DWARVEN_DEFENDER)
	!Kit(Player1,Blackguard)
	CheckStatGT(Player1,14,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat04",Player1,0,0,0)  // Full Plate Armor
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		XEquipItem("plat04",Player1,SLOT_ARMOR,EQUIP)  // Full Plate Armor
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,PALADIN)
	!Kit(Player1,DWARVEN_DEFENDER)
	!Class(Player1,FIGHTER_THIEF)
	!Class(Player1,FIGHTER_MAGE)
	!Class(Player1,FIGHTER_MAGE_THIEF)
	!Class(Player1,FIGHTER_MAGE_CLERIC)
	!Class(Player1,MAGE_THIEF)
	!Class(Player1,CLERIC_MAGE)
	!Class(Player1,CLERIC_THIEF)
	!Class(Player1,DRUID)
	!Class(Player1,MONK)
	!Class(Player1,MAGE)
	!Class(Player1,THIEF)
	!Class(Player1,BARD)
	!Kit(Player1,BARBARIAN)
	!Kit(Player1,KENSAI)
	!Class(Player1,RANGER_ALL)
	CheckStatGT(Player1,14,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #25
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat05",Player1,0,0,0)  // Plate of the Dark +1
		ActionOverride(Player1,SetItemFlags("plat05",IDENTIFIED,TRUE))  // Plate of the Dark +1
		XEquipItem("plat05",Player1,SLOT_ARMOR,EQUIP)  // Plate of the Dark +1
		Continue()
	RESPONSE #25
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat02",Player1,0,0,0)  // Fallorain's Plate +1
		ActionOverride(Player1,SetItemFlags("plat02",IDENTIFIED,TRUE))  // Fallorain's Plate +1
		XEquipItem("plat02",Player1,SLOT_ARMOR,EQUIP)  // Fallorain's Plate +1
		Continue()
	RESPONSE #25
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat08",Player1,0,0,0)  // The Practical Defense +3
		ActionOverride(Player1,SetItemFlags("plat08",IDENTIFIED,TRUE))  // The Practical Defense +3
		XEquipItem("plat08",Player1,SLOT_ARMOR,EQUIP)  // The Practical Defense +3
		Continue()
	RESPONSE #25
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat24",Player1,0,0,0)  // The Magma Bulwark +2
		ActionOverride(Player1,SetItemFlags("plat24",IDENTIFIED,TRUE))  // The Magma Bulwark +2
		XEquipItem("plat24",Player1,SLOT_ARMOR,EQUIP)  // The Magma Bulwark +2
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,FIGHTER_THIEF)
	!Class(Player1,FIGHTER_MAGE)
	!Class(Player1,FIGHTER_MAGE_THIEF)
	!Class(Player1,FIGHTER_MAGE_CLERIC)
	!Class(Player1,MAGE_THIEF)
	!Class(Player1,CLERIC_MAGE)
	!Class(Player1,CLERIC_THIEF)
	!Class(Player1,DRUID)
	!Class(Player1,MONK)
	!Class(Player1,MAGE)
	!Class(Player1,THIEF)
	!Class(Player1,BARD)
	!Kit(Player1,BARBARIAN)
	!Kit(Player1,KENSAI)
	!Class(Player1,RANGER_ALL)
	CheckStatGT(Player1,10,STR)
	CheckStatLT(Player1,15,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #33
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat02",Player1,0,0,0)  // Fallorain's Plate +1
		ActionOverride(Player1,SetItemFlags("plat02",IDENTIFIED,TRUE))  // Fallorain's Plate +1
		XEquipItem("plat02",Player1,SLOT_ARMOR,EQUIP)  // Fallorain's Plate +1
		Continue()
	RESPONSE #33
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat08",Player1,0,0,0)  // The Practical Defense +3
		ActionOverride(Player1,SetItemFlags("plat08",IDENTIFIED,TRUE))  // The Practical Defense +3
		XEquipItem("plat08",Player1,SLOT_ARMOR,EQUIP)  // The Practical Defense +3
		Continue()
	RESPONSE #33
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat24",Player1,0,0,0)  // The Magma Bulwark +2
		ActionOverride(Player1,SetItemFlags("plat24",IDENTIFIED,TRUE))  // The Magma Bulwark +2
		XEquipItem("plat24",Player1,SLOT_ARMOR,EQUIP)  // The Magma Bulwark +2
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,FIGHTER_THIEF)
	!Class(Player1,FIGHTER_MAGE)
	!Class(Player1,FIGHTER_MAGE_THIEF)
	!Class(Player1,FIGHTER_MAGE_CLERIC)
	!Class(Player1,MAGE_THIEF)
	!Class(Player1,CLERIC_MAGE)
	!Class(Player1,CLERIC_THIEF)
	!Class(Player1,DRUID)
	!Class(Player1,MONK)
	!Class(Player1,MAGE)
	!Class(Player1,THIEF)
	!Class(Player1,BARD)
	!Kit(Player1,BARBARIAN)
	!Kit(Player1,KENSAI)
	!Class(Player1,RANGER_ALL)
	CheckStatLT(Player1,11,STR)
	CheckStatGT(Player1,7,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("chan03",Player1,0,0,0)  // Mail of the Dead +2
		ActionOverride(Player1,SetItemFlags("chan03",IDENTIFIED,TRUE))  // Mail of the Dead +2
		XEquipItem("chan03",Player1,SLOT_ARMOR,EQUIP)  // Mail of the Dead +2
		Continue()
	RESPONSE #50
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("chan07",Player1,0,0,0)  // Chain Mail +3
		ActionOverride(Player1,SetItemFlags("chan07",IDENTIFIED,TRUE))  // Chain Mail +3
		XEquipItem("chan07",Player1,SLOT_ARMOR,EQUIP)  // Chain Mail +3
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,DRUID)
	!Class(Player1,SHAMAN)
	!Kit(Player1,SHAPESHIFTER)
	!Kit(Player1,BEASTFRIEND)
	CheckStatGT(Player1,7,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("plat06",Player1,0,0,0)  // Ankheg Plate Mail
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		XEquipItem("plat06",Player1,SLOT_ARMOR,EQUIP)  // Ankheg Plate Mail
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,FIGHTER_THIEF)
	!Class(Player1,MAGE_THIEF)
	!Class(Player1,CLERIC_MAGE)
	!Class(Player1,CLERIC_THIEF)
	!Class(Player1,MAGE)
	!Class(Player1,THIEF)
	!Class(Player1,BARD)
	!Class(Player1,MONK)
	CheckStatLT(Player1,8,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("leat09",Player1,0,0,0)  // Karajah's Life and Death +3
		ActionOverride(Player1,SetItemFlags("leat09",IDENTIFIED,TRUE))  // Karajah's Life and Death +3
		XEquipItem("leat09",Player1,SLOT_ARMOR,EQUIP)  // Karajah's Life and Death +3
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(2)
		Class(Player1,THIEF)
		Class(Player1,FIGHTER_THIEF)
	CheckStatGT(Player1,5,STR)
	Global("SOD_fromimport","global",0)
	Global("BD_Armor","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Armor","BD0120",2)
		GiveItemCreate("leat08",Player1,0,0,0)  // Shadow Armor +3
		ActionOverride(Player1,SetItemFlags("leat08",IDENTIFIED,TRUE))  // Shadow Armor +3
		XEquipItem("leat08",Player1,SLOT_ARMOR,EQUIP)  // Shadow Armor +3
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,MAGE_THIEF)
	!Class(Player1,MAGE)
	!Class(Player1,THIEF)
	!Class(Player1,BARD)
	!Class(Player1,MONK)
	!Kit(Player1,KENSAI)
	Global("SOD_fromimport","global",0)
	Global("BD_Helm","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Helm","BD0120",2)
		GiveItemCreate("helm07",Player1,0,0,0)  // Helm of Balduran
		ActionOverride(Player1,SetItemFlags("helm07",IDENTIFIED,TRUE))  // Helm of Balduran
		XEquipItem("helm07",Player1,SLOT_HELMET,EQUIP)  // Helm of Balduran
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Kit(Player1,WIZARDSLAYER)
	Global("SOD_fromimport","global",0)
	Global("BD_Belt","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Belt","BD0120",2)
		GiveItemCreate("belt02",Player1,0,0,0)  // Golden Girdle of Urnst
		ActionOverride(Player1,SetItemFlags("belt02",IDENTIFIED,TRUE))  // Golden Girdle of Urnst
		XEquipItem("belt02",Player1,SLOT_BELT,EQUIP)  // Golden Girdle of Urnst
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("BD_Boot","BD0120",0)
	Global("SOD_fromimport","global",0)
	OR(3)
		Class(Player1,THIEF)
		Class(Player1,RANGER)
		Kit(Player1,DARK_MOON)
THEN
	RESPONSE #100
		SetGlobal("BD_Boot","BD0120",2)
		GiveItemCreate("boot02",Player1,0,0,0)  // Worn Whispers
		ActionOverride(Player1,SetItemFlags("boot02",IDENTIFIED,TRUE))  // Worn Whispers
		XEquipItem("boot02",Player1,SLOT_BOOTS,EQUIP)  // Worn Whispers
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,THIEF)
	!Class(Player1,RANGER)
	!Kit(Player1,DARK_MOON)
	Global("BD_Boot","BD0120",0)
	Global("SOD_fromimport","global",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Boot","BD0120",2)
		GiveItemCreate("boot04",Player1,0,0,0)  // Senses of the Cat
		ActionOverride(Player1,SetItemFlags("boot04",IDENTIFIED,TRUE))  // Senses of the Cat
		XEquipItem("boot04",Player1,SLOT_BOOTS,EQUIP)  // Senses of the Cat
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,CLERIC)
	Global("SOD_fromimport","global",0)
	Global("BD_RING","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_RING","BD0120",2)
		GiveItemCreate("ring22",Player1,0,0,0)  // Honorary Ring of Sune
		ActionOverride(Player1,SetItemFlags("ring22",IDENTIFIED,TRUE))  // Honorary Ring of Sune
		XEquipItem("ring22",Player1,SLOT_RING_RIGHT,EQUIP)  // Honorary Ring of Sune
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,MAGE)
	Global("SOD_fromimport","global",0)
	Global("BD_RING","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_RING","BD0120",2)
		GiveItemCreate("ring08",Player1,0,0,0)  // Evermemory
		ActionOverride(Player1,SetItemFlags("ring08",IDENTIFIED,TRUE))  // Evermemory
		XEquipItem("ring08",Player1,SLOT_RING_RIGHT,EQUIP)  // Evermemory
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,THIEF)
	Global("SOD_fromimport","global",0)
	Global("BD_RING","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_RING","BD0120",2)
		GiveItemCreate("ring05",Player1,7,0,0)  // Sandthief's Ring
		ActionOverride(Player1,SetItemFlags("ring05",IDENTIFIED,TRUE))  // Sandthief's Ring
		XEquipItem("ring05",Player1,SLOT_RING_RIGHT,EQUIP)  // Sandthief's Ring
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,CLERIC)
	!Class(Player1,MAGE)
	!Class(Player1,THIEF)
	!Kit(Player1,WIZARDSLAYER)
	Global("SOD_fromimport","global",0)
	Global("BD_RING","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_RING","BD0120",2)
		GiveItemCreate("ring02",Player1,0,0,0)  // Batalista's Passport
		ActionOverride(Player1,SetItemFlags("ring02",IDENTIFIED,TRUE))  // Batalista's Passport
		XEquipItem("ring02",Player1,SLOT_RING_RIGHT,EQUIP)  // Batalista's Passport
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(3)
		Class(Player1,MONK)
		Kit(Player1,SHAPESHIFTER)
		Kit(Player1,KENSAI)
	Global("SOD_fromimport","global",0)
	Global("BD_RING_PLUS_1","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_RING_PLUS_1","BD0120",1)
		GiveItemCreate("ring06",Player1,0,0,0)  // Ring of the Princes +1
		ActionOverride(Player1,SetItemFlags("ring06",IDENTIFIED,TRUE))  // Ring of the Princes +1
		XEquipItem("ring06",Player1,SLOT_RING_LEFT,EQUIP)  // Ring of the Princes +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Kit(Player1,WIZARDSLAYER)
	Global("SOD_fromimport","global",0)
	Global("BD_Cloak","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Cloak","BD0120",2)
		GiveItemCreate("clck05",Player1,0,0,0)  // Cloak of Balduran
		ActionOverride(Player1,SetItemFlags("clck05",IDENTIFIED,TRUE))  // Cloak of Balduran
		XEquipItem("clck05",Player1,SLOT_CLOAK,EQUIP)  // Cloak of Balduran
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,BARD)
	Global("SOD_fromimport","global",0)
	Global("BD_Amulet","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Amulet","BD0120",2)
		GiveItemCreate("amul16",Player1,0,0,0)  // The Amplifier
		ActionOverride(Player1,SetItemFlags("amul16",IDENTIFIED,TRUE))  // The Amplifier
		XEquipItem("amul16",Player1,SLOT_AMULET,EQUIP)  // The Amplifier
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(3)
		Class(Player1,MONK)
		Kit(Player1,KENSAI)
		Kit(Player1,SHAPESHIFTER)
	Global("SOD_fromimport","global",0)
	Global("BD_Amulet","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Amulet","BD0120",2)
		GiveItemCreate("amul15",Player1,10,0,0)  // Shield Amulet
		ActionOverride(Player1,SetItemFlags("amul15",IDENTIFIED,TRUE))  // Shield Amulet
		XEquipItem("amul15",Player1,SLOT_AMULET,EQUIP)  // Shield Amulet
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,BARD)
	!Class(Player1,MONK)
	!Kit(Player1,KENSAI)
	!Kit(Player1,SHAPESHIFTER)
	!Kit(Player1,WIZARDSLAYER)
	Global("SOD_fromimport","global",0)
	Global("BD_Amulet","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("BD_Amulet","BD0120",2)
		GiveItemCreate("amul25",Player1,0,0,0)  // Amulet of Spell Warding
		ActionOverride(Player1,SetItemFlags("amul25",IDENTIFIED,TRUE))  // Amulet of Spell Warding
		XEquipItem("amul25",Player1,SLOT_AMULET,EQUIP)  // Amulet of Spell Warding
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_core_pots","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_addback_core_pots","bd0120",1)
		GiveItemCreate("POTN08",Player1,5,0,0)  // Potion of Healing
		GiveItemCreate("POTN17",Player1,2,0,0)  // Elixir of Health
		XEquipItem("POTN08",Player1,SLOT_MISC0,EQUIP)  // Potion of Healing
		XEquipItem("POTN17",Player1,SLOT_MISC1,EQUIP)  // Elixir of Health
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(6)
		Class(Player1,MAGE)
		Class(Player1,MAGE_THIEF)
		Class(Player1,MONK)
		Class(Player1,BARD)
		Kit(Player1,KENSAI)
		Kit(Player1,SHAPESHIFTER)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_pots","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN24",Player1,1,0,0)  // Potion of Defense
		XEquipItem("POTN24",Player1,SLOT_MISC2,EQUIP)  // Potion of Defense
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(2)
		Class(Player1,RANGER)
		Class(Player1,PALADIN)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_pots","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN03",Player1,1,0,0)  // Potion of Hill Giant Strength
		XEquipItem("POTN03",Player1,SLOT_MISC2,EQUIP)  // Potion of Hill Giant Strength
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,THIEF)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_pots","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN36",Player1,1,0,0)  // Potion of Master Thievery
		XEquipItem("POTN36",Player1,SLOT_MISC2,EQUIP)  // Potion of Master Thievery
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,DRUID)
	!Kit(Player1,SHAPESHIFTER)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_pots","bd0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN42",Player1,1,0,0)  // Potion of Regeneration
		XEquipItem("POTN42",Player1,SLOT_MISC2,EQUIP)  // Potion of Regeneration
		Continue()
	RESPONSE #50
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN45",Player1,1,0,0)  // Potion of Freedom
		XEquipItem("POTN45",Player1,SLOT_MISC2,EQUIP)  // Potion of Freedom
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(4)
		Class(Player1,CLERIC)
		Class(Player1,CLERIC_MAGE)
		Class(Player1,CLERIC_THIEF)
		Class(Player1,CLERIC_RANGER)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_pots","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN21",Player1,1,0,0)  // Potion of Clarity
		XEquipItem("POTN21",Player1,SLOT_MISC2,EQUIP)  // Potion of Clarity
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Class(Player1,FIGHTER_ALL)
	!Class(Player1,MONK)
	!Kit(Player1,KENSAI)
	!Kit(Player1,WIZARDSLAYER)
	Global("SOD_fromimport","global",0)
	Global("bd_addback_pots","bd0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_addback_pots","bd0120",1)
		GiveItemCreate("POTN12",Player1,1,0,0)  // Potion of Stone Giant Strength
		XEquipItem("POTN12",Player1,SLOT_MISC2,EQUIP)  // Potion of Stone Giant Strength
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Bracers","BD0120",1)
	PartyHasItem("brac06")  // Hands of Takkok
THEN
	RESPONSE #100
		SetGlobal("BD_Bracers","BD0120",2)
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(2)
		Class(Player1,THIEF)
		Class(Player1,RANGER)
	Global("SOD_fromimport","global",0)
	Global("BD_Bracers","BD0120",0)
	CheckStatLT(Player1,14,DEX)
	!PartyHasItem("brac06")  // Hands of Takkok
THEN
	RESPONSE #100
		SetGlobal("BD_Bracers","BD0120",2)
		GiveItemCreate("brac07",Player1,0,0,0)  // The Brawling Hands
		ActionOverride(Player1,SetItemFlags("brac07",IDENTIFIED,TRUE))  // The Brawling Hands
		XEquipItem("brac07",Player1,SLOT_GAUNTLETS,EQUIP)  // The Brawling Hands
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Class(Player1,CLERIC_ALL)
	!Class(Player1,DRUID_ALL)
	!Class(Player1,MAGE)
	!Kit(Player1,WIZARDSLAYER)
	!Kit(Player1,KENSAI)
	Global("SOD_fromimport","global",0)
	Global("BD_Bracers","BD0120",0)
	Global("BD_Missile_Weapon","BD0120",1)
	!PartyHasItem("brac06")  // Hands of Takkok
	!PartyHasItem("brac07")  // The Brawling Hands
THEN
	RESPONSE #100
		SetGlobal("BD_Bracers","BD0120",2)
		GiveItemCreate("brac04",Player1,0,0,0)  // The Dale's Protector
		ActionOverride(Player1,SetItemFlags("brac04",IDENTIFIED,TRUE))  // The Dale's Protector
		XEquipItem("brac04",Player1,SLOT_GAUNTLETS,EQUIP)  // The Dale's Protector
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Kit(Player1,WIZARDSLAYER)
	!Kit(Player1,KENSAI)
	Global("SOD_fromimport","global",0)
	Global("BD_Bracers","BD0120",0)
	!PartyHasItem("brac06")  // Hands of Takkok
	!PartyHasItem("brac07")  // The Brawling Hands
	!PartyHasItem("brac04")  // The Dale's Protector
THEN
	RESPONSE #100
		SetGlobal("BD_Bracers","BD0120",2)
		GiveItemCreate("brac10",Player1,0,0,0)  // Legacy of the Masters
		ActionOverride(Player1,SetItemFlags("brac10",IDENTIFIED,TRUE))  // Legacy of the Masters
		XEquipItem("brac10",Player1,SLOT_GAUNTLETS,EQUIP)  // Legacy of the Masters
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	OR(2)
		Kit(Player1,WIZARDSLAYER)
		Kit(Player1,KENSAI)
	Global("SOD_fromimport","global",0)
	Global("BD_Bracers","BD0120",0)
	!PartyHasItem("brac06")  // Hands of Takkok
	!PartyHasItem("brac07")  // The Brawling Hands
	!PartyHasItem("brac04")  // The Dale's Protector
	!PartyHasItem("brac10")  // Legacy of the Masters
THEN
	RESPONSE #100
		SetGlobal("BD_Bracers","BD0120",2)
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Kit(Player1,KENSAI)
	!Class(Player1,MONK)
	!Class(Player1,MAGE)
	Global("SOD_fromimport","global",0)
	OR(2)
		Global("BD_Weapon","BD0120",1)
		Global("BD_Weapon","BD0120",3)
	Global("BD_Shield","BD0120",0)
	OR(2)
		CheckStatGT(Player1,0,PROFICIENCYSWORDANDSHIELD)
		Global("BD_Give_Shield_Anyway","BD0120",1)
	OR(4)
		Class(Player1,DRUID)
		Class(Player1,THIEF)
		Class(Player1,BARD)
		CheckStatLT(Player1,13,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Shield","BD0120",2)
		GiveItemCreate("shld20",Player1,0,0,0)  // Kiel's Buckler
		ActionOverride(Player1,SetItemFlags("shld20",IDENTIFIED,TRUE))  // Kiel's Buckler
		XEquipItem("shld20",Player1,SLOT_SHIELD,EQUIP)  // Kiel's Buckler
		Continue()
	RESPONSE #50
		SetGlobal("BD_Shield","BD0120",2)
		GiveItemCreate("shld33",Player1,0,0,0)  // Buckley's Buckler
		ActionOverride(Player1,SetItemFlags("shld33",IDENTIFIED,TRUE))  // Buckley's Buckler
		XEquipItem("shld33",Player1,SLOT_SHIELD,EQUIP)  // Buckley's Buckler
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	!Kit(Player1,KENSAI)
	!Class(Player1,MONK)
	!Class(Player1,DRUID)
	!Class(Player1,MAGE)
	!Class(Player1,MAGE_THIEF)
	!Class(Player1,THIEF)
	!Class(Player1,BARD)
	Global("SOD_fromimport","global",0)
	OR(2)
		Global("BD_Weapon","BD0120",1)
		Global("BD_Weapon","BD0120",3)
	Global("BD_Shield","BD0120",0)
	OR(2)
		CheckStatGT(Player1,0,PROFICIENCYSWORDANDSHIELD)
		Global("BD_Give_Shield_Anyway","BD0120",1)
	CheckStatGT(Player1,12,STR)
THEN
	RESPONSE #50
		SetGlobal("BD_Shield","BD0120",2)
		GiveItemCreate("shld07",Player1,0,0,0)  // Shield of the Falling Stars +1
		ActionOverride(Player1,SetItemFlags("shld07",IDENTIFIED,TRUE))  // Shield of the Falling Stars +1
		XEquipItem("shld07",Player1,SLOT_SHIELD,EQUIP)  // Shield of the Falling Stars +1
		Continue()
	RESPONSE #50
		SetGlobal("BD_Shield","BD0120",2)
		GiveItemCreate("shld19",Player1,0,0,0)  // Pellan's Shield +2
		ActionOverride(Player1,SetItemFlags("shld19",IDENTIFIED,TRUE))  // Pellan's Shield +2
		XEquipItem("shld19",Player1,SLOT_SHIELD,EQUIP)  // Pellan's Shield +2
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYBASTARDSWORD","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("sw1h02",Player1,0,0,0)  // Bastard Sword +1
		ActionOverride(Player1,SetItemFlags("sw1h02",IDENTIFIED,TRUE))  // Bastard Sword +1
		XEquipItem("sw1h02",Player1,SLOT_SHIELD,EQUIP)  // Bastard Sword +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYLONGSWORD","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("sw1h05",Player1,0,0,0)  // Long Sword +1
		ActionOverride(Player1,SetItemFlags("sw1h05",IDENTIFIED,TRUE))  // Long Sword +1
		XEquipItem("sw1h05",Player1,SLOT_SHIELD,EQUIP)  // Long Sword +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYSHORTSWORD","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("sw1h08",Player1,0,0,0)  // Short Sword +1
		ActionOverride(Player1,SetItemFlags("sw1h08",IDENTIFIED,TRUE))  // Short Sword +1
		XEquipItem("sw1h08",Player1,SLOT_SHIELD,EQUIP)  // Short Sword +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYAXE","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("ax1h02",Player1,0,0,0)  // Battle Axe +1
		ActionOverride(Player1,SetItemFlags("ax1h02",IDENTIFIED,TRUE))  // Battle Axe +1
		XEquipItem("ax1h02",Player1,SLOT_SHIELD,EQUIP)  // Battle Axe +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYKATANA","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("sw1h43",Player1,0,0,0)  // Katana
		ActionOverride(Player1,SetItemFlags("sw1h43",IDENTIFIED,TRUE))  // Katana
		XEquipItem("sw1h43",Player1,SLOT_SHIELD,EQUIP)  // Katana
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
	Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("sw1h22",Player1,0,0,0)  // Scimitar +1
		ActionOverride(Player1,SetItemFlags("sw1h22",IDENTIFIED,TRUE))  // Scimitar +1
		XEquipItem("sw1h22",Player1,SLOT_SHIELD,EQUIP)  // Scimitar +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYSCIMITAR_ETC","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
	!Class(Player1,DRUID_ALL)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("sw1h46",Player1,0,0,0)  // Wakizashi
		ActionOverride(Player1,SetItemFlags("sw1h46",IDENTIFIED,TRUE))  // Wakizashi
		XEquipItem("sw1h46",Player1,SLOT_SHIELD,EQUIP)  // Wakizashi
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYDAGGER","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("dagg02",Player1,0,0,0)  // Dagger +1
		ActionOverride(Player1,SetItemFlags("dagg02",IDENTIFIED,TRUE))  // Dagger +1
		XEquipItem("dagg02",Player1,SLOT_SHIELD,EQUIP)  // Dagger +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYWARHAMMER","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("hamm02",Player1,0,0,0)  // War Hammer +1
		ActionOverride(Player1,SetItemFlags("hamm02",IDENTIFIED,TRUE))  // War Hammer +1
		XEquipItem("hamm02",Player1,SLOT_SHIELD,EQUIP)  // War Hammer +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYFLAILMORNINGSTAR","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
	CheckStatGT(Player1,10,STR)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("blun07",Player1,0,0,0)  // Morning Star +1
		ActionOverride(Player1,SetItemFlags("blun07",IDENTIFIED,TRUE))  // Morning Star +1
		XEquipItem("blun07",Player1,SLOT_SHIELD,EQUIP)  // Morning Star +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYMACE","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("blun05",Player1,0,0,0)  // Mace +1
		ActionOverride(Player1,SetItemFlags("blun05",IDENTIFIED,TRUE))  // Mace +1
		XEquipItem("blun05",Player1,SLOT_SHIELD,EQUIP)  // Mace +1
		Continue()
END

IF
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",0)
	Global("SOD_fromimport","global",0)
	Global("BD_Weapon","BD0120",1)
	Global("BD_Two_Weapons","BD0120",0)
	Global("BD_PROFICIENCYCLUB","BD0120",1)
	CheckStatGT(Player1,0,PROFICIENCY2WEAPON)
THEN
	RESPONSE #100
		SetGlobal("BD_Two_Weapons","BD0120",1)
		GiveItemCreate("blun36",Player1,0,0,0)  // Club +1
		ActionOverride(Player1,SetItemFlags("blun36",IDENTIFIED,TRUE))  // Club +1
		XEquipItem("blun36",Player1,SLOT_SHIELD,EQUIP)  // Club +1
		Continue()
END

IF
	Global("BD_break_script_for_imports","BD0120",0)
	Global("BD_TURNOFF_GEARSCRIPT","BD0120",1)
	Global("bd_plot","global",0)
THEN
	RESPONSE #100
		SetGlobal("BD_break_script_for_imports","BD0120",1)
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(1)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("baelot7",[840.1590],NE)  // Baeloth
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("edwin7",[780.1575],NE)  // Edwin
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("baeloth",NONE)  // Baeloth
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("edwin",NONE)  // Edwin
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(2)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("baelot7",[840.1590],NE)  // Baeloth
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("edwin7",[780.1575],NE)  // Edwin
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("baeloth",NONE)  // Baeloth
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("edwin",NONE)  // Edwin
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(2)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("baelot7",[840.1590],NE)  // Baeloth
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("baeloth",NONE)  // Baeloth
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("edwin7",[780.1575],NE)  // Edwin
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("edwin",NONE)  // Edwin
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("edwin7",[870.1710],NE)  // Edwin
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("edwin",NONE)  // Edwin
		Continue()
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("baelot7",[870.1710],NE)  // Baeloth
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("baeloth",NONE)  // Baeloth
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("viconia",NONE)  // Viconia
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",1)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("edwin7",[920.1660],NE)  // Edwin
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("edwin",NONE)  // Edwin
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("baelot7",[920.1660],NE)  // Baeloth
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("baeloth",NONE)  // Baeloth
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_priest","BD0120",2)
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		ChangeSpecifics("viconia",NONE)  // Viconia
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_warrior","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_wizard","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_party_has_wizard","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("edwin7",[920.1660],NE)  // Edwin
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		ChangeSpecifics("edwin",NONE)  // Edwin
	RESPONSE #50
		SetGlobal("bd_party_has_wizard","BD0120",1)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("baelot7",[920.1660],NE)  // Baeloth
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		ChangeSpecifics("baeloth",NONE)  // Baeloth
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("viconia")  // Viconia
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		ChangeSpecifics("viconia",NONE)  // Viconia
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("dorn")  // Dorn
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	GlobalGT("bd_party_has_lockpicking","BD0120",0)
	GlobalGT("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",2)
		CreateCreature("edwin7",[920.1660],NE)  // Edwin
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		ChangeSpecifics("edwin",NONE)  // Edwin
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",2)
		CreateCreature("baelot7",[920.1660],NE)  // Baeloth
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		ChangeSpecifics("baeloth",NONE)  // Baeloth
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("viconia",NONE)  // Viconia
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_warrior","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("dorn",NONE)  // Dorn
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_wizard","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("edwin7",[935.1720],NE)  // Edwin
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("edwin",NONE)  // Edwin
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[935.1720],NE)  // Safana
		CreateCreature("baelot7",[920.1660],NE)  // Baeloth
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("baeloth",NONE)  // Baeloth
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("viconi7",[935.1720],NE)  // Viconia
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("viconia",NONE)  // Viconia
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("viconi7",[920.1660],NE)  // Viconia
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		ChangeSpecifics("viconia",NONE)  // Viconia
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	!InMyArea("viconia")  // Viconia
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_wizard","BD0120",0)
	!InMyArea("viconia")  // Viconia
	!InMyArea("dorn")  // Dorn
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("edwin7",[920.1660],NE)  // Edwin
		SetGlobal("SPRITE_IS_DEADedwin","global",0)
		ChangeSpecifics("edwin",NONE)  // Edwin
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("baelot7",[920.1660],NE)  // Baeloth
		SetGlobal("SPRITE_IS_DEADbaeloth","global",0)
		ChangeSpecifics("baeloth",NONE)  // Baeloth
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("viconia")  // Viconia
	!InMyArea("dorn")  // Dorn
	!InMyArea("edwin")  // Edwin
	!InMyArea("baeloth")  // Baeloth
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("viconi7",[920.1660],NE)  // Viconia
		SetGlobal("SPRITE_IS_DEADviconia","global",0)
		ChangeSpecifics("viconia",NONE)  // Viconia
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_EVIL)
		Alignment(Player1,NEUTRAL_EVIL)
		Alignment(Player1,CHAOTIC_EVIL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(1)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("dorn7",[780.1575],NE)  // Dorn
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(2)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("dorn7",[780.1575],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("dorn",NONE)  // Dorn
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(2)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[870.1710],NE)  // Safana
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
		ChangeSpecifics("dorn",NONE)  // Dorn
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_priest","BD0120",2)
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_warrior","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("khalid7",[935.1720],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_warrior","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_wizard","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_wizard","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	GlobalGT("bd_party_has_lockpicking","BD0120",0)
	GlobalGT("bd_party_has_traps","BD0120",0)
	InMyArea("jaheira")  // Jaheira
	!InMyArea("khalid")  // Khalid
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("khalid7",[935.1720],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	GlobalGT("bd_party_has_lockpicking","BD0120",0)
	GlobalGT("bd_party_has_traps","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
	!InMyArea("dorn")  // Dorn
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",2)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_warrior","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("dorn7",[935.1720],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("dorn",NONE)  // Dorn
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("khalid7",[935.1720],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_wizard","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("neera7",[935.1720],NE)  // Neera
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("neera",NONE)  // Neera
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("jaheir7",[920.1660],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("dorn7",[920.1660],NE)  // Dorn
		SetGlobal("SPRITE_IS_DEADdorn","global",0)
		ChangeSpecifics("dorn",NONE)  // Dorn
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("khalid7",[920.1660],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_wizard","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
	!InMyArea("dorn")  // Dorn
	!InMyArea("khalid")  // Khalid
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("neera7",[920.1660],NE)  // Neera
		SetGlobal("SPRITE_IS_DEADneera","global",0)
		ChangeSpecifics("neera",NONE)  // Neera
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("jaheira")  // Jaheira
	!InMyArea("dorn")  // Dorn
	!InMyArea("khalid")  // Khalid
	!InMyArea("neera")  // Neera
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("jaheir7",[920.1660],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_NEUTRAL)
		Alignment(Player1,NEUTRAL)
		Alignment(Player1,CHAOTIC_NEUTRAL)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(1)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("minsc7",[920.1660],NE)  // Minsc
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("dynahe7",[780.1575],NE)  // Dynaheir
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("minsc",NONE)  // Minsc
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(2)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("minsc7",[920.1660],NE)  // Minsc
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("dynahe7",[780.1575],NE)  // Dynaheir
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("minsc",NONE)  // Minsc
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(2)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("safana7",[870.1710],NE)  // Safana
		CreateCreature("dynahe7",[780.1575],NE)  // Dynaheir
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
		Continue()
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("minsc7",[920.1660],NE)  // Minsc
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		CreateCreature("dynahe7",[780.1575],NE)  // Dynaheir
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("minsc",NONE)  // Minsc
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dynahe7",[920.1660],NE)  // Dynaheir
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[870.1710],NE)  // Safana
		CreateCreature("khalid7",[840.1590],NE)  // Khalid
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("khalid",NONE)  // Khalid
		ChangeSpecifics("jaheira",NONE)  // Jaheira
		Continue()
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(3)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dynahe7",[920.1660],NE)  // Dynaheir
		CreateCreature("minsc7",[935.1720],NE)  // Minsc
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
		ChangeSpecifics("minsc",NONE)  // Minsc
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_priest","BD0120",2)
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_warrior","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("khalid7",[935.1720],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_warrior","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("minsc7",[935.1720],NE)  // Minsc
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		ChangeSpecifics("minsc",NONE)  // Minsc
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_wizard","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_wizard","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("dynahe7",[920.1660],NE)  // Dynaheir
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	GlobalGT("bd_party_has_lockpicking","BD0120",0)
	GlobalGT("bd_party_has_traps","BD0120",0)
	InMyArea("jaheira")  // Jaheira
	!InMyArea("khalid")  // Khalid
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("khalid7",[935.1720],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	GlobalGT("bd_party_has_lockpicking","BD0120",0)
	GlobalGT("bd_party_has_traps","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
	!InMyArea("minsc")  // Minsc
THEN
	RESPONSE #100
		SetGlobal("bd_party_has_lockpicking","BD0120",2)
		SetGlobal("bd_party_has_traps","BD0120",2)
		SetGlobal("bd_plot","global",1)
		IncrementGlobal("bd_fours_a_crowd","GLOBAL",1)
		CreateCreature("minsc7",[935.1720],NE)  // Minsc
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		ChangeSpecifics("minsc",NONE)  // Minsc
END

IF
	GlobalLT("bd_fours_a_crowd","GLOBAL",2)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		SetGlobal("bd_fours_a_crowd","GLOBAL",2)
		CreateCreature("dynahe7",[920.1660],NE)  // Dynaheir
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_warrior","BD0120",0)
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("minsc7",[935.1720],NE)  // Minsc
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("minsc",NONE)  // Minsc
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("khalid7",[935.1720],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
	Global("bd_party_has_wizard","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("dynahe7",[935.1720],NE)  // Dynaheir
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(4)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[920.1660],NE)  // Safana
		CreateCreature("jaheir7",[935.1720],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_priest","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("jaheir7",[920.1660],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_warrior","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
THEN
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("minsc7",[920.1660],NE)  // Minsc
		SetGlobal("SPRITE_IS_DEADminsc","global",0)
		ChangeSpecifics("minsc",NONE)  // Minsc
	RESPONSE #50
		SetGlobal("bd_plot","global",1)
		CreateCreature("khalid7",[920.1660],NE)  // Khalid
		SetGlobal("SPRITE_IS_DEADkhalid","global",0)
		ChangeSpecifics("khalid",NONE)  // Khalid
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	Global("bd_party_has_wizard","BD0120",0)
	!InMyArea("jaheira")  // Jaheira
	!InMyArea("minsc")  // Minsc
	!InMyArea("khalid")  // Khalid
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("dynahe7",[920.1660],NE)  // Dynaheir
		SetGlobal("SPRITE_IS_DEADdynaheir","global",0)
		ChangeSpecifics("dynaheir",NONE)  // Dynaheir
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	Global("bd_party_has_lockpicking","BD0120",1)
	Global("bd_party_has_traps","BD0120",1)
	!InMyArea("jaheira")  // Jaheira
	!InMyArea("minsc")  // Minsc
	!InMyArea("khalid")  // Khalid
	!InMyArea("dynaheir")  // Dynaheir
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("jaheir7",[920.1660],NE)  // Jaheira
		SetGlobal("SPRITE_IS_DEADjaheira","global",0)
		ChangeSpecifics("jaheira",NONE)  // Jaheira
END

IF
	Global("bd_plot","global",0)
	Global("SOD_fromimport","global",0)
	NumInParty(5)
	OR(3)
		Alignment(Player1,LAWFUL_GOOD)
		Alignment(Player1,NEUTRAL_GOOD)
		Alignment(Player1,CHAOTIC_GOOD)
	OR(2)
		Global("bd_party_has_lockpicking","BD0120",0)
		Global("bd_party_has_traps","BD0120",0)
THEN
	RESPONSE #100
		SetGlobal("bd_plot","global",1)
		CreateCreature("safana7",[870.1710],NE)  // Safana
		SetGlobal("SPRITE_IS_DEADsafana","global",0)
		ChangeSpecifics("safana",NONE)  // Safana
		Continue()
END

IF
	GlobalLT("bd_plot","global",2)
THEN
	RESPONSE #100
		FadeToColor([1.0],0)
		ClearAllActions()
		SetCursorState(FALSE)
		StartCutSceneMode()
		StartCutSceneEx("bdintro",TRUE)
END

IF
	Global("BD_SPEAKER_THREAT","BD0120",0)
	InMyArea(Player1)
	TriggerOverride("Porios_spawn",Range([PC],12))
THEN
	RESPONSE #100
		SetGlobal("BD_SPEAKER_THREAT","BD0120",1)
END

IF
	Global("bd_mummy_plot","global",1)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("bd_mummy_plot","global",3)
		Wait(1)
		CreateVisualEffect("BDRAISED",[1820.420])
		Wait(3)
		CreateCreature("bdmummy",[1825.425],SW)  // Fanegonorom
		ActionOverride("bdmummy",SetSequence(SEQ_AWAKE))
		AddMapNoteColor([1740.341],67719,SLATE)  // Fanegonorom's Resting Place
		SetGlobalTimer("BD_mummy_talk","BD0120",2)
		SetInterrupt(TRUE)
END

IF
	Global("bd_leaving_ot","GLOBAL",0)
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #100
		SetGlobal("bd_leaving_ot","GLOBAL",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
END

IF
	Global("bd_leaving_ot_minsc","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("Minsc")  // Minsc
	IsValidForPartyDialogue("Dynaheir")  // Dynaheir
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_minsc","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("Minsc",67332)  // I long to breathe fresh air again, and have some time for Dynaheir and myself to rest! Even mighty berserkers can tire of adventuring... Who would have thought, eh, Boo?
END

IF
	Global("bd_leaving_ot_dynaheir","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("Dynaheir")  // Dynaheir
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_dynaheir","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("Dynaheir",67333)  // When we are done here, I must report to my sisters in Rashemen. Our time together is drawing to a close.
END

IF
	Global("bd_leaving_ot_rasaad","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("Rasaad")  // Rasaad
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_rasaad","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("Rasaad",67334)  // I will be glad when this is over, my friend. The city is in pain, and I feel I could aid it in a less... violent manner.
END

IF
	Global("bd_leaving_ot_safana","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("safana")  // Safana
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_safana","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("safana",67335)  // One last joyride and then I'm done for a while. I want hot baths and silk sheets.
END

IF
	Global("bd_leaving_ot_viconia","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("viconia")  // Viconia
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_viconia","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("viconia",66938)  // These rivvin have tolerated my presence thus far thanks to you, <CHARNAME>. But I know not how much longer that patience will last.
END

IF
	Global("bd_leaving_ot_edwin","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("edwin")  // Edwin
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_edwin","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("edwin",67337)  // Orders and demands! No more! When we finish here, Edwin shall move on!
END

IF
	Global("bd_leaving_ot_khalid","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("khalid")  // Khalid
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_khalid","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("khalid",67338)  // I can't wait to be d-done with all this. The constant d-d-danger has st-started to wear on me.
END

IF
	Global("bd_leaving_ot_jaheira","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("jaheira")  // Jaheira
	IsValidForPartyDialogue("khalid")  // Khalid
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_jaheira","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("jaheira",67339)  // When this is over, Khalid, you and I will spend some quality time together.
END

IF
	Global("bd_leaving_ot_jaheira","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("jaheira")  // Jaheira
	!IsValidForPartyDialogue("khalid")  // Khalid
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_jaheira","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("jaheira",67340)  // When this is over, I shall require some time to myself... I believe I have earned it, no?
END

IF
	Global("bd_leaving_ot_dorn","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("dorn")  // Dorn
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_dorn","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("dorn",67341)  // My patron... I can feel the call. I must depart soon, and then I will see what tasks he has in store for me.
END

IF
	Global("bd_leaving_ot_neera","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("neera")  // Neera
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_neera","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("neera",67342)  // The sooner we're done here, the sooner I can take that trip I've always wanted!
END

IF
	Global("bd_leaving_ot_alora","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("alora")  // Alora
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_alora","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("alora",67343)  // This has been a memorable journey. I know it won't last forever, but I'm glad we had this time together.
END

IF
	Global("bd_leaving_ot_ajantis","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("ajantis")  // Ajantis
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_ajantis","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("ajantis",67344)  // Righteous work always waits. I hear its call even now, and I fear it will lead us in opposing directions.
END

IF
	Global("bd_leaving_ot_branwen","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("branwen")  // Statue
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_branwen","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("branwen",67345)  // It has been good to fight for you, and of course I owe you much. Soon, though, I must make my own path.
END

IF
	Global("bd_leaving_ot_coran","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("coran")  // Coran
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_coran","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("coran",67346)  // I think we could all use a good, long rest after this is done. Or at least a good, long romp.
END

IF
	Global("bd_leaving_ot_eldoth","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("eldoth")  // Eldoth
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_eldoth","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("eldoth",67347)  // This nobility and service has worn me away. I must take some time for myself soon.
END

IF
	Global("bd_leaving_ot_faldorn","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("faldorn")  // Faldorn
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_faldorn","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("faldorn",67348)  // This city pins me in on all sides. When we are done here, I shall return to the forest in peace.
END

IF
	Global("bd_leaving_ot_garrick","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("garrick")  // Garrick
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_garrick","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("garrick",67349)  // I must start composing an epic ballad about this! It will take time, but just wait until you see my rhyming couplets.
END

IF
	Global("bd_leaving_ot_kagain","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("kagain")  // Kagain
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_kagain","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("kagain",67350)  // I'm nae sayin' this hasn't been profitable, but it might be time for me to shuffle on. 
END

IF
	Global("bd_leaving_ot_kivan","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("kivan")  // Kivan
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_kivan","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("kivan",67351)  // Your quest is almost ended. Perhaps I will return home when we are done.
END

IF
	Global("bd_leaving_ot_montaron","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("montaron")  // Montaron
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_montaron","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("montaron",67352)  // All this jumpin' at the dukes' orders is givin' me gut pains. Time to put these rooftops behind me.
END

IF
	Global("bd_leaving_ot_quayle","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("quayle")  // Quayle
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_quayle","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("quayle",67353)  // Fascinating as this has been, I will have to leave soon. I've a trip south planned—I'll be taking over a family business of sorts.
END

IF
	Global("bd_leaving_ot_sharteel","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("sharteel")  // Shar-Teel
	Gender(Player1,MALE)
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_sharteel","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("sharteel",67354)  // I've followed you as I said I would, but the time to follow is almost ended.
END

IF
	Global("bd_leaving_ot_sharteel","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("shar-teel")
	Gender(Player1,MALE)
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_sharteel","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("shar-teel",67354)  // I've followed you as I said I would, but the time to follow is almost ended.
END

IF
	Global("bd_leaving_ot_sharteel","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("sharteel")  // Shar-Teel
	Gender(Player1,FEMALE)
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_sharteel","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("sharteel",67355)  // I will be a strong leader such as yourself some day. When this is done, I will forge my own group to lead.
END

IF
	Global("bd_leaving_ot_sharteel","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("shar-teel")
	Gender(Player1,FEMALE)
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_sharteel","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("shar-teel",67355)  // I will be a strong leader such as yourself some day. When this is done, I will forge my own group to lead.
END

IF
	Global("bd_leaving_ot_skie","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("skie")  // Skie
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_skie","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("skie",67356)  // Guh, I'm sick of all this dust and grime. Being a hero isn't as great as it sounds.
END

IF
	Global("bd_leaving_ot_tiax","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("tiax")  // Tiax
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_tiax","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("tiax",67357)  // Tiax follows because it PLEASES him to! For NOW. But soon... SOON, CYRIC WILL REVEAL HIS PLAN FOR ME!
END

IF
	Global("bd_leaving_ot_xan","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("xan")  // Xan
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_xan","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("xan",67359)  // We've been digging around in old and horrible tombs for so long... I fear exhaustion will take me soon.
END

IF
	Global("bd_leaving_ot_xzar","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("xzar")  // Xzar
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_xzar","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("xzar",67360)  // Monsters and mayhem have dogged our heels long enough. Once we trek out of here, this is OVER.
END

IF
	Global("bd_leaving_ot_yeslick","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("yeslick")  // Yeslick
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_yeslick","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("yeslick",67361)  // Aye, I look forward to leaving this place and putting all this tragedy behind me.
END

IF
	Global("bd_leaving_ot_baeloth","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving_ot","GLOBAL",0)
	GlobalLT("bd_leaving_ot","GLOBAL",7)
	IsValidForPartyDialogue("baeloth")  // Baeloth
	GlobalTimerExpired("bd_leaving_ot_timer","global")
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_leaving_ot","global",1)
		SetGlobal("bd_leaving_ot_baeloth","global",1)
		SetGlobalTimerRandom("bd_leaving_ot_timer","global",TWENTY_MINUTES,THIRTY_MINUTES)
		DisplayStringHead("baeloth",68883)  // When this wearisome wandering wraps up, I shall seek out my perilous pits post-haste. Nothing personal.
END

IF
	Global("bd_plot","global",10)
	Global("bd_mdd000te_ot","bd0120",0)
	NumDeadGT("Followers",4)
	CombatCounter(0)
THEN
	RESPONSE #100
		SetGlobal("bd_mdd000te_ot","bd0120",1)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Minsc","bd0120",0)
	IsValidForPartyDialogue("Minsc")  // Minsc
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Minsc","bd0120",1)
		DisplayStringHead("Minsc",45988)  // ...And that's why you don't side with evil! 
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Dynaheir","bd0120",0)
	IsValidForPartyDialogue("Dynaheir")  // Dynaheir
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Dynaheir","bd0120",1)
		DisplayStringHead("Dynaheir",45989)  // Poor defenders, these. Things will not get easier from here.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Rasaad","bd0120",0)
	IsValidForPartyDialogue("Rasaad")  // Rasaad
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Rasaad","bd0120",1)
		DisplayStringHead("Rasaad",45990)  // How many more must die before all know the folly of siding with a creature like Sarevok?
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Safana","bd0120",0)
	IsValidForPartyDialogue("Safana")  // Safana
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Safana","bd0120",1)
		DisplayStringHead("Safana",45991)  // It's going to take forever to get this blood off my boots...
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Viconia","bd0120",0)
	IsValidForPartyDialogue("Viconia")  // Viconia
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Viconia","bd0120",1)
		DisplayStringHead("Viconia",45992)  // They were fools to put their khaless in Sarevok, and paid the price for it.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Edwin","bd0120",0)
	IsValidForPartyDialogue("Edwin")  // Edwin
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Edwin","bd0120",1)
		DisplayStringHead("Edwin",45993)  // These simians will jabber no more.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Khalid","bd0120",0)
	IsValidForPartyDialogue("Khalid")  // Khalid
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Khalid","bd0120",1)
		DisplayStringHead("Khalid",45994)  // Their l-loyalty is ad-ad-admirable, if nothing e-else.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Jaheira","bd0120",0)
	IsValidForPartyDialogue("Jaheira")  // Jaheira
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Jaheira","bd0120",1)
		DisplayStringHead("Jaheira",45995)  // Korlasz doubtlessly knows we are here now. We must move quickly.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Dorn","bd0120",0)
	IsValidForPartyDialogue("Dorn")  // Dorn
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Dorn","bd0120",1)
		DisplayStringHead("Dorn",45996)  // It will take more blood than this to slake my thirst.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Neera","bd0120",0)
	IsValidForPartyDialogue("Neera")  // Neera
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Neera","bd0120",1)
		DisplayStringHead("Neera",45997)  // We are GOOD. We're almost too good.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Alora","bd0120",0)
	IsValidForPartyDialogue("Alora")  // Alora
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Alora","bd0120",1)
		DisplayStringHead("Alora",57716)  // That wasn't so bad, but it wasn't that good, either. I'll be happy to be out of this place.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Ajantis","bd0120",0)
	IsValidForPartyDialogue("Ajantis")  // Ajantis
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Ajantis","bd0120",1)
		DisplayStringHead("Ajantis",57717)  // Our cause is just. Helm watches over us.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Branwen","bd0120",0)
	IsValidForPartyDialogue("Branwen")  // Statue
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Branwen","bd0120",1)
		DisplayStringHead("Branwen",57718)  // The mage cannot be so foolish as to believe these sellswords would stay our progress.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Coran","bd0120",0)
	IsValidForPartyDialogue("Coran")  // Coran
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Coran","bd0120",1)
		DisplayStringHead("Coran",57719)  // A good start to some bad business.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Eldoth","bd0120",0)
	IsValidForPartyDialogue("Eldoth")  // Eldoth
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Eldoth","bd0120",1)
		DisplayStringHead("Eldoth",57720)  // I've lived in worse places than this, but never happily.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Faldorn","bd0120",0)
	IsValidForPartyDialogue("Faldorn")  // Faldorn
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Faldorn","bd0120",1)
		DisplayStringHead("Faldorn",57721)  // This place makes me uneasy. For the dead to reside in such rotted splendor... It goes against nature.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Garrick","bd0120",0)
	IsValidForPartyDialogue("Garrick")  // Garrick
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Garrick","bd0120",1)
		DisplayStringHead("Garrick",57722)  // I hope we face better opposition than this. I'm not above... enhancing certain events for the sake of drama, but I hate to make stories up out of whole cloth.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Kagain","bd0120",0)
	IsValidForPartyDialogue("Kagain")  // Kagain
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Kagain","bd0120",1)
		DisplayStringHead("Kagain",57723)  // That's what ye get, ye bloody great lumbering oxes! How'd ye like it?
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Kivan","bd0120",0)
	IsValidForPartyDialogue("Kivan")  // Kivan
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Kivan","bd0120",1)
		DisplayStringHead("Kivan",57724)  // Those guards are just the beginning. I can feel it.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Montaron","bd0120",0)
	IsValidForPartyDialogue("Montaron")  // Montaron
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Montaron","bd0120",1)
		DisplayStringHead("Montaron",57725)  // Live like a rat long enough, sooner or later you're gonna die like one.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Quayle","bd0120",0)
	IsValidForPartyDialogue("Quayle")  // Quayle
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Quayle","bd0120",1)
		DisplayStringHead("Quayle",57726)  // That's great. That's just fantastic. And here I thought we might make it an hour without senseless bloodshed. But no, no, here it comes, right on senseless schedule.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_SharTeel","bd0120",0)
	IsValidForPartyDialogue("sharteel")  // Shar-Teel
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_SharTeel","bd0120",1)
		DisplayStringHead("sharteel",57727)  // Let us press on. Our advantage is lost the longer we wait.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_SharTeel","bd0120",0)
	IsValidForPartyDialogue("Shar-Teel")
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_SharTeel","bd0120",1)
		DisplayStringHead("Shar-Teel",57727)  // Let us press on. Our advantage is lost the longer we wait.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Skie","bd0120",0)
	IsValidForPartyDialogue("Skie")  // Skie
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Skie","bd0120",1)
		DisplayStringHead("Skie",57728)  // I just stepped in something warm and slippery. Oh, gross, that's a face.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Tiax","bd0120",0)
	IsValidForPartyDialogue("Tiax")  // Tiax
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Tiax","bd0120",1)
		DisplayStringHead("Tiax",57729)  // Another victory for the champion of Cyric! Blood and souls for the Lord of Murder!
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Xan","bd0120",0)
	IsValidForPartyDialogue("Xan")  // Xan
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Xan","bd0120",1)
		DisplayStringHead("Xan",57730)  // We've done well thus far. How much longer do you think our luck can hold?
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Xzar","bd0120",0)
	IsValidForPartyDialogue("Xzar")  // Xzar
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Xzar","bd0120",1)
		DisplayStringHead("Xzar",57731)  // I'm not mad, you know. I'm angry, but that's... it's not the same thing, really.
		Wait(5)
END

IF
	Global("bd_plot","global",10)
	GlobalGT("bd_mdd000te_ot","bd0120",0)
	GlobalLT("bd_mdd000te_ot","bd0120",3)
	Global("bd_mdd000te_ot_Yeslick","bd0120",0)
	IsValidForPartyDialogue("Yeslick")  // Yeslick
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		IncrementGlobal("bd_mdd000te_ot","bd0120",1)
		SetGlobal("bd_mdd000te_ot_Yeslick","bd0120",1)
		DisplayStringHead("Yeslick",57732)  // Is that it? I've better things to do with my time than freeze me arse off in some dank, smelly hole.
		Wait(5)
END

IF
	Global("BD_SPAWN_BATS","BD0120",0)
	OR(6)
		NearLocation(Player1,1911,939,5)
		NearLocation(Player2,1911,939,5)
		NearLocation(Player3,1911,939,5)
		NearLocation(Player4,1911,939,5)
		NearLocation(Player5,1911,939,5)
		NearLocation(Player6,1911,939,5)
THEN
	RESPONSE #100
		CreateCreature("BDBATOUT",[1264.887],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1260.933],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1304.955],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1344.912],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1313.868],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1205.862],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1164.862],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1198.928],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1221.995],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1161.919],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1269.834],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1109.889],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1189.934],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1088.987],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1109.1044],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1146.1111],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1215.1120],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1247.1095],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1271.1057],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1287.1001],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1293.950],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1294.897],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		SmallWait(8)
		CreateCreature("BDBATOUT",[1277.854],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1230.826],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1166.817],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1133.866],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1131.913],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1137.952],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		SmallWait(8)
		CreateCreature("BDBATOUT",[1146.1000],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1175.1023],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1214.1003],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1229.962],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		CreateCreature("BDBATOUT",[1222.916],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2531.547]))
		CreateCreature("BDBATOUT",[1207.884],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2529.596]))
		CreateCreature("BDBATOUT",[1174.879],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2534.642]))
		CreateCreature("BDBATOUT",[1179.925],SE)  // Bat
		ActionOverride("BDBATOUT",SaveLocation("LOCALS","goal",[2522.503]))
		SetGlobal("BD_SPAWN_BATS","BD0120",1)
END

IF
	Global("BDSH_Rope","GLOBAL",1)
	Global("BD_Rope_Active","MYAREA",0)
	TriggerOverride("Tranbd0130rope",Range([PC],15))
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BD_Rope_Active","MYAREA",1)
		Unlock("DOOR01")
		TriggerActivation("Tranbd0130rope",TRUE)
		DisplayStringHead("Tranbd0130rope",64372)  // A rope leads down into the chasm.
		AddMapNoteColor([826.1010],64540,GREEN)  // Rope
		SetInterrupt(TRUE)
END

IF
	Global("BD_Init_CAI","BD0120",0)
	Global("SOD_fromimport","global",0)
	GlobalGT("bd_plot","global",9)
THEN
	RESPONSE #100
		SetGlobal("BD_Init_CAI","BD0120",1)
		ActionOverride(Player1,ChangeAIScript("BDDEFAI",CLASS))
END

IF
	False()
	Global("BD_Init_Save","BD0120",0)
	GlobalGT("bd_plot","global",9)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BD_Init_Save","BD0120",1)
		SetGlobal("BD_Chapter_Save","GLOBAL",7)
		SetInterrupt(TRUE)
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",3)
	!InMyArea("Imoen")  // Imoen
	!Global("C#st_ImoenInGroupKD","GLOBAL",1)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		CreateCreature("bdshimoe",[995.1610],W)  // Imoen
		SetInterrupt(TRUE)
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",3)
	!Dead("bdff1000")  // Flaming Fist Healer
	!InMyArea("bdff1000")  // Flaming Fist Healer
THEN
	RESPONSE #100
		CreateCreature("bdff1000",[869.1738],NE)  // Flaming Fist Healer
		Continue()
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",3)
	!Dead("bdff1001")  // Flaming Fist Mercenary
	!InMyArea("bdff1001")  // Flaming Fist Mercenary
THEN
	RESPONSE #100
		CreateCreature("bdff1001",[866.1543],SE)  // Flaming Fist Mercenary
		Continue()
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",3)
	!Dead("bdff1002")  // Flaming Fist Mercenary
	!InMyArea("bdff1002")  // Flaming Fist Mercenary
THEN
	RESPONSE #100
		CreateCreature("bdff1002",[919.1545],S)  // Flaming Fist Mercenary
		Continue()
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",3)
	Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
	!Dead("bdkorlas")  // Korlasz
	!InMyArea("bdkorlas")  // Korlasz
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		CreateCreature("BDSHKORL",[810.1530],S)  // Korlasz
		SetInterrupt(TRUE)
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",1)
	Global("BDSH_Imoen_Room","BD0120",0)
	TriggerOverride("Imoen_Room1b",Detect([PC]))
	!TriggerOverride("Card_Table",Detect([PC]))
	!TriggerOverride("Card_Table",Detect([EVILCUTOFF]))
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BDSH_Imoen_Room","BD0120",1)
		SetGlobal("C#st_ImoenMoveInCrypt","GLOBAL",1)
		ActionOverride("bdff1000",JumpToPoint([1645.1520]))
		ActionOverride("bdff1000",Face(NE))
		ActionOverride("bdff1001",JumpToPoint([1785.1375]))
		ActionOverride("bdff1001",Face(NE))
		ActionOverride("bdff1002",JumpToPoint([1722.1341]))
		ActionOverride("bdff1002",Face(NE))
		ActionOverride("bdff1000",SaveObjectLocation("LOCALS","DEFAULT",Myself))
		ActionOverride("bdff1001",SaveObjectLocation("LOCALS","DEFAULT",Myself))
		ActionOverride("bdff1002",SaveObjectLocation("LOCALS","DEFAULT",Myself))
		SetInterrupt(TRUE)
END

IF
	Global("BDSH_Imoen_Floor","GLOBAL",1)
	Global("BDSH_Imoen_Room","BD0120",1)
	!TriggerOverride("Imoen_room2",Detect([PC]))
	!TriggerOverride("Imoen_room2",Detect([EVILCUTOFF]))
	!TriggerOverride("Imoen_room1a",Detect([PC]))
	!TriggerOverride("Card_Table",Detect([PC]))
	!TriggerOverride("Imoen_room2a",Detect([PC]))
	!TriggerOverride("Imoen_room2b",Detect([PC]))
	!Dead("bdkorlas")  // Korlasz
	!Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BDSH_Imoen_Room","BD0120",2)
		SetGlobal("C#st_ImoenMoveInCrypt","GLOBAL",2)
		ActionOverride("bdff1000",JumpToPoint([1610.640]))
		ActionOverride("bdff1000",Face(NE))
		ActionOverride("bdff1001",JumpToPoint([1560.570]))
		ActionOverride("bdff1001",Face(E))
		ActionOverride("bdff1002",JumpToPoint([1720.650]))
		ActionOverride("bdff1002",Face(NW))
		ActionOverride("bdff1000",SaveObjectLocation("LOCALS","DEFAULT",Myself))
		ActionOverride("bdff1001",SaveObjectLocation("LOCALS","DEFAULT",Myself))
		ActionOverride("bdff1002",SaveObjectLocation("LOCALS","DEFAULT",Myself))
		SetInterrupt(TRUE)
END

IF
	OR(2)
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
		Global("BD_PORIOS_SURRENDER","GLOBAL",1)
	Global("BD_PDOOR","MYAREA",0)
	OpenState("Door03",TRUE)
	InMyArea("BDPORIOS")  // Porios
THEN
	RESPONSE #100
		SetGlobal("BD_PDOOR","MYAREA",1)
		OpenDoor("Door03")
END

IF
	Global("BD_Restin","MYAREA",0)
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BD_Restin","MYAREA",1)
		SetRestEncounterProbabilityDay(0)
		SetRestEncounterProbabilityNight(0)
		SetInterrupt(TRUE)
END

IF
	TriggerOverride("Ff_camp",IsOverMe(Player1))
	TriggerOverride("Ff_camp",IsOverMe("viconia"))  // Viconia
	Global("bd_leaving2_ot_viconia","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("viconia")  // Viconia
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_viconia","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("viconia",51913)  // Take care, "hero" of Baldur's Gate. You are not like these others.
		DisplayStringWait("viconia",57869)  // They love you now because you serve their purpose. Should that change, they will turn on you as certainly as the dawn follows night.
END

IF
	Global("bd_leaving2_ot_minsc","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("Dynaheir")  // Dynaheir
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(125)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_minsc","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("Dynaheir",51910)  // I have learned much during our time together. It is past time I communicated that knowledge to my sisters.
		SetGlobalTimer("bd_leaving2_minsc_reply","global",TWO_MINUTES)
END

IF
	Global("bd_leaving2_ot_minsc","global",1)
	CombatCounter(0)
	IsValidForPartyDialogue("Minsc")  // Minsc
	!GlobalTimerExpired("bd_leaving2_minsc_reply","global")
THEN
	RESPONSE #100
		SetGlobal("bd_leaving2_ot_minsc","global",2)
		DisplayStringWait("Minsc",51911)  // The friendship of Minsc and Boo travels with you.
		DisplayStringWait("Minsc",70026)  // You cannot see it, but it is always there. And sometimes smells of lemons.
END

IF
	Global("bd_leaving2_ot_rasaad","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("rasaad")  // Rasaad
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_rasaad","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("rasaad",51912)  // My brother's death has left me with little stomach for violence.
		DisplayStringWait("rasaad",57865)  // If Sarevok's co-conspirators are truly done, then I am free at last to engage in more benevolent pursuits.
END

IF
	Global("bd_leaving2_ot_edwin","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("edwin")  // Edwin
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_edwin","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("edwin",51921)  // I foresee great tedium in your future. I do not care for it.
END

IF
	Global("bd_leaving2_ot_jaheira","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("jaheira")  // Jaheira
	IsValidForPartyDialogue("khalid")  // Khalid
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_jaheira","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("jaheira",51922)  // Now that the servants of Sarevok have finally been eliminated, we can spend more time together, Khalid.
		DisplayStringWait("khalid",51923)  // That s-sounds wonderful.
END

IF
	Global("bd_leaving2_ot_jaheira","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("jaheira")  // Jaheira
	!IsValidForPartyDialogue("khalid")  // Khalid
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	Dead("bdkorlas")  // Korlasz
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_jaheira","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("jaheira",64921)  // Sarevok and all his servants are dead, and you are not. I think I have fulfilled my promise to Gorion.
END

IF
	Global("bd_leaving2_ot_neera","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("neera")  // Neera
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_neera","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("neera",51940)  // I need a break, <CHARNAME>. All this dungeon... eering—it's wearing me down.
END

IF
	Global("bd_leaving2_ot_ajantis","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("ajantis")  // Ajantis
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_ajantis","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("ajantis",57802)  // Though it makes my heart heavy, I must soon return to Waterdeep.
		DisplayStringWait("ajantis",57880)  // Only there may I learn whether I have earned full membership in the Most Noble Order of the Radiant Heart.
END

IF
	Global("bd_leaving2_ot_alora","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("alora")  // Alora
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(125)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_alora","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("alora",57804)  // I don't think I'll be coming back to the Ducal Palace with you, <CHARNAME>.
		DisplayStringWait("alora",70027)  // There are so many new folk in the city now—I'm going to spend some time with them.
		DisplayStringWait("alora",57805)  // Hey, if the palace butler asks where that vase is, tell him I have no idea what he's talking about.
END

IF
	Global("bd_leaving2_ot_coran","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("coran")  // Coran
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_coran","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("coran",57809)  // Saving the Sword Coast has been an enjoyable distraction, but other distractions await me. We will soon part ways, I think.
END

IF
	Global("bd_leaving2_ot_eldoth","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("eldoth")  // Eldoth
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(150)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_eldoth","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("eldoth",57811)  // As much as I've enjoyed our time together, I can't help but think I'd have enjoyed it more in the company of others.
		DisplayStringWait("eldoth",57890)  // Soon I shall take my leave.
		SetGlobalTimer("bd_leaving2_skie_reply","global",TWO_MINUTES)
END

IF
	Global("bd_leaving2_ot_eldoth","global",1)
	CombatCounter(0)
	IsValidForPartyDialogue("skie")  // Skie
	IsValidForPartyDialogue("eldoth")  // Eldoth
	!GlobalTimerExpired("bd_leaving2_skie_reply","global")
THEN
	RESPONSE #100
		SetGlobal("bd_leaving2_ot_eldoth","global",2)
		DisplayStringWait("skie",57813)  // Where shall we go now, darling Eldoth?
		DisplayStringWait("eldoth",57814)  // "We"? I suppose we should talk about that. Later. Not now. Let's not ruin the moment with bitter words.
		DisplayStringWait("skie",57815)  // Uhhh... All right. I think.
END

IF
	Global("bd_leaving2_ot_faldorn","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("faldorn")  // Faldorn
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_faldorn","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("faldorn",57816)  // There are too many people in the city now. It's... unnatural. It is time I returned to the Cloakwood—in truth, it is past time.
END

IF
	Global("bd_leaving2_ot_garrick","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("garrick")  // Garrick
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(125)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_garrick","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("garrick",66939)  // I'm kind of tired of packing and unpacking, town to town, up and down the Sword Coast.
		DisplayStringWait("garrick",70028)  // Maybe you and I were never meant to be, but, <CHARNAME>, think of me once in a while.
		DisplayStringWait("garrick",57818)  // Now that we've finished up with Korlasz, I'll be leaving you to seek employment at the nearest public house that will have me. Perhaps the Elfsong...
END

IF
	Global("bd_leaving2_ot_kagain","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("kagain")  // Kagain
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_kagain","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("kagain",57820)  // This has been profitable and I suppose enjoyable enough, <CHARNAME>, but these dolts are beginning to wear me out.
		DisplayStringWait("kagain",57899)  // Best I be heading back to my shop soon, I think.
END

IF
	Global("bd_leaving2_ot_kivan","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("kivan")  // Kivan
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_kivan","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("kivan",57822)  // Tazok is dead, Deheriana avenged. It's been too long since I was amongst the trees of Shilmista. I yearn to return home.
END

IF
	Global("bd_leaving2_ot_montaron","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("montaron")  // Montaron
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_montaron","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("montaron",57824)  // Ye're good enough company, <CHARNAME>, but this hero business don't be sittin' well with me.
END

IF
	Global("bd_leaving2_ot_quayle","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("quayle")  // Quayle
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_quayle","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("quayle",57826)  // You are amusing enough, <CHARNAME>, but you attract idiots like a corpse does flies. They give me a headache.
END

IF
	Global("bd_leaving2_ot_sharteel","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("sharteel")  // Shar-Teel
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_sharteel","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("sharteel",57828)  // I pledged my sword to you on a 20 gold piece bet.
		DisplayStringWait("sharteel",57908)  // I'm thinking I've done 20 gold's service or more this night alone, never mind these past months. I'll be on my way soon.
END

IF
	Global("bd_leaving2_ot_sharteel","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("shar-teel")
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_sharteel","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("shar-teel",57828)  // I pledged my sword to you on a 20 gold piece bet.
		DisplayStringWait("shar-teel",57908)  // I'm thinking I've done 20 gold's service or more this night alone, never mind these past months. I'll be on my way soon.
END

IF
	Global("bd_leaving2_ot_eldoth","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("skie")  // Skie
	!IsValidForPartyDialogue("eldoth")  // Eldoth
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_eldoth","global",2)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("skie",57830)  // I miss Eldoth. I miss baths. I miss nice clothes. I miss a lot of things.
END

IF
	Global("bd_leaving2_ot_tiax","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("tiax")  // Tiax
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_tiax","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("tiax",57832)  // Tiax sees what you are doing, <CHARNAME>. And Tiax doesn't like it. Tiax doesn't like it at ALL. NO!
		DisplayStringWait("tiax",57913)  // Someday, Tiax will fulfill his destiny and rule over all. On that day, you shall meet Tiax again, and then, THEN you shall know Tiax in all his glory.
END

IF
	Global("bd_leaving2_ot_xan","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("xan")  // Xan
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(75)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_xan","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("xan",57834)  // I've endured your idiosyncrasies quite long enough, <CHARNAME>, but this is the last tomb you, or anyone, will lure me into
END

IF
	Global("bd_leaving2_ot_xzar","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("xzar")  // Xzar
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_xzar","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("xzar",57836)  // This night notwithstanding, the number of deaths in your vicinity has decreased notably of late, <CHARNAME>.
		DisplayStringWait("xzar",57917)  // This is good for you, I suppose, but a villain like myself has no place beside the hero of Baldur's Gate.
END

IF
	Global("bd_leaving2_ot_yeslick","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("yeslick")  // Yeslick
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_yeslick","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("yeslick",57838)  // The Iron Throne is no more and the Orothair's honor is restored.
		DisplayStringWait("yeslick",57919)  // Now, perhaps, I can rest—or try to, at least. Come morning, I shall leave, <CHARNAME>.
END

IF
	Global("bd_leaving2_ot_baeloth","global",0)
	CombatCounter(0)
	GlobalGT("bd_leaving2_ot","GLOBAL",0)
	GlobalLT("bd_leaving2_ot","GLOBAL",7)
	IsValidForPartyDialogue("baeloth")  // Baeloth
	GlobalTimerExpired("bd_leaving2_ot_timer","global")
	OR(2)
		Dead("bdkorlas")  // Korlasz
		Global("BD_KORLASZ_SURRENDER","GLOBAL",1)
THEN
	RESPONSE #200
		Continue()
	RESPONSE #100
		BanterBlockTime(100)
		IncrementGlobal("bd_leaving2_ot","global",1)
		SetGlobal("bd_leaving2_ot_baeloth","global",1)
		SetGlobalTimerRandom("bd_leaving2_ot_timer","global",EIGHT_MINUTES,THIRTEEN_MINUTES)
		DisplayStringWait("baeloth",57920)  // I've enjoyed our association, <CHARNAME>, but it's increasingly apparent my ambitions aren't adequately accommodated by Baldur's Gate.
		DisplayStringWait("baeloth",57923)  // Consider this my curtain call.
END

IF
	GlobalGT("bd_mummy_plot","global",0)
	Global("BD_Mummy_Allies","MYAREA",0)
	!Dead("BDMUMMY")  // Fanegonorom
	Allegiance("BDMUMMY",EVILCUTOFF)  // Fanegonorom
	Difficulty(HARDEST)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BD_Mummy_Allies","MYAREA",1)
		CreateVisualEffect("BDRAISED",[1590.390])
		CreateVisualEffect("BDRAISED",[1730.230])
		SmallWait(5)
		CreateVisualEffect("BDRAISED",[1815.495])
		CreateVisualEffect("BDRAISED",[1940.315])
		SmallWait(5)
		CreateVisualEffect("SPPLANAR",[1700.460])
		CreateVisualEffect("SPPLANAR",[1830.280])
		Wait(2)
		CreateCreature("BDSKGR04",[1590.390],E)  // Skeleton Archer
		CreateCreature("BDSKGR04",[1730.230],SE)  // Skeleton Archer
		SmallWait(5)
		CreateCreature("BDSKGR01",[1815.495],NW)  // Armored Skeleton
		CreateCreature("BDSKGR01",[1940.315],W)  // Armored Skeleton
		SmallWait(5)
		CreateCreature("BDBONBAT",[1700.460],NE)  // Bonebat
		CreateCreature("BDBONBAT",[1830.280],SE)  // Bonebat
		SetInterrupt(TRUE)
END

IF
	GlobalGT("bd_mummy_plot","global",0)
	Global("BD_Mummy_Allies","MYAREA",0)
	!Dead("BDMUMMY")  // Fanegonorom
	Allegiance("BDMUMMY",EVILCUTOFF)  // Fanegonorom
	Difficulty(HARD)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BD_Mummy_Allies","MYAREA",1)
		CreateVisualEffect("BDRAISED",[1590.390])
		CreateVisualEffect("BDRAISED",[1730.230])
		SmallWait(5)
		CreateVisualEffect("BDRAISED",[1815.495])
		CreateVisualEffect("BDRAISED",[1940.315])
		Wait(2)
		CreateCreature("BDSKGR04",[1590.390],E)  // Skeleton Archer
		CreateCreature("BDSKGR04",[1730.230],SE)  // Skeleton Archer
		SmallWait(5)
		CreateCreature("BDSKGR01",[1815.495],NW)  // Armored Skeleton
		CreateCreature("BDSKGR01",[1940.315],W)  // Armored Skeleton
		SetInterrupt(TRUE)
END

IF
	GlobalGT("bd_mummy_plot","global",0)
	Global("BD_Mummy_Allies","MYAREA",0)
	!Dead("BDMUMMY")  // Fanegonorom
	Allegiance("BDMUMMY",EVILCUTOFF)  // Fanegonorom
	Difficulty(NORMAL)
THEN
	RESPONSE #100
		SetInterrupt(FALSE)
		SetGlobal("BD_Mummy_Allies","MYAREA",1)
		CreateVisualEffect("BDRAISED",[1590.390])
		SmallWait(5)
		CreateVisualEffect("BDRAISED",[1730.230])
		Wait(2)
		CreateCreature("BDSKGR04",[1590.390],E)  // Skeleton Archer
		SmallWait(5)
		CreateCreature("BDSKGR04",[1730.230],SE)  // Skeleton Archer
		SetInterrupt(TRUE)
END

IF
	Global("BD_SMIMP","MYAREA",0)
	!StoryModeOn()
THEN
	RESPONSE #100
		SetGlobal("BD_SMIMP","MYAREA",1)
		ReallyForceSpellDeadRES("OHSMODE3",Player1)  // No such index
		ReallyForceSpellDeadRES("OHSMODE3",Player2)  // No such index
		ReallyForceSpellDeadRES("OHSMODE3",Player3)  // No such index
		ReallyForceSpellDeadRES("OHSMODE3",Player4)  // No such index
		ReallyForceSpellDeadRES("OHSMODE3",Player5)  // No such index
		ReallyForceSpellDeadRES("OHSMODE3",Player6)  // No such index
		Continue()
END

 

Edited by Mike1072
added spoiler tag

Share this post


Link to post
Guest LZenn

I finished BGEE and moved into SoD again and still no Imoen in my group, so I used ctrl-q to force her in and then modified her in EEKeeper.  So far it's working.

On a side note:  I so wish there was a Tweaks for SoD.  It's down right painful going back to ordinary after some of its useful modifications.

Share this post


Link to post
Guest LZenn

I finished BGEE and moved into SoD again and still no Imoen in my group, so I used ctrl-q to force her in and then modified her in EEKeeper.  So far it's working.

On a side note:  I so wish there was a Tweaks for SoD.  It's down right painful going back to ordinary after some of its useful modifications.

Share this post


Link to post

Sorry for letting you hang there, I meant to reply earlier.

On 11/28/2019 at 11:34 PM, Guest LZenn said:

Lines of warnings are 2,7,9,33,34,46,47 all dealing with "%IMOEN_DV_SOD%" as either an object, a target, or an actor.

...which sounds like a really stupid mistake on my side. I'll try to have a look at this today.

Share this post


Link to post
Guest LZenn
Quote

On a side note:  I so wish there was a Tweaks for SoD.  It's down right painful going back to ordinary after some of its useful modifications.

I just realized it IS compatible with SoD.  I'm SO happy!  LOL

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...