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

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

IF WEIGHT #0 ~Global("Chapter","GLOBAL",6)
~ THEN BEGIN 0 // from:
  SAY #9 /* ~If we can find it and return it to the playhouse, the reward offered by our Stagemistress, Raelis Shai, shall be yours.  Come, then, let us search for it: free money does not come often in the arts.~ */
  IF ~~ THEN JOURNAL #7235 /* ~Getting Inside the Asylum

Saemon Havarian showed me to a tavern, saying that I can find out what I need to know from a man named Sanik within.  Saemon would not go further, fearing his reputation would only prove a hindrance. He has returned to his ship.~ */ EXIT
END

IF WEIGHT #1 ~Global("IronThroneMurder","GLOBAL",1)
~ THEN BEGIN 1 // from:
  SAY #10 /* ~So hopeful that we shall meet again before too many days have passed.  But enough talk -- it is time this raven flies.~ */
  IF ~~ THEN REPLY #7231 /* ~But you could do so much more.  How can you throw away this opportunity to really walk a mile in another's shoes?  I would love such an...~ */ GOTO 7
  IF ~~ THEN REPLY #7232 /* ~Would you now?  I would wish it on you if I could, but you do not mean what you say.  You could do as such now, but you do not.~ */ DO ~SetGlobal("TethtorilTalk","GLOBAL",4)
SetGlobalTimer("Ulraunt","GLOBAL",20)
~ EXIT
END

IF WEIGHT #2 ~Global("Arrested","GLOBAL",1)
~ THEN BEGIN 2 // from:
  SAY #11 /* ~Your reward will be great and the fates, my blackbird of chaos, shall smile. But enough of artful prophecy: I must fly to my troupe for no doubt they have missed my presence.~ */
  IF ~~ THEN REPLY #13 /* ~Well I have no intention of rotting together, either, so you can take your one-man show elsewhere, I'm afraid.~ */ GOTO 3
  IF ~~ THEN REPLY #14 /* ~There be little sense in anything, these days. Come, then, let us leave this place of madness behind.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #12 /* ~Come, let me join you.  Like all actors, I am an extrovert and even more so since my late confinement.  There be little sense in rotting alone.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 8 even though they appear after this state */
~Global("Chapter","GLOBAL",0)
NumTimesTalkedTo(0)
~ THEN BEGIN 4 // from:
  SAY #15 /* ~If so, I will see to it that my mistress, Raelis Shai, rewards you generously. Then, at least, we might pick up our acquaintance under kinder circumstances.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Tethtoril","GLOBAL",120)
~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 8 even though they appear after this state */
~Global("Chapter","GLOBAL",0)
NumTimesTalkedTo(1)
~ THEN BEGIN 5 // from:
  SAY #90 /* ~It would be an honor.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Tethtoril","GLOBAL",240)
~ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 8 even though they appear after this state */
~Global("Chapter","GLOBAL",0)
NumTimesTalkedTo(2)
~ THEN BEGIN 6 // from:
  SAY #264 /* ~Haer' Dalis, you have returned! And who is this that you bring with you?~ [RAELIS16] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 1.0
  SAY #7233 /* ~But I just thought...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~Global("TalkedToFirebead","GLOBAL",1)
~ THEN BEGIN 8 // from:
  SAY #16027 /* ~No, I'm not interested.~ */
  IF ~~ THEN DO ~SetInterrupt(FALSE)
GiveItem("SCRL75",LastTalkedToBy)
SetGlobal("TalkedToFirebead","GLOBAL",2)
SetGlobalTimer("Tethtoril","GLOBAL",120)
SetInterrupt(TRUE)
~ EXIT
END
