// creator  : weidu.exe (version 23100)
// argument : PERDUE.DLG
// game		 : .
// source	 : ./DATA/DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~PERDUE~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #14802 /* ~Excuse me, then, I must be going.~ */
  IF ~~ THEN REPLY #14818 /* ~Excuse me, I must be going.~ */ GOTO 1
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #14819 /* ~Did you see everything that happened?~ */ DO ~~ GOTO 2
  IF ~~ THEN REPLY #14820 /* ~You wouldn't happen to know who those men were who the wizard was fighting, do you?~ */ DO ~~ GOTO 3
  IF ~~ THEN REPLY #14821 /* ~Who were those men who took Imoen and the mage?  Where can I find them?~ */ DO ~~ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #14803 /* ~Nay.  They were all in black an' swarmed with their daggers 'bout an hour ago.  I thought there would be trouble, but didn't think they would suffer the most.~ */
  IF ~~ THEN REPLY #14822 /* ~I suppose I'll have to try and find my way around.  Excuse me.~ */ DO ~~ GOTO 6
  IF ~~ THEN REPLY #14823 /* ~How about the men the wizard was fighting.  Do you know who they were?~ */ DO ~~ GOTO 5
  IF ~~ THEN REPLY #14824 /* ~I suppose I'll have to find my way around.  Excuse me.~ */ DO ~~ GOTO 6
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #14825 /* ~Is 'ere somethin'  I can help ye with?~ */ DO ~~ GOTO 2
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #14826 /* ~Don't mean to bother you, but could you tell me where I am?~ */ DO ~~ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 8.1 7.1 5.2 1.3 0.1
  SAY #14804 /* ~The Promenade?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from: 8.0 7.0 1.4 0.2
  SAY #14805 /* ~Do you know who the men dressed in black were?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.3
  SAY #14806 /* ~Some men took him and Imoen away.  Do you know who they were or where they went?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.1
  SAY #14807 /* ~I've got to be going.~ */
  IF ~~ THEN REPLY #14827 /* ~Could you tell me if you saw what happened earlier?~ */ GOTO 7
  IF ~~ THEN REPLY #14829 /* ~Those men who took Imoen and the wizard, earlier, do you know who they were or where they went?~ */ DO ~~ GOTO 16
  IF ~~ THEN REPLY #14832 /* ~Do you know where I am?~ */ DO ~~ GOTO 2
END

IF ~~ THEN BEGIN 6 // from: 1.2 1.0
  SAY #14808 /* ~Aye, this here be Waukeen's Promenade, center o' trade an' such in the city.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.0
  SAY #14809 /* ~The Cowled ones?  Who are they?  Why would they be arresting anyone for magic?~ */
  IF ~~ THEN REPLY #14833 /* ~Did you see what happened?~ */ DO ~SetGlobal("PerduePayment","GLOBAL",50)
SetGlobal("HelpPerdue","GLOBAL",1)
~ JOURNAL #7701 /* ~Escaping the Asylum

I released the inmates of the asylum and drove Irenicus off, but I will have to follow. He still has Imoen's soul, and mine.  According to Saemon Havarian, Irenicus has plans in an elven city called Suldanessellar.  The traitor offered to take me to the Forest of Tethir on his ship but I don't trust him.  I will follow the way Irenicus left, through the magic portal below.  If I don't get my soul back, I will die.  Or worse.

I'll need to find the key from Irenicus' bedroom so that I can unlock the door to the portal.~ */ GOTO 3
  IF ~~ THEN REPLY #14834 /* ~Who were those men who took Imoen and that mage?~ */ DO ~~ GOTO 2
END

IF ~~ THEN BEGIN 8 // from:
  SAY #14810 /* ~Do you know where I am?~ */
  IF ~~ THEN REPLY #14835 /* ~Excuse me, I've got to be going.~ */ DO ~SetGlobal("PerduePayment","GLOBAL",75)
SetGlobal("HelpPerdue","GLOBAL",1)
~ JOURNAL #15705 /* ~Investigate activities in the Copper Coronet's rooms.

Lehtinan, the innkeeper at the Copper Coronet, has hired me to kill Hendak, who tried to get my help to escape.  He gave me a key to open up Hendak's cell.  I am to return once the deed is done.~ */ GOTO 3
  IF ~~ THEN REPLY #14836 /* ~Well, fine.  Off ye go.~ */ GOTO 2
END

IF ~False()
~ THEN BEGIN 9 // from:
  SAY #14811 /* ~Did you see everything that happened?~ */
  IF ~~ THEN EXIT
END

IF ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 10 // from:
  SAY #14812 /* ~How about the men the wizard was fighting.  Do you know who they were?~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~Global("HelpPerdue","GLOBAL",1)
!PartyHasItem("SW1H17")
~ THEN BEGIN 11 // from:
  SAY #14813 /* ~Excuse me, I must be going.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #14814 /* ~Unless, of course, ye haves the permission o' the Cowled Mages to use yer magic.  Don't know how one'd go about gettin' such a thing, though.~ */
  IF ~~ THEN DO ~AddexperienceParty(250)
GivePartyGold(50)
SetGlobal("HelpPerdue","GLOBAL",2)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #14815 /* ~And where would here be?~ */
  IF ~~ THEN DO ~AddexperienceParty(250)
GivePartyGold(75)
SetGlobal("HelpPerdue","GLOBAL",2)
~ EXIT
END

IF ~PartyHasItem("SW1H17")
~ THEN BEGIN 14 // from:
  SAY #14816 /* ~The ones who took the wizard and Imoen, do you know who they are and where they went?~ */
  IF ~~ THEN DO ~TakePartyItem("SW1H17")
GivePartyGoldGlobal("PerduePayment","GLOBAL")
AddexperienceParty(500)
SetGlobal("HelpPerdue","GLOBAL",2)
~ JOURNAL #16672 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 15 // from:
  SAY #14817 /* ~Did you see everything that happened?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16 // from: 5.1
  SAY #14830 /* ~Sorry to bother you, just passing through.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~True()
~ THEN BEGIN 17 // from:
  SAY #14831 /* ~What bleedin' hole did ye come from?  Hope yer not here to fight, 'cause all that fuss be already over wi'.~ */
  IF ~~ THEN DO ~~ EXIT
END
