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

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

IF ~~ THEN BEGIN 0 // from:
  SAY #15036 /* ~My husband had a shipment of ore coming from Nashkel and it actually got robbed, of all things.  By Helm, something should be done!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #15037 /* ~Are you actually speaking to me?  A commoner?  Oh, I think I might faint.~ */
  IF ~~ THEN JOURNAL #15735 /* ~Valygar's family quest is over.

Valygar's quest is finally done.  Lavok was not what he expected, and has caused the normally judgmental ranger to think deeply about what he has experienced.  With the necromancer dead and the Cowled Wizards no longer hunting him, Valygar has asked to continue traveling with me.  I have accepted him back into the group.~ */ EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
ReputationGT(LastTalkedToBy,14)
~ THEN BEGIN 2 // from:
  SAY #15038 /* ~A million pardons, but it is simply red ink to speak to one of such obvious low birth.~ */
  IF ~~ THEN JOURNAL #15736 /* ~~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 4 5 even though they appear after this state */
~Global("HelpOrdulinian","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #15039 /* ~Oh, how cute!  You've given one of the little people a weapon to play with!  If my children were here to see this, they would be SO delighted!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("HelpOrdulinian","GLOBAL",0)
PartyHasItem("AMUL13")
PartyHasItem("RING12")
~ THEN BEGIN 4 // from:
  SAY #15040 /* ~(grrr)  I am a virtuous follower of Arvoreen.  He will reward me for my patience.  (sigh)~ */
  IF ~~ THEN DO ~GiveItem("CLCK06",LastTalkedToBy)
SetGlobal("HelpOrdulinian","GLOBAL",1)
AddexperienceParty(3500)
~ EXIT
END

IF WEIGHT #3 ~false()~ THEN BEGIN 5 // from:
  SAY #15041 /* ~Terrece~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~True()
~ THEN BEGIN 6 // from:
  SAY #15042 /* ~Terrece~ */
  IF ~~ THEN EXIT
END
