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

BEGIN ~BYSTAND1~ 2 // non-zero flags may indicate non-pausing dialogue
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #0 ~!GlobalTimerExpired("Bystander","GLOBAL")
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 0 // from:
  SAY #14726 /* ~Where in th' bleedin' blazes did ye come from?  I can't hardly believe that th' bleedin' mage went crazy, he did! As if a guild war in Athkatla wasn't enough!~ */
  IF ~!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #14733 /* ~Do you know where I am?~ */ GOTO 1
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN REPLY #38766 /* ~Do you know where I am?~ */ EXTERN ~YOSHJ~ 23
  IF ~~ THEN REPLY #44955 /* ~What do you mean by a 'guild war?'~ */ GOTO 12
  IF ~~ THEN REPLY #14734 /* ~Did you see what happened?~ */ GOTO 2
  IF ~~ THEN REPLY #14735 /* ~Who were those men who took Imoen and that mage?~ */ GOTO 3
  IF ~~ THEN REPLY #14736 /* ~Excuse me, I've got to be going.~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 14.0 9.0 8.0 5.0 3.1 0.0
  SAY #14738 /* ~Ye don't know where ye are?  By Helm, ye're in Athkatla, jewel of Amn.~ */
  IF ~~ THEN REPLY #14746 /* ~Athkatla?  The capital of Amn?  Hm.  Did you see what happened to the mage?~ */ GOTO 2
  IF ~~ THEN REPLY #14748 /* ~You wouldn't happen to know who those men were who the wizard was fighting, do you?~ */ GOTO 5
  IF ~~ THEN REPLY #14749 /* ~Who were those men who took Imoen and the mage?  Where can I find them?~ */ GOTO 3
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #14802 /* ~Excuse me, then, I must be going.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #14837 /* ~I'll find my own way around now, then.~ */ GOTO 10
  IF ~~ THEN REPLY #44957 /* ~Did you say something about a 'guild war?' What is that about?~ */ GOTO 12
END

IF ~~ THEN BEGIN 2 // from: 14.2 9.2 8.1 7.0 5.3 3.3 1.0 0.3
  SAY #14740 /* ~Aye, the wizard was angrier 'an a dragon, blastin' these men in black.  Bleedin' wizard killed 'em all, an took half the Promenade too, 'fore he stopped.~ */
  IF ~~ THEN REPLY #14804 /* ~The Promenade?~ */ GOTO 6
  IF ~~ THEN REPLY #14805 /* ~Do you know who the men dressed in black were?~ */ GOTO 5
  IF ~~ THEN REPLY #14806 /* ~Some men took him and Imoen away.  Do you know who they were or where they went?~ */ GOTO 3
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #14807 /* ~I've got to be going.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #14843 /* ~I've got to be going.~ */ GOTO 10
  IF ~~ THEN REPLY #44962 /* ~What did you mean by a 'guild war?' What is that about?~ */ GOTO 12
END

IF ~~ THEN BEGIN 3 // from: 14.3 9.3 8.2 6.1 5.2 2.2 1.2 0.4
  SAY #14743 /* ~Imoen?  Is 'at the girl?  Aye, she was taken.  Don't know where to.  Maybe 'twas the Cowled ones, come to arrest 'em for all the magics and the like.~ */
  IF ~~ THEN REPLY #14809 /* ~The Cowled ones?  Who are they?  Why would they be arresting anyone for magic?~ */ GOTO 15
  IF ~!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #14810 /* ~Do you know where I am?~ */ GOTO 1
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN REPLY #38770 /* ~Do you know where I am?~ */ EXTERN ~YOSHJ~ 23
  IF ~~ THEN REPLY #14811 /* ~Did you see everything that happened?~ */ GOTO 2
  IF ~~ THEN REPLY #14812 /* ~How about the men the wizard was fighting.  Do you know who they were?~ */ GOTO 5
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #14813 /* ~Excuse me, I must be going.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #14844 /* ~Well, I've got to go.~ */ GOTO 10
END

IF ~~ THEN BEGIN 4 // from: 14.4 8.3 7.2 6.2 5.4 3.5 2.3 1.3 0.5
  SAY #14745 /* ~Well, take care o' yerself, then.  A good business to ye.~ */
  IF ~Global("Jaheira1","LOCALS",0)
IsValidForPartyDialog("Jaheira")
~ THEN DO ~SetGlobal("Jaheira1","LOCALS",1)
~ EXTERN ~JAHEIRAJ~ 17
  IF ~OR(2)
Global("Jaheira1","LOCALS",1)
!IsValidForPartyDialog("Jaheira")
~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 7.1 6.0 3.4 2.1 1.1
  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 ~!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #14815 /* ~And where would here be?~ */ GOTO 1
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN REPLY #38771 /* ~And where would here be?~ */ EXTERN ~YOSHJ~ 23
  IF ~~ THEN REPLY #14816 /* ~The ones who took the wizard and Imoen, do you know who they are and where they went?~ */ GOTO 3
  IF ~~ THEN REPLY #14817 /* ~Did you see everything that happened?~ */ GOTO 2
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #14818 /* ~Excuse me, I must be going.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #14845 /* ~I'll find my way around, now.~ */ GOTO 10
END

