//Dynaheir Firewine
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR3400")
Global("X#DYINT1","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#DYINT1","GLOBAL",1)
Dialogue(Player1)
END

// Dynaheir, Shandalar's Girls Dead
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR7245")
Global("DSGD","GLOBAL",0)
OR(3)
Dead("Delorna")
Dead("Ithmeera")
Dead("Helshara")
THEN
RESPONSE #100
SetGlobal("DSGD","GLOBAL",1)
Dialogue(Myself)
END


// Dynaheir, Back At Candlekeep
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR6526")
Global("Chapter","GLOBAL",6)
PartyHasItem("BOOK68")
Global("DBAC","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("DBAC","GLOBAL",1)
END

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("DBAC","GLOBAL",1)
!PartyHasItem("BOOK68")
THEN
RESPONSE #100
SetGlobal("DBAC","GLOBAL",2)
StartDialogueNoSet(Player1)
END


// Dynaheir, Gazib Fled, Oopah Left   
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("DGFOL","GLOBAL",0)
Dead("Oopah2")
AreaCheck("AR3800")
THEN
RESPONSE #100
SetGlobal("DGFOL","GLOBAL",1)
Dialogue(Myself)
END

//EdwinKilledBosses
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
InParty("Edwin")
Global("EdwinBetrayRW","GLOBAL",1)
Dead("brendan")
Dead("lasala")
Dead("diana")
Dead("denak")
AreaCheck("AR9100")
THEN
RESPONSE #100
SetGlobal("EdwinBetrayRW","GLOBAL",3)
ActionOverride("edwin", Interact(Player1))
END

//For Ajantis

IF
AreaCheck("AR4100")
!InParty(Myself)
Global("X#PartyAttackedDynaheir","GLOBAL",0)
OR(2)
!GlobalTimerExpired("Edwin","GLOBAL") //Edwin help promise = yes
Global("FindDynaheir","GLOBAL",1) // " " " " 
AttackedBy([GOODCUTOFF],DEFAULT)
THEN
RESPONSE #100
SetGlobal("X#PartyAttackedDynaheir","GLOBAL",1)
END





