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

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

IF WEIGHT #4 /* Triggers after states #: 6 8 11 12 even though they appear after this state */
~RandomNum(2,1)
!Dead("Toady")
!StateCheck("Toady",STATE_SLEEPING)~ THEN BEGIN 0 // from:
  SAY #29564 /* ~Hmph.  Away with you, peasant.~ */
  IF ~~ THEN EXTERN ~TOADY~ 0
END

IF ~~ THEN BEGIN 1 // from:
  SAY #29566 /* ~You don't look like someone I'd speak to.~ */
  IF ~~ THEN EXTERN ~TOADY~ 1
END

IF ~~ THEN BEGIN 2 // from:
  SAY #29568 /* ~Bah!~ */
  IF ~~ THEN EXTERN ~TOADY~ 2
END

IF WEIGHT #5 /* Triggers after states #: 6 8 11 12 even though they appear after this state */
~RandomNum(2,2)
!Dead("Toady")
!StateCheck("Toady",STATE_SLEEPING)~ THEN BEGIN 3 // from:
  SAY #29570 /* ~Hmmmn... now, I am quite sure that I don't --~ */
  IF ~~ THEN EXTERN ~TOADY~ 3
END

IF ~~ THEN BEGIN 4 // from:
  SAY #29574 /* ~I am quite capable of speaking for myself, you worthless fool!~ */
  IF ~~ THEN EXTERN ~TOADY~ 4
END

IF ~~ THEN BEGIN 5 // from:
  SAY #29575 /* ~Yes.  (ahem)  Now tell this collection of peasantry to disperse.  There is a lingering odor about them that offends me.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~InParty("HaerDalis")
See("HaerDalis")
!StateCheck("HaerDalis",STATE_SLEEPING)
RandomNum(2,1)
Global("HaerDalis","LOCALS",0)
~ THEN BEGIN 6 // from:
  SAY #29576 /* ~(grumble)  Where can that woman be?  Hmph!~ */
  IF ~~ THEN DO ~SetGlobal("HaerDalis","LOCALS",1)
~ EXTERN ~HAERDAJ~ 46
END

IF ~~ THEN BEGIN 7 // from:
  SAY #29578 /* ~Er... ah... here's a platinum piece, good man.  Go play your instrument... somewhere...~ */
  IF ~~ THEN DO ~GivePartyGold(5)
~ EXIT
END

IF WEIGHT #1 ~InParty("Minsc")
See("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(2,1)
Global("Minsc","LOCALS",0)
~ THEN BEGIN 8 // from:
  SAY #29579 /* ~(grumble)  I grow weary of waiting here.  If I stay much longer, I think I shall grow truly upset.~ */
  IF ~~ THEN DO ~SetGlobal("Minsc","LOCALS",1)
~ EXTERN ~MINSCJ~ 55
END

IF ~~ THEN BEGIN 9 // from:
  SAY #29581 /* ~Well, now, there's a novel approach.~ */
  IF ~~ THEN EXTERN ~MINSCJ~ 56
END

IF ~~ THEN BEGIN 10 // from:
  SAY #29583 /* ~Hmmn.  We need more people like you on the Council, actually.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~InParty("Jan")
See("Jan")
!StateCheck("Jan",STATE_SLEEPING)
RandomNum(2,1)
Global("PehllusJan","LOCALS",0)~ THEN BEGIN 11 // from:
  SAY #50494 /* ~Eh?  You there... the gnome amongst you.  You look very familiar.  Any relation to a Count Turnipsome that I once negotiated with, perhaps?~ */
  IF ~~ THEN DO ~SetGlobal("PehllusJan","LOCALS",1)~ EXTERN ~JANJ~ 140
END

IF WEIGHT #3 ~InParty("Aerie")
See("Aerie")
!StateCheck("Aerie",STATE_SLEEPING)
RandomNum(2,2)
Global("PehllusAerie","LOCALS",0)~ THEN BEGIN 12 // from:
  SAY #50499 /* ~Hmmmn.  You've lovely features there, girl, for an elf.  Such lovely blue eyes.  Perhaps I will forget about Oriona and the two of us shall go somewhere together, yes?~ */
  IF ~~ THEN DO ~SetGlobal("PehllusAerie","LOCALS",1)~ EXTERN ~AERIEJ~ 111
END

IF ~~ THEN BEGIN 13 // from:
  SAY #50506 /* ~Well, I... I still haven't heard back from him about that expedition I commissioned.  It had been quite some time, after all.~ */
  IF ~~ THEN EXTERN ~JANJ~ 141
END
