Posted 03 February 2006 - 09:41 PM
The departing dialog:
"Perhaps it is for the best. I would rather be somewhere else, as you appear to be somewhat of a lost cause. You have some of Gorion's sense, but little of his wisdom. Come, Khalid, there are better places for us than this."
after her departing,the variable X#JaheiraSen=16
Jaheira scripts
IF
InParty(Myself)
!Global("X#XARomanceInactive","GLOBAL",1)
Global("X#XARomanceActive","GLOBAL",2)
RealGlobalTimerExpired("X#XaReactionTime","GLOBAL")
Global("X#XAJARE","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("X#XaReactionTime","GLOBAL",2000)
IncrementGlobal("X#XAJARE","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
AreaCheck("AR8500")
Dead("jadruid8a")
Dead("jadruid8b")
Dead("jadruid6a")
Dead("jadruid6b")
Dead("jadruid6")
!See([ENEMY])
InParty(Myself)
!Dead("beador")
Global("X#JaheiraSen","GLOBAL",15)
THEN
RESPONSE #100
SetGlobal("X#JaheiraSen","GLOBAL",16)
StartDialogueNoSet(Player1)
END
IF
AreaCheck("AR8500")
Dead("jadruid8a")
Dead("jadruid8b")
Dead("jadruid6a")
Dead("jadruid6b")
Dead("jadruid6")
!See([ENEMY])
InParty(Myself)
Dead("beador")
Global("X#JaheiraSen","GLOBAL",15)
THEN
RESPONSE #100
SetGlobal("X#JaheiraSen","GLOBAL",21)
StartDialogueNoSet(Player1)
END
IF
OR(2)
AreaCheck("AR8400")
AreaCheck("AR8401")
InParty(Myself)
Global("X#JaheiraSen","GLOBAL",29)
THEN
RESPONSE #100
SetGlobal("X#JaheiraSen","GLOBAL",30)
StartDialogueNoSet(Player1)
END
IF
InParty("Jaheira")
Global("X#JaheiraSen","GLOBAL",17)
THEN
RESPONSE #100
ClearAllActions()
SetGlobal("X#JaheiraSen","GLOBAL",18)
StartCutSceneMode()
StartCutScene("X#JABE1")
END
IF
Dead("andarthe")
AreaCheck("AR8400")
InParty(Myself)
Global("X#AndSurrender","GLOBAL",3)
THEN
RESPONSE #100
SetGlobal("X#AndSurrender","GLOBAL",6)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
OR(2)
Global("X#JaheiraSen","GLOBAL",20)
Global("X#JaheiraSen","GLOBAL",22)
Global("FW1600X#AndartheExist","",0)
AreaCheck("AR8400")
THEN
RESPONSE #100
SetGlobal("FW1600X#AndartheExist","",1)
CreateCreature("X#ANDART",[874.2176],3) // Andarthe
CreateCreature("X#SHDR8A",[934.2174],3) // Druid - Druid of Cloakwood
END
IF
InParty(Myself)
AreaCheck("AR8401")
GlobalGT("X#JaheiraSen","GLOBAL",19)
Global("FW1601X#MarethaExist","",0)
THEN
RESPONSE #100
SetGlobal("FW1601X#MarethaExist","",1)
CreateCreature("X#MARETH",[369.273],3) // Maretha
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR9400")
Global("JUEBAEOTT","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JUEBAEOTT","GLOBAL",1)
Dialogue(Myself)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR8800")
Global("JUECAT","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JUECAT","GLOBAL",1)
Dialogue(Myself)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR8500")
Global("JUECAF","GLOBAL",0)
InParty("Coran")
See("Coran")
THEN
RESPONSE #100
SetGlobal("JUECAF","GLOBAL",1)
Dialogue(Myself)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR8300")
Global("JUEAANOFAI","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("JUEAANOFAI","GLOBAL",1)
Dialogue(Myself)
END
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
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
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR8400")
Global("JAIShadowDruids","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("JAIShadowDruids","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR8400")
Global("JaiFaldorn","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("JaiFaldorn","GLOBAL",2)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR6508")
Global("TalkedToKoveras","GLOBAL",1)
Global("JaiKoveras","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("JaiKoveras","GLOBAL",1)
StartDialogueNoSet(Player1)
END
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
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("ARD000")
Dead("deathk")
Global("X#JaheiraDemon","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#JaheiraDemon","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
Global("X#KoraxCharmedJah","GLOBAL",1)
Allegiance("x#korax",ENEMY)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#KoraxCharmedJah","GLOBAL",2)
StartDialogueNoSet(Player1)
END
IF
AreaCheck("AR6757")
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
Global("HelpPerdue","GLOBAL",1)
Global("X#JahOpinionOnHelpPerdue","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#JahOpinionOnHelpPerdue","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("ARU000")
Dead("tanar")
Global("X#JaheiraTanar","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#JaheiraTanar","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("ARW500")
Dead("kaish2")
Global("X#JaheiraKaisha","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#JaheiraKaisha","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("ARU004")
Dead("mendas3")
Global("X#JaheiraMendas","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#JaheiraMendas","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
AreaCheck("AR7223")
Global("X#JahUndercity","GLOBAL",0)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
SetGlobal("X#JahUndercity","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
Class(Player1,DRUID_ALL)
GlobalGT("Chapter","GLOBAL",2)
Global("X#SetJahDruid","GLOBAL",0)
Global("X#JaheiraDruidTalk","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("X#JADruidTalkTime","GLOBAL",SIX_HOURS)
SetGlobal("X#SetJahDruid","GLOBAL",1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
RealGlobalTimerExpired("X#JADruidTalkTime","GLOBAL")
!Global("X#JANoDruidAdvice","GLOBAL",1)
Global("X#SetJahDruid","GLOBAL",1)
Class(Player1,DRUID_ALL)
AreaType(FOREST)
OR(2)
Global("X#JaheiraDruidTalk","GLOBAL",0)
Global("X#JaheiraDruidTalk","GLOBAL",2)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
RealSetGlobalTimer("X#JADruidTalkTime","GLOBAL",1)
IncrementGlobal("X#JaheiraDruidTalk","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
RealGlobalTimerExpired("X#JADruidTalkTime","GLOBAL")
OR(2)
Global("X#JaheiraDruidTalk","GLOBAL",1)
Global("X#JaheiraDruidTalk","GLOBAL",3)
THEN
RESPONSE #100
RealSetGlobalTimer("X#JADruidTalkTime","GLOBAL",ONE_DAY)
IncrementGlobal("X#JaheiraDruidTalk","GLOBAL",1)
END
IF
InParty(Myself)
Global("X#JahVisitedCloackwood","GLOBAL",0)
AreaCheck("AR7000")
THEN
RESPONSE #100
SetGlobal("X#JahVisitedCloackwood","GLOBAL",1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
RealGlobalTimerExpired("X#JADruidTalkTime","GLOBAL")
!Global("X#JANoDruidAdvice","GLOBAL",1)
Global("X#SetJahDruid","GLOBAL",1)
Global("X#JahVisitedCloackwood","GLOBAL",1)
!AreaCheck("AR7000")
Class(Player1,DRUID_ALL)
AreaType(FOREST)
GlobalGT("Chapter","GLOBAL",3)
Global("X#JaheiraDruidTalk","GLOBAL",4)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
IncrementGlobal("X#JaheiraDruidTalk","GLOBAL",1)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
Global("DreamTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("DreamTalk","GLOBAL",THREE_TURNS)
SetGlobal("DreamTimerStarted","GLOBAL",1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
Global("JaPCTimerStarted","GLOBAL",0)
THEN
RESPONSE #100
RealSetGlobalTimer("JaFriendTalkTime","GLOBAL",SIX_HOURS)
SetGlobal("JaPCTimerStarted","GLOBAL",1)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
CombatCounter(0)
Global("JaFriendTalk","GLOBAL",0)
GlobalLT("X#IMGBody","GLOBAL",3)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END
IF
InParty(Myself)
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
Global("JaFriendTalk","GLOBAL",0)
!GlobalLT("X#IMGBody","GLOBAL",3)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",2)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
CombatCounter(0)
Global("JaFriendTalk","GLOBAL",2)
InParty("KHALID")
See("KHALID")
!StateCheck("KHALID",STATE_SLEEPING)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END
IF
InParty(Myself)
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
Global("JaFriendTalk","GLOBAL",2)
!InParty("KHALID")
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",2)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
RealGlobalTimerExpired("JaFriendlyTalkTime","GLOBAL")
OR(3)
Global("JaFriendTalk","GLOBAL",1)
Global("JaFriendTalk","GLOBAL",3)
Global("JaFriendTalk","GLOBAL",5)
THEN
RESPONSE #100
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendTalkTime","GLOBAL",18000)
END
IF
InParty(Myself)
CombatCounter(0)
!See([ENEMY])
RealGlobalTimerExpired("JaFriendTalkTime","GLOBAL")
!StateCheck(Player1,STATE_SLEEPING)
See(Player1)
Global("KnowBhaal","GLOBAL",1)
Global("JaFriendTalk","GLOBAL",4)
THEN
RESPONSE #100
PlaySong(0)
PlaySound("jahei99")
IncrementGlobal("JaFriendTalk","GLOBAL",1)
RealSetGlobalTimer("JaFriendlyTalkTime","GLOBAL",10)
Interact(Player1)
END
IF
Die()
GlobalLT("ENDOFBG1","GLOBAL",2)
THEN
RESPONSE #100
SetGlobal("JaheiraAlive","GLOBAL",0)
END
IF
Global("JaheiraAlive","GLOBAL",0)
GlobalLT("ENDOFBG1","GLOBAL",2)
THEN
RESPONSE #100
SetGlobal("JaheiraAlive","GLOBAL",1)
Continue()
END
IF
Dead("Xzar")
Dead("Montaron")
Global("Xzarfight","GLOBAL",2)
THEN
RESPONSE #100
SetGlobal("Xzarfight","GLOBAL",0)
DialogInterrupt(TRUE)
JoinParty()
END
IF
Global("Xzarfight","GLOBAL",2)
See("Khalid")
!Dead("Khalid")
HaveSpell(CLERIC_CURE_LIGHT_WOUNDS)
HPPercentLT("Khalid",50)
THEN
RESPONSE #100
Spell("Khalid",CLERIC_CURE_LIGHT_WOUNDS)
END
IF
Global("Xzarfight","GLOBAL",2)
HaveSpell(CLERIC_CURE_LIGHT_WOUNDS)
HPPercentLT(Myself,50)
THEN
RESPONSE #100
Spell(Myself,CLERIC_CURE_LIGHT_WOUNDS)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Xzar")
!Dead("Xzar")
HaveSpell(CLERIC_HOLD_PERSON)
!StateCheck("Xzar",STATE_SLEEPING)
!StateCheck("Xzar",STATE_HELPLESS)
THEN
RESPONSE #100
Spell("Xzar",CLERIC_HOLD_PERSON)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Xzar")
!Dead("Xzar")
HaveSpell(CLERIC_COMMAND)
!StateCheck("Xzar",STATE_SLEEPING)
!StateCheck("Xzar",STATE_HELPLESS)
THEN
RESPONSE #100
Spell("Xzar",CLERIC_COMMAND)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Xzar")
!Dead("Xzar")
HaveSpell(CLERIC_MAGIC_STONE)
THEN
RESPONSE #100
Spell("Xzar",CLERIC_MAGIC_STONE)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Xzar")
!Dead("Xzar")
HaveSpell(CLERIC_CALL_LIGHTNING)
THEN
RESPONSE #100
Spell("Xzar",CLERIC_CALL_LIGHTNING)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Xzar")
!Dead("Xzar")
THEN
RESPONSE #100
AttackReevaluate("Xzar",15)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Montaron")
!Dead("Montaron")
HaveSpell(CLERIC_HOLD_PERSON)
!StateCheck("Montaron",STATE_SLEEPING)
!StateCheck("Montaron",STATE_HELPLESS)
THEN
RESPONSE #100
Spell("Montaron",CLERIC_HOLD_PERSON)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Montaron")
!Dead("Montaron")
HaveSpell(CLERIC_COMMAND)
!StateCheck("Montaron",STATE_SLEEPING)
!StateCheck("Montaron",STATE_HELPLESS)
THEN
RESPONSE #100
Spell("Montaron",CLERIC_COMMAND)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Montaron")
!Dead("Montaron")
HaveSpell(CLERIC_MAGIC_STONE)
THEN
RESPONSE #100
Spell("Montaron",CLERIC_MAGIC_STONE)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Montaron")
!Dead("Montaron")
HaveSpell(CLERIC_CALL_LIGHTNING)
THEN
RESPONSE #100
Spell("Montaron",CLERIC_CALL_LIGHTNING)
END
IF
Global("Xzarfight","GLOBAL",2)
See("Montaron")
!Dead("Montaron")
THEN
RESPONSE #100
AttackReevaluate("Montaron",15)
END
IF
GlobalTimerExpired("Jaheira","GLOBAL")
Global("GoToNashkell","GLOBAL",0)
Global("Chapter","GLOBAL",2)
InParty(Myself)
THEN
RESPONSE #100
StartDialogueNoSet(Player1)
END
IF
GlobalTimerExpired("Jaheira","GLOBAL")
Global("GoToNashkell","GLOBAL",1)
Global("Chapter","GLOBAL",2)
InParty(Myself)
THEN
RESPONSE #100
StartDialogueNoSet(Player1)
END