// Jaheira, Upon Entering Basilisk Area East Of The Temple (AR3500)
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR9400")
Global("JUEBAEOTT","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JUEBAEOTT","GLOBAL",1)
Dialog(Myself)
END

// Jaheira, Upon Entering Cloakwood, Area Two (AR2100)
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR8800")
Global("JUECAT","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JUECAT","GLOBAL",1)
Dialog(Myself)
END


// Jaheira, Upon Entering Cloakwood, Area Four (AR1700)
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR8500")
Global("JUECAF","GLOBAL",0)
InParty("Coran")
See("Coran")
THEN
RESPONSE #100
SetGlobal("JUECAF","GLOBAL",1)
Dialog(Myself)
END

// Jaheira, Upon Entering Ankheg Area North Of Friendly Arm Inn (AR1400)
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR8300")
Global("JUEAANOFAI","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JUEAANOFAI","GLOBAL",1)
Dialog(Myself)
END

//Jaheira sees Osmadi
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR9000")
Global("JAIOsmadi","GLOBAL",0)
See("osmadi")
THEN
RESPONSE #100
SetGlobal("JAIOsmadi","GLOBAL",1)
StartDialogueNoSet(Myself)
END

//dead osmadi
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR9000")
Global("JAIOsmadi","GLOBAL",2)
Dead("osmadi")
THEN
RESPONSE #100
SetGlobal("JAIOsmadi","GLOBAL",3)
StartDialogueNoSet(Myself)
END

//Jaheira enter ShD territory
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR8400")
Global("JAIShadowDruids","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JAIShadowDruids","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Jaheira Faldorn Interject
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR8400")
Global("JaiFaldorn","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("JaiFaldorn","GLOBAL",2)
StartDialogueNoSet(Player1)
END

//Jaheira Koveras
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR6508")
Global("TalkedToKoveras","GLOBAL",1)
Global("JaiKoveras","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JaiKoveras","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Jaheira  Sirens

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
OR(2)
AreaCheck("AR9200")
AreaCheck("AR9500")
Global("JAISirene","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JAISirene","GLOBAL",1)
StartDialogueNoSet(Myself)
END

//Jaheira after Durlag tower and demonknights slain
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("ARD000")
Dead("deathk")
Global("X#JaheiraDemon","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#JaheiraDemon","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Korax Turns Hostile
IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("X#KoraxCharmedJah","GLOBAL",1)
Allegiance("x#korax",ENEMY)
THEN
RESPONSE #100
SetGlobal("X#KoraxCharmedJah","GLOBAL",2)
StartDialogueNoSet(Player1)
END

//Helping Perdue

IF
AreaCheck("FW6757")
InParty(Myself) CombatCounter(0) !See([ENEMY])
Global("HelpPerdue","GLOBAL",1)
Global("X#JahOpinionOnHelpPerdue","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#JahOpinionOnHelpPerdue","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Killed Aec'Tec

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("ARU000")
Dead("tanar")
Global("X#JaheiraTanar","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#JaheiraTanar","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Killed Kaisha

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("ARW500")
Dead("kaish2")
Global("X#JaheiraKaisha","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#JaheiraKaisha","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Killed Mendas

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("ARU004")
Dead("mendas3")
Global("X#JaheiraMendas","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#JaheiraMendas","GLOBAL",1)
StartDialogueNoSet(Player1)
END

//Jaheira UNdercity

IF
InParty(Myself) CombatCounter(0) !See([ENEMY])
AreaCheck("AR7223")
Global("X#JahUndercity","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("X#JahUndercity","GLOBAL",1)
StartDialogueNoSet(Player1)
END
