// creator  : weidu.exe (version 23100)
// argument : SARSON01.DLG
// game		 : .
// source	 : ./override/SARSON01.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~SARSON01~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #2 /* Triggers after states #: 10 11 even though they appear after this state */
~OR(3)
Dead("sarkis01")
Dead("sarmag01")
Dead("sarcnt01")
~ THEN BEGIN 0 // from:
  SAY #64948 /* ~You... thank Waukeen someone found me!~ */
  IF ~~ THEN REPLY #64950 /* ~Are you Ardic Santele, son of the Countess?~ */ GOTO 1
  IF ~~ THEN REPLY #64951 /* ~Ardic Santele, I presume.~ */ GOTO 1
  IF ~~ THEN REPLY #64953 /* ~There will be time enough for thanks later.  Let's get you out of this prison.~ */ GOTO 3
  IF ~~ THEN REPLY #64955 /* ~Finally!  The reward for rescuing you better be worth all this trouble.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.1 0.0
  SAY #64956 /* ~Yes, I am Ardic Santele.  I never thought I would see the light of day again!~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 0.3
  SAY #64957 /* ~I am certain my mother, the Countess, will reward you more than adequately for rescuing me.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0 1.0 0.2
  SAY #64959 /* ~Let us leave this place at once, before Kiser Jhaeri arrives to check up on me.  I must tell my mother I yet live, then inform Captain Samand that Kiser is a traitor to Saradush!~ */
  IF ~Dead("sarkis01")
~ THEN REPLY #64961 /* ~Kiser Jhaeri is dead:  I killed him myself.~ */ GOTO 4
  IF ~Dead("sarmag01")
~ THEN REPLY #64962 /* ~Kiser Jhaeri will not bother you anymore.  I made a deal with him for your release.~ */ GOTO 5
  IF ~Dead("sarcnt01")
~ THEN REPLY #64965 /* ~Your mother is dead, Ardic.  I killed her myself.~ */ GOTO 8
  IF ~Dead("sarcnt01")
~ THEN REPLY #64966 /* ~I am sorry to tell you that your mother is dead, Ardic.~ */ GOTO 9
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #64968 /* ~Dead?  Then... I thank you, on behalf of all the citizens of Saradush.  There is much I must do. Thank you once again.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
SetGlobal("ArdicSaved","GLOBAL",1)
AddXP2DA("Plot8A")
EraseJournalEntry(65015)
EraseJournalEntry(65028)
EraseJournalEntry(65031)
EraseJournalEntry(65034)
EraseJournalEntry(65038)
EraseJournalEntry(65041)
EraseJournalEntry(65049)
FadeToColor([30.0],0)
//MoveToPoint([527.406])
FadeFromColor([30.0],0)
EndCutSceneMode()
DestroySelf()
~ SOLVED_JOURNAL #65051 /* ~Betrayal at the Gates

Kiser Jhaeri is dead and Ardic is free.  His testimony will exonerate Mateo, and the Countess will likely give me a nice reward for my efforts.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1
  SAY #64970 /* ~A... deal?  What kind of deal did that snake make?~ */
  IF ~~ THEN REPLY #64971 /* ~The price of your freedom was the death of the wizard Errard.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #64972 /* ~You murdered Erarrd to save me?  You would have been better off leaving me here to die!~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #64974 /* ~Without Errard on the walls, Saradush is doomed.  Kiser has succeeded in his treachery!  I... I must go and tell the Captain.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
AddXP2DA("Plot8B")
SetGlobal("ByeSarMat01","GLOBAL",1)
FadeToColor([30.0],0)
//MoveToPoint([527.406])
FadeFromColor([30.0],0)
EndCutSceneMode()
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 3.2
  SAY #64976 /* ~You killed... you monster!  I will avenge her death!~ */
  IF ~~ THEN DO ~DestroyItem("bumpring")
SetGlobal("ByeSarMat01","GLOBAL",1)
Enemy()~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 3.3
  SAY #64977 /* ~My mother... dead?  No!  It must not be!  I... I must see to her remains.  Please... please excuse me.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
AddXP2DA("Plot8B")
SetGlobal("ByeSarMat01","GLOBAL",1)
FadeToColor([30.0],0)
//MoveToPoint([527.406])
FadeFromColor([30.0],0)
EndCutSceneMode()
DestroySelf()
~ EXIT
END

IF WEIGHT #0 ~!Detect([ENEMY])
CombatCounter(0)
Dead("sarkis01")
~ THEN BEGIN 10 // from:
  SAY #64978 /* ~And so the foul traitor dies!   I thank you, on behalf of all the citizens of Saradush.  There is much I must do - I cannot stay.  But thank you once again.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
MoveViewObject(Myself,0)
SetGlobal("ArdicSaved","GLOBAL",1)
AddXP2DA("Plot8A")
EraseJournalEntry(65015)
EraseJournalEntry(65028)
EraseJournalEntry(65031)
EraseJournalEntry(65034)
EraseJournalEntry(65038)
EraseJournalEntry(65041)
EraseJournalEntry(65049)
EraseJournalEntry(65052)
FadeToColor([30.0],0)
//MoveToPoint([527.406])
FadeFromColor([30.0],0)
EndCutSceneMode()
DestroySelf()
~ SOLVED_JOURNAL #65051 /* ~Betrayal at the Gates

Kiser Jhaeri is dead and Ardic is free.  His testimony will exonerate Mateo, and the Countess will likely give me a nice reward for my efforts.~ */ EXIT
END

IF WEIGHT #1 ~OR(2)
Detect([ENEMY])
!CombatCounter(0)
!Dead("sarkis01")
~ THEN BEGIN 11 // from:
  SAY #73250 /* ~Help me!  Kiser wants me dead!~ */
  IF ~~ THEN EXIT
END
