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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #15145 /* ~Deril Lich~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(1)
~ THEN BEGIN 1 // from:
  SAY #15147 /* ~Deril Lich~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #2 ~NumTimesTalkedTo(2)
~ THEN BEGIN 2 // from:
  SAY #15148 /* ~Pauden~ */
  IF ~~ THEN REPLY #15750 /* ~Thank you for the information.  Might I see what you have in stock, now?~ */ DO ~SetGlobal("HelpLusselyn","GLOBAL",1)
TakePartyGold(100)
~ JOURNAL #15748 /* ~Getting Inside the Palace in Suldanessellar

One of the local elves told me that he saw High Priestess Demin battling creatures in the southwestern portion of the city.  Perhaps she has retreated into one of the buildings there.~ */ EXIT
  IF ~~ THEN REPLY #15749 /* ~I'm not interested.  Please excuse me.~ */ DO ~~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 4 5 even though they appear after this state */
~Global("HelpLusselyn","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #15149 /* ~Pauden~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #3 ~Dead("Jellmul")
Global("HelpLusselyn","GLOBAL",1)
!Global("LusselynGaveGold","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #15150 /* ~Dalok~ */
  IF ~~ THEN DO ~GivePartyGold(160)
SetGlobal("LusselynGaveGold","GLOBAL",1)~ EXIT
END

IF WEIGHT #4 ~false()~ THEN BEGIN 5 // from:
  SAY #15151 /* ~Dalok~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #6 ~True()
~ THEN BEGIN 6 // from:
  SAY #15152 /* ~Your kindred are a scourge, defending birds, trees, brooks... the dirt.  It illustrates your inability to relate to anything with two legs and a language.~ */
  IF ~~ THEN DO ~~ EXIT
END
