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

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

IF WEIGHT #0 ~!Dead("cefald01")
InParty("Cernd")
See("Cernd")~ THEN BEGIN 0 // from:
  SAY #43593 /* ~Ahh!  I... I thought that druid had been arrested!  He... he's going to kill us all!!  Ahhhhh!!~ */
  IF ~~ THEN DO ~RunAwayFrom(LastTalkedToBy,75)~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 4 5 even though they appear after this state */
~!Dead("cefald01")
OR(2)
!InParty("Cernd")
!See("Cernd")
CheckStatLT(LastTalkedToBy,13,CHR)~ THEN BEGIN 1 // from:
  SAY #43594 /* ~I... I don't know who you are!  You... you're with the druids, aren't you!  You're one of them!~ */
  IF ~~ THEN DO ~RunAwayFrom(LastTalkedToBy,30)~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 5 even though they appear after this state */
~!Dead("cefald01")
OR(2)
!InParty("Cernd")
!See("Cernd")
CheckStatGT(LastTalkedToBy,12,CHR)~ THEN BEGIN 2 // from:
  SAY #43595 /* ~We... we don't welcome strangers here.  Not anymore!  Not with all the beasts turning against us!  It's... it's Waukeen's revenge!  We've done something wrong!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 /* Triggers after states #: 4 5 7 8 even though they appear after this state */
~RandomNum(2,1)
Dead("cefald01")~ THEN BEGIN 3 // from:
  SAY #43596 /* ~Well... I suppose you're alright.  Seeing as how you're... not really with the druids and all.  And saved us from them, I suppose.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~RandomNum(2,1)
Dead("cefald01")
Global("geniesgone","GLOBAL",0)~ THEN BEGIN 4 // from:
  SAY #43597 /* ~If you're such a hero, then, why don't you do something about those genies, huh?  It's all fine and well to have us saved from being eaten by wolves, only to have us starved out!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~RandomNum(2,2)
Dead("cefald01")
Global("geniesgone","GLOBAL",0)~ THEN BEGIN 5 // from:
  SAY #43598 /* ~Those genies are taking over everything!  Everything!  I... I was foolish to sell them my shop, I was.  All that gold... it all just up and vanished the next day!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #8 /* Triggers after states #: 7 8 even though they appear after this state */
~RandomNum(2,2)
Dead("cefald01")~ THEN BEGIN 6 // from:
  SAY #43599 /* ~You think you're so great, I suppose.  My daughter ran off to be a hero, too... and now she's dead and forgotten, just like every other adventurer!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~RandomNum(2,1)
Dead("cefald01")
Global("geniesgone","GLOBAL",1)~ THEN BEGIN 7 // from:
  SAY #43600 /* ~(sigh)  I should never have given up my shop.  Now there's no genies, no gold and no shop... and Trademeet's going to be restored to prosperity, now.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #6 ~RandomNum(2,2)
Dead("cefald01")
Global("geniesgone","GLOBAL",1)~ THEN BEGIN 8 // from:
  SAY #43601 /* ~Don't tell my wife I sold the shop to those genies!  Now that they're gone and Trademeet's been restored, we have nothing!  She'll... she'll kill me!~ */
  IF ~~ THEN EXIT
END
