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

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

IF WEIGHT #1 /* Triggers after states #: 1 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #16803 /* ~I know you are an ambitious fool.  You cannot be sanctioned to do this.  Even this gaudy base is against our usual restraint.  The position of Herald requires...~ */
  IF ~~ THEN DO ~SetGlobal("PartyCured","GLOBAL",1)
~ EXIT
END

IF WEIGHT #0 ~Global("Arrested","GLOBAL",1)
~ THEN BEGIN 1 // from:
  SAY #16804 /* ~That's terrible!  Here, take 5 gold pieces.  That should help you out a little.~ */
  IF ~Global("TalkedToKoveras","GLOBAL",1)
~ THEN REPLY #16808 /* ~And... and, even worse, everyone says they seen strange b-beasts out in the hills.  Everyone's so frightened!  There's even t-t-talk that Umar herself has returned!~ */ GOTO 2
  IF ~~ THEN REPLY #16809 /* ~Herald requires the will to establish the position. The High Heralds will judge if it is deserved. Really, Jaheira, this is a matter aside. You know this.~ */ DO ~~ GOTO 3
  IF ~Dead("RIELTAR")
~ THEN REPLY #11845 /* ~Who is this Master of yours?  Why did he do this to you?~ */ GOTO 5
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #16807 /* ~I've no interest in whiny brats or their petty problems.~ */
  IF ~~ THEN DO ~~ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 5.0 2.0 1.1
  SAY #16893 /* ~It doesn't matter who I am.  Who are you?~ */
  IF ~~ THEN REPLY #9747 /* ~What in all the hells is going on here! I demand answers!~ */ DO ~EndCutSceneMode()
SetGlobal("PartyCured","GLOBAL",1)
SetGlobal("Teth","GLOBAL",1)
ActionOverride(Player1,LeaveAreaLUAPanic("AR2613","TRCDCRYP",[133.278],12))
ActionOverride(Player1,LeaveAreaLUA("AR2613","TRCDCRYP",[133.278],12))
ActionOverride(Player1,SetMasterArea("AR2626"))
ActionOverride(Player2,LeaveAreaLUA("AR2613","TRCDCRYP",[179.225],12))
ActionOverride(Player3,LeaveAreaLUA("AR2613","TRCDCRYP",[248.199],12))
ActionOverride(Player4,LeaveAreaLUA("AR2613","TRCDCRYP",[323.199],12))
ActionOverride(Player5,LeaveAreaLUA("AR2613","TRCDCRYP",[361.224],12))
ActionOverride(Player6,LeaveAreaLUA("AR2613","TRCDCRYP",[192.344],12))
~ EXIT
  IF ~~ THEN REPLY #9748 /* ~Again I am brushed off by your moody silence.  Set a signal fire then, to let me know when you are available for simple discourse.  I wait with baited breath.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.1
  SAY #9749 /* ~As you wish.~ */
  IF ~~ THEN DO ~EndCutSceneMode()
SetGlobal("Teth","GLOBAL",1)
ActionOverride(Player1,LeaveAreaLUAPanic("AR2613","TRCDCRYP",[133.278],12))
ActionOverride(Player1,LeaveAreaLUA("AR2613","TRCDCRYP",[133.278],12))
ActionOverride(Player1,SetMasterArea("AR2626"))
ActionOverride(Player2,LeaveAreaLUA("AR2613","TRCDCRYP",[179.225],12))
ActionOverride(Player3,LeaveAreaLUA("AR2613","TRCDCRYP",[248.199],12))
ActionOverride(Player4,LeaveAreaLUA("AR2613","TRCDCRYP",[323.199],12))
ActionOverride(Player5,LeaveAreaLUA("AR2613","TRCDCRYP",[361.224],12))
ActionOverride(Player6,LeaveAreaLUA("AR2613","TRCDCRYP",[192.344],12))
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.2
  SAY #11844 /* ~Can you tell me nothing?  Do you not hear me?~ */
  IF ~~ THEN GOTO 3
END
