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

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

IF WEIGHT #2 /* Triggers after states #: 5 10 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #14634 /* ~Hold!  This tent has been closed off for your own safety, citizen!  The circus has been closed until this matter is resolved.~ */
  IF ~~ THEN REPLY #14635 /* ~Why?  What has occurred, here?~ */ GOTO 6
  IF ~~ THEN REPLY #14637 /* ~I'd like to go inside and check it out for myself.~ */ GOTO 2
  IF ~~ THEN REPLY #14636 /* ~Alright, I'll be on my way, then.~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 9.1 8.2 4.2 2.1 0.2
  SAY #14639 /* ~On your way then, citizen.~ */
  IF ~~ THEN DO ~SetGlobal("NoEntry","AR0700",1)~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 4.1 0.1
  SAY #14640 /* ~I'm sorry citizen, but I'll not add you to my list of problems.  We've lost a whole garrison squad in this tent, and I doubt you will do any better.~ */
  IF ~~ THEN REPLY #14638 /* ~Why?  What's wrong with the tent?~ */ GOTO 6
  IF ~~ THEN REPLY #14653 /* ~Perhaps you're right.  I'll be on my way, then, for now.~ */ GOTO 1
END

IF ~~ THEN BEGIN 3 // from: 9.0 8.1
  SAY #14656 /* ~Very well, then.  I'll not stop you if you wish to risk yourself, citizen.  You were warned.~ */
  IF ~!IsValidForPartyDialog("Minsc")
!IsValidForPartyDialog("Yoshimo")~ THEN DO ~SetGlobal("NoEntry","AR0700",2)
MoveToPoint([3037.1566])
Face(0)~ UNSOLVED_JOURNAL #34110 /* ~Investigate the circus tent.

Something has occurred in the circus tent in Waukeen's Promenade... No one that goes in comes back out.  The guard in front has agreed to allow me to enter to investigate.~ */ EXIT
  IF ~IsValidForPartyDialog("Minsc")~ THEN DO ~SetGlobal("NoEntry","AR0700",2)
MoveToPoint([3037.1566])
Face(0)~ EXTERN ~MINSCJ~ 69
  IF ~!IsValidForPartyDialog("Minsc")
IsValidForPartyDialog("Yoshimo")~ THEN DO ~SetGlobal("NoEntry","AR0700",2)
MoveToPoint([3037.1566])
Face(0)~ EXTERN ~YOSHJ~ 25
END

IF WEIGHT #3 /* Triggers after states #: 5 10 even though they appear after this state */
~Global("NoEntry","AR0700",1)~ THEN BEGIN 4 // from:
  SAY #14716 /* ~Back again, eh?  What is it, exactly, that you wish?  This tent is closed for your own safety.~ */
  IF ~~ THEN REPLY #14660 /* ~Tell me what happened, here.~ */ GOTO 6
  IF ~~ THEN REPLY #14661 /* ~I'd like to see inside the tent, actually.~ */ GOTO 2
  IF ~~ THEN REPLY #14670 /* ~Alright, alright, I'm going.~ */ GOTO 1
END

IF WEIGHT #0 ~Dead("KalahIllusion")
~ THEN BEGIN 5 // from:
  SAY #19631 /* ~I just wanted to thank you, citizen, for doing such a fine job.  You've saved us more than a little trouble with that gnome.  The city thanks you, truly.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #45496 /* ~I have a question... a friend of mine has been imprisoned by the Cowled Wizards.  Do you know where they might be keeping her?~ */ GOTO 11
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #45497 /* ~I have a question... what do you know about the Shadow Thieves?~ */ GOTO 12
  IF ~~ THEN REPLY #45498 /* ~No problem.~ */ GOTO 13
END

IF ~~ THEN BEGIN 6 // from: 4.0 2.0 0.0
  SAY #14647 /* ~We are not exactly sure.  There was no problem until a show was scheduled earlier in the morning.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #14649 /* ~Apparently the show began well enough... and then something occurred.  Nobody has come out of the tent who went in for the show... and everyone we have sent in to investigate has not come out, either.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #14651 /* ~Foul magic is, no doubt, involved here.  We are waiting for the Cowled Wizards to arrive.  They will be able to solve this, I am sure.~ */
  IF ~~ THEN REPLY #14652 /* ~Nobody at all has gotten out?~ */ GOTO 9
  IF ~~ THEN REPLY #14654 /* ~I can handle myself.  Perhaps I can solve this problem for you.~ */ GOTO 3
  IF ~~ THEN REPLY #14655 /* ~I see.  I'll be on my way, then.~ */ GOTO 1
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #14657 /* ~Well... we have been told that one of the animal trainers darted out after the show began, but we have not been able to find him as of yet.~ */
  IF ~~ THEN REPLY #14658 /* ~Hm.  I can handle myself.  Perhaps I can solve the problem, here, for you.~ */ GOTO 3
  IF ~~ THEN REPLY #14659 /* ~I might be able to track him down.  See you later.~ */ GOTO 1
END

IF WEIGHT #1 ~Global("NoEntry","AR0700",2)~ THEN BEGIN 10 // from:
  SAY #14675 /* ~Are you still planning on going inside?  I didn't think so.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 12.0 5.0
  SAY #45499 /* ~Well, they would have imprisoned her wherever they keep their magic-using criminals, and they keep the location of their prison a secret.  Sorry about your friend, but that's the way it is.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #45500 /* ~What do you know about the Shadow Thieves, then?~ */ GOTO 12
  IF ~~ THEN REPLY #45501 /* ~I'll be on my way, then.~ */ GOTO 13
END

IF ~~ THEN BEGIN 12 // from: 11.0 5.1
  SAY #45502 /* ~They are a power here in the city, and they're everywhere you look.  If you intend to deal with them, friend, be wary.~ */
  IF ~GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #45503 /* ~A friend of mine has been imprisoned by the Cowled Wizards... do you know where they would be keeping her?~ */ GOTO 11
  IF ~~ THEN REPLY #45504 /* ~I'll be going, then.~ */ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.1 11.1 5.2
  SAY #45505 /* ~Very good, citizen.  You have my thanks once again.~ */
  IF ~~ THEN DO ~ReputationInc(1)
EscapeArea()~ EXIT
END
