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

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

IF WEIGHT #2 /* Triggers after states #: 8 even though they appear after this state */
~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #1111 /* ~Well, that was a short mourning period.  I guess you weren't that close after all.~ */
  IF ~~ THEN DO ~ActionOverride("Sonner",SetNumTimesTalkedTo(1))
ActionOverride("Telman",SetNumTimesTalkedTo(1))
~ EXTERN ~SONNER~ 1
END

IF WEIGHT #3 /* Triggers after states #: 8 even though they appear after this state */
~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
NumTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #1112 /* ~Only this gigantic shark tooth, said to have been left by the sahuagin god Sekolah, can open the way to the Rebel Prince's base.~ */
  IF ~~ THEN DO ~ActionOverride("Sonner",SetNumTimesTalkedTo(1))
ActionOverride("Telman",SetNumTimesTalkedTo(1))
~ EXTERN ~SONNER~ 2
END

IF WEIGHT #4 /* Triggers after states #: 8 even though they appear after this state */
~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
NumTimesTalkedTo(0)
~ THEN BEGIN 2 // from:
  SAY #1113 /* ~No pointless crying, we will honor him when there is time.~ */
  IF ~~ THEN DO ~ActionOverride("Sonner",SetNumTimesTalkedTo(1))
ActionOverride("Telman",SetNumTimesTalkedTo(1))
~ EXTERN ~SONNER~ 3
END

IF ~~ THEN BEGIN 3 // from:
  SAY #1114 /* ~This key, obtained from Phaere, will give you access to the Despana Treasury room.~ */
  IF ~~ THEN EXTERN ~TELMAN~ 1
END

IF ~~ THEN BEGIN 4 // from:
  SAY #1115 /* ~This ornate key will open the door to the Royal Treasury.~ */
  IF ~~ THEN EXTERN ~SONNER~ 7
END

IF ~~ THEN BEGIN 5 // from:
  SAY #1116 /* ~The Rhynn Lanthorn is an artifact from ruined Myth Rhynn. It was highly prized by the city's rulers as it shone through all falsehoods and illusions. The device, with the lenses in place, can dispel the illusions that hide Suldanessellar.~ */
  IF ~~ THEN EXTERN ~SONNER~ 12
END

IF ~~ THEN BEGIN 6 // from:
  SAY #1117 /* ~You will watch your tongue lest I rip it from your mouth!  I, more than anyone, know of the ways life may return, but there is a line that cannot be crossed!~ */
  IF ~~ THEN EXTERN ~SONNER~ 14
END

IF ~~ THEN BEGIN 7 // from:
  SAY #6278 /* ~(By the shabby look of <PRO_HIMHER> it was a pairing of barnyard proportions.) I meant nothing, I assure you. I merely ask that you reconsider.~ */
  IF ~~ THEN DO ~ActionOverride("Telman",EscapeArea())
ActionOverride("Sonner",EscapeArea())
EscapeArea()
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 8 // from:
  SAY #6923 /* ~This is blasphemy! An outrage against nature and order! I must redouble my efforts to cancel the hideous and deforming nature of this Nether scourge!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #9002 /* ~It would have been better for you to find a non-violent solution, but now I have entertainment for my guests. Come to my side, my comrades; enjoy the spectacle.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~Global("HelpJebadoh","GLOBAL",0)
~ THEN BEGIN 10 // from:
  SAY #962 /* ~No, I know best when talking of Boo.  If you could hear his wishes you would agree, but you cannot. The words of Boo are for Minsc alone.~ */
  IF ~~ THEN DO ~~ EXTERN ~SONNER~ 9
END

IF WEIGHT #6 ~Global("HelpJebadoh","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #1034 /* ~Could you perhaps illuminate for me, then, what this building is for?~ */
  IF ~~ THEN DO ~~ EXTERN ~TELMAN~ 3
END
