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

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

IF WEIGHT #3 /* Triggers after states #: 3 4 5 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #29124 /* ~Welcome to the temple of Helm, my <LADYLORD>.  Helm is the watcher and the guardian, protector of all who require his benevolent presence.  Be safe, my <LADYLORD>, and be welcome.~ */
  IF ~~ THEN REPLY #29126 /* ~I would like to see your services.~ */ GOTO 1
  IF ~~ THEN REPLY #29127 /* ~I'll be on my way.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #29128 /* ~Of course, my <LADYLORD>.  Helm's duty is provided to all.~ */
  IF ~~ THEN DO ~StartStore("bhelm",LastTalkedToBy())
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #29129 /* ~Walk in safety, my <LADYLORD>, and may Helm watch over you.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~See("Anomen")
InParty("Anomen")
!StateCheck("Anomen",STATE_SLEEPING)
Global("HelmAnomen","LOCALS",0)
Global("AnomenIsNotKnight","GLOBAL",0)
Global("AnomenIsKnight","GLOBAL",0)
RandomNum(3,1)~ THEN BEGIN 3 // from:
  SAY #48716 /* ~Greetings to you, faithful Anomen.  I trust that all goes well in the Order?~ */
  IF ~~ THEN DO ~SetGlobal("HelmAnomen","LOCALS",1)~ EXTERN ~ANOMENJ~ 193
END

IF WEIGHT #1 ~See("Viconia")
InParty("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
Global("HelmViconia","LOCALS",0)
RandomNum(3,2)~ THEN BEGIN 4 // from:
  SAY #48717 /* ~Greetings to you... wh-what is this?  You bring a dark elf into the house of the Watcher?  Why would you do this?!~ */
  IF ~~ THEN DO ~SetGlobal("HelmViconia","LOCALS",1)~ EXTERN ~VICONIJ~ 46
END

IF WEIGHT #2 ~See("Keldorn")
InParty("Keldorn")
!StateCheck("Keldorn",STATE_SLEEPING)
Global("InteractKeldorn","LOCALS",0)
RandomNum(3,3)~ THEN BEGIN 5 // from:
  SAY #48720 /* ~Greetings to you, Sir Keldorn.  We are honored to have a servant of Torm walk these halls.  You are well known amongst your Order and Helm respects those with such a devotion to duty.~ */
  IF ~~ THEN DO ~SetGlobal("InteractKeldorn","LOCALS",1)~ EXTERN ~KELDORJ~ 119
END