IF ~~ THEN BEGIN 6 // from: 2.0
  SAY #14808 /* ~Aye, this here be Waukeen's Promenade, center o' trade an' such in the city.~ */
  IF ~~ THEN REPLY #14820 /* ~You wouldn't happen to know who those men were who the wizard was fighting, do you?~ */ GOTO 5
  IF ~~ THEN REPLY #14821 /* ~Who were those men who took Imoen and the mage?  Where can I find them?~ */ GOTO 3
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #14822 /* ~I suppose I'll have to try and find my way around.  Excuse me.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #14846 /* ~I suppose I'll have to try and find my way around.~ */ GOTO 10
END

IF ~~ THEN BEGIN 7 // from: 15.0
  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 REPLY #14819 /* ~Did you see everything that happened?~ */ GOTO 2
  IF ~~ THEN REPLY #14823 /* ~How about the men the wizard was fighting.  Do you know who they were?~ */ GOTO 5
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)~ THEN REPLY #14824 /* ~I suppose I'll have to find my way around.  Excuse me.~ */ GOTO 4
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN REPLY #14847 /* ~I suppose I'll have to find my way around.  Excuse me.~ */ GOTO 10
END

IF WEIGHT #2 /* Triggers after states #: 9 even though they appear after this state */
~True()~ THEN BEGIN 8 // from:
  SAY #14825 /* ~Is 'ere somethin'  I can help ye with?~ */
  IF ~~ THEN REPLY #14826 /* ~Don't mean to bother you, but could you tell me where I am?~ */ GOTO 1
  IF ~~ THEN REPLY #14827 /* ~Could you tell me if you saw what happened earlier?~ */ GOTO 2
  IF ~~ THEN REPLY #14829 /* ~Those men who took Imoen and the wizard, earlier, do you know who they were or where they went?~ */ GOTO 3
  IF ~~ THEN REPLY #14830 /* ~Sorry to bother you, just passing through.~ */ GOTO 4
END

IF WEIGHT #1 ~!GlobalTimerExpired("Bystander","GLOBAL")
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)~ THEN BEGIN 9 // 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 ~!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #14832 /* ~Do you know where I am?~ */ GOTO 1
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN REPLY #38772 /* ~Do you know where I am?~ */ EXTERN ~YOSHJ~ 23
  IF ~~ THEN REPLY #14833 /* ~Did you see what happened?~ */ GOTO 2
  IF ~~ THEN REPLY #14834 /* ~Who were those men who took Imoen and that mage?~ */ GOTO 3
  IF ~~ THEN REPLY #14835 /* ~Excuse me, I've got to be going.~ */ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.4 7.3 6.3 5.5 3.6 2.4 1.4
  SAY #14836 /* ~Well, fine.  Off ye go.~ */
  IF ~Global("Jaheira1","LOCALS",0)
IsValidForPartyDialog("Jaheira")
~ THEN DO ~SetGlobal("Jaheira1","LOCALS",1)
~ EXTERN ~JAHEIRAJ~ 17
  IF ~OR(2)
Global("Jaheira1","LOCALS",1)
!IsValidForPartyDialog("Jaheira")
~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from:
  SAY #38768 /* ~Aye, it surely is.~ */
  IF ~~ THEN EXTERN ~YOSHJ~ 24
END

IF ~~ THEN BEGIN 12 // from: 2.5 1.5 0.2
  SAY #44958 /* ~It's one o' the reasons why smart folk stay indoors at night, though none o' the guards will say one thing or another about it. Bad for the image of the city.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #44960 /* ~I knows 'cuz I'm close to the streets.  There's a war between the thieves and a new guild. Don't know much, but lots of people have gone missin'.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #44961 /* ~Not much other to say about that. You need anythin' else?~ */
  IF ~!IsValidForPartyDialog("Yoshimo")~ THEN REPLY #44964 /* ~What city was this?~ */ GOTO 1
  IF ~IsValidForPartyDialog("Yoshimo")~ THEN REPLY #44965 /* ~What city was this?~ */ EXTERN ~YOSHJ~ 23
  IF ~~ THEN REPLY #44966 /* ~Did you see what happened here?~ */ GOTO 2
  IF ~~ THEN REPLY #44967 /* ~I was with a woman named Imoen. Who took her and that mage?~ */ GOTO 3
  IF ~~ THEN REPLY #44970 /* ~Excuse me, I've got to be going.~ */ GOTO 4
END

IF ~~ THEN BEGIN 15 // from: 3.0
  SAY #61116 /* ~Ye ARE new here, aren't ye?  Magic be forbidden in Athkatla.  The Cowled Wizards, methinks, keep control o' all th' other mages.~ */
  IF ~~ THEN GOTO 7
END
