IF
	Global("KryllExists","AR5500",1)
	Global("MoveKryllParty","AR5500",0)
	!Dead("KRYLL")
THEN
	RESPONSE #100
		ActionOverride("KRYLL",JumpToPoint([406.1593])) // Kryll
		ActionOverride("RICK",JumpToPoint([344.1600])) // Rick
		ActionOverride("SHANE",JumpToPoint([514.1614])) // Shane
		ActionOverride("DARYL",JumpToPoint([438.1675])) // Daryl
		ActionOverride("GLENN",JumpToPoint([335.1686])) // Glenn
		ActionOverride("LORI",JumpToPoint([243.1677])) // Lori
		SetGlobal("MoveKryllParty","AR5500",1)
		Continue()
END

IF
	Global("TalkedJeremy","GLOBAL",1)
	Global("BardoSpawn","GLOBAL",0)
THEN
	RESPONSE #100
		CreateCreature("BARDO",[2990.1630],5)
		SetGlobal("BardoSpawn","GLOBAL",1)
END

IF
	PartyHasItem("CURELC01") // Ancient Relic of Lathander
        Global("TBGDragonDead","GLOBAL",1)
	Global("TorquilSpawn","GLOBAL",0)
THEN
	RESPONSE #100
		CreateCreature("TORQUIL",[2783.1581],0) // Torquil
		SetGlobal("TorquilSpawn","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",1)
	Global("CuChoinneach","GLOBAL",0)
	Global("VampireDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",FALSE)
		TriggerActivation("DorC001b",FALSE)
		SetGlobal("VampireDoor","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",2)
	Global("CuChoinneach","GLOBAL",0)
	Global("VampireDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",FALSE)
		TriggerActivation("DorC001b",FALSE)
		SetGlobal("VampireDoor","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",3)
	Global("CuChoinneach","GLOBAL",0)
	Global("VampireDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",FALSE)
		TriggerActivation("DorC001b",FALSE)
		SetGlobal("VampireDoor","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",4)
	Global("CuChoinneach","GLOBAL",0)
	Global("VampireDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",FALSE)
		TriggerActivation("DorC001b",FALSE)
		SetGlobal("VampireDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("CuChoinneach","GLOBAL",0)
	Global("VampireDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",FALSE)
		TriggerActivation("DorC001b",FALSE)
		SetGlobal("VampireDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("CuChoinneach","GLOBAL",1)
	Global("VampireDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",TRUE)
		TriggerActivation("DorC001b",TRUE)
		SetGlobal("VampireDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("CuChoinneach","GLOBAL",1)
	Global("VampireDoor","GLOBAL",1)
THEN
	RESPONSE #100
		TriggerActivation("DorC001a",TRUE)
		TriggerActivation("DorC001b",TRUE)
		SetGlobal("VampireDoor","GLOBAL",2)
		Continue()
END

IF
	Global("Chapter","GLOBAL",1)
	Global("Blane2Spawn","GLOBAL",0)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",FALSE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",2)
	Global("Blane2Spawn","GLOBAL",0)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",FALSE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",3)
	Global("Blane2Spawn","GLOBAL",0)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",FALSE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	Global("Chapter","GLOBAL",4)
	Global("Blane2Spawn","GLOBAL",0)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",FALSE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("Blane2Spawn","GLOBAL",0)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",FALSE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("Blane2Spawn","GLOBAL",1)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",FALSE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("Blane2Spawn","GLOBAL",1)
	Global("TalkedBlane","GLOBAL",1)
	Global("DragonDoor","GLOBAL",0)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",TRUE)
		SetGlobal("DragonDoor","GLOBAL",1)
		Continue()
END

IF
	GlobalGT("Chapter","GLOBAL",4)
	Global("Blane2Spawn","GLOBAL",1)
	Global("TalkedBlane","GLOBAL",1)
	Global("DragonDoor","GLOBAL",1)
THEN
	RESPONSE #100
		TriggerActivation("DoorC002",TRUE)
		SetGlobal("DragonDoor","GLOBAL",2)
		Continue()
END



