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

BEGIN ~ELGEA~ 2 // non-zero flags may indicate non-pausing dialogue

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #26632 /* ~Who's there? What do you vermin wish now? The guard will hear of this outrage! Who... You are not my captors. Who are you? I demand to be freed!~ */
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Korgan")~ THEN REPLY #26634 /* ~You demand? You do not seem to be in a position to demand anything.~ */ GOTO 5
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("Korgan")!~ THEN REPLY #26635 /* ~Of course. I will release your bonds at once!~ */ GOTO 1
  IF ~IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWINJ~ 80
  IF ~!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 101
END

IF ~~ THEN BEGIN 1 // from: 13.1 5.0 0.1
  SAY #26636 /* ~Well, I thank you then. I have been in this place too long. No doubt my ransom was on the way, but I begin to doubt they would have released me.~ */
  IF ~~ THEN REPLY #26644 /* ~You were probably very close to being killed. I have exposed them though.~ */ GOTO 2
  IF ~~ THEN REPLY #26645 /* ~They have killed others. Buried them alive. A cruel, if bloodless death.~ */ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.1 1.0
  SAY #26646 /* ~Then you have saved me from a grim fate indeed. I have nothing of value on me to repay your kindness, I'm afraid.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #26647 /* ~I offer my sincere thanks, however.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #26648 /* ~I and my descendants are in your debt. Farewell.~ */
  IF ~~ THEN DO ~SetGlobal("ElgeaFree","GLOBAL",1)
EraseJournalEntry(34301)
EraseJournalEntry(34302)
EraseJournalEntry(34307)
EraseJournalEntry(34311)
EraseJournalEntry(34324)
AddexperienceParty(16750)~ SOLVED_JOURNAL #34315 /* ~Find the kidnappers who buried Tirdir.

I found the hideout of the kidnappers who were burying their victims in the graveyard.  I freed the current victim, Lady Elgea, who was relieved to be free and offered her eternal gratitude.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from: 13.0 0.0
  SAY #26649 /* ~I am a prisoner, not a victim!  Answer me!  Are you to rescue me or are you to ransom me?!~ */
  IF ~~ THEN REPLY #26652 /* ~I am your rescue, my lady. Forgive my jest.~ */ GOTO 1
  IF ~~ THEN REPLY #26653 /* ~I have not decided as yet.~ */ GOTO 7
  IF ~~ THEN REPLY #26654 /* ~A fine idea! You shall be free, but not before I collect your ransom!~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.2
  SAY #26651 /* ~You are no better a creature than those wretches that kidnapped me! You will rot in the highest trees of Tethir for this! Get out of my sight, I will not look upon you!~ */
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Edwin")~ THEN DO ~SetGlobal("SpawnWelther","GLOBAL",1)~ UNSOLVED_JOURNAL #34324 /* ~Find the kidnappers who buried Tirdir.

The kidnappers had another victim imprisoned and were awaiting the ransom for her. Perhaps I might collect the ransom for this Lady Elgea, rather than just release her.~ */ EXIT
  IF ~IsValidForPartyDialog("Keldorn")~ THEN DO ~SetGlobal("SpawnWelther","GLOBAL",1)~ EXTERN ~KELDORJ~ 160
  IF ~!IsValidForPartyDialog("Keldorn")
IsValidForPartyDialog("Mazzy")~ THEN DO ~SetGlobal("SpawnWelther","GLOBAL",1)~ EXTERN ~MAZZYJ~ 151
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
IsValidForPartyDialog("Minsc")~ THEN DO ~SetGlobal("SpawnWelther","GLOBAL",1)~ UNSOLVED_JOURNAL #34324 /* ~Find the kidnappers who buried Tirdir.

The kidnappers had another victim imprisoned and were awaiting the ransom for her. Perhaps I might collect the ransom for this Lady Elgea, rather than just release her.~ */ EXTERN ~MINSCJ~ 134
  IF ~!IsValidForPartyDialog("Keldorn")
!IsValidForPartyDialog("Mazzy")
!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Edwin")~ THEN DO ~SetGlobal("SpawnWelther","GLOBAL",1)~ UNSOLVED_JOURNAL #34324 /* ~Find the kidnappers who buried Tirdir.

The kidnappers had another victim imprisoned and were awaiting the ransom for her. Perhaps I might collect the ransom for this Lady Elgea, rather than just release her.~ */ EXTERN ~EDWINJ~ 81
END

IF ~~ THEN BEGIN 7 // from: 5.1
  SAY #26658 /* ~No answer is also an answer. You are a villain that profiteers off of the pain of others. Get out of my sight, I will not look upon my captors!~ */
  IF ~~ THEN DO ~SetGlobal("SpawnWelther","GLOBAL",1)~ UNSOLVED_JOURNAL #34324 /* ~Find the kidnappers who buried Tirdir.

The kidnappers had another victim imprisoned and were awaiting the ransom for her. Perhaps I might collect the ransom for this Lady Elgea, rather than just release her.~ */ EXIT
END

IF ~Global("ElgeaFree","GLOBAL",0)
~ THEN BEGIN 8 // from:
  SAY #26661 /* ~You return! Have you come to your senses or do you still intend to hold me here?~ */
  IF ~~ THEN REPLY #26664 /* ~You are free and I beg your forgiveness. A madness overtook me.~ */ DO ~EraseJournalEntry(34234)~ GOTO 9
  IF ~~ THEN REPLY #26665 /* ~I may yet collect your ransom. You are safer in my care than you were.~ */ GOTO 12
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #26667 /* ~It has come too late for me to respect you, but I thank you nonetheless. I was to suffer a much grimmer fate in the hands of those others, despite your selfish games.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 14.0 9.0
  SAY #26669 /* ~I have nothing to offer you, nor do I think you truly deserve it for your games.  But at least I am free, now, and this horrid ordeal is finally over.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #26670 /* ~I thank you. I will find my own way out.~ */
  IF ~~ THEN DO ~SetGlobal("ElgeaFree","GLOBAL",1)
AddexperienceParty(8500)
EraseJournalEntry(34301)
EraseJournalEntry(34302)
EraseJournalEntry(34307)
EraseJournalEntry(34311)
EraseJournalEntry(34324)~ SOLVED_JOURNAL #34315 /* ~Find the kidnappers who buried Tirdir.

I found the hideout of the kidnappers who were burying their victims in the graveyard.  I freed the current victim, Lady Elgea, who was relieved to be free and offered her eternal gratitude.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 8.1
  SAY #26671 /* ~Then get out of my sight. You are not worthy of my eyes.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from: EDWINJ:80.0
  SAY #49901 /* ~How dare you say such things!  Free me at once, I demand it!~ */
  IF ~~ THEN REPLY #49902 /* ~You demand? You do not seem to be in a position to demand anything.~ */ GOTO 5
  IF ~~ THEN REPLY #49903 /* ~Of course. I will release your bonds at once!~ */ GOTO 1
END

IF ~~ THEN BEGIN 14 // from:
  SAY #49906 /* ~No... no, I am unhurt.  Perhaps you should choose your associates with more care in the future, good knight.~ */
  IF ~~ THEN GOTO 10
END
