// creator  : weidu.exe (version 23100)
// argument : _DURLAGT.DLG
// game		 : .
// source	 : ./override/_DURLAGT.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #4 /* Triggers after states #: 5 6 10 11 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #83984 /* ~You have come quite far... not many live to speak... less live to leave... you are far from done... I hold surprises yet... seek direction in this place... when you understand the path... when you understand the course... you will be able to go on... you must be worthy to face what comes... there is evil here not built within... you must expel the new invaders...~ */
  IF ~~ THEN REPLY #83985 /* ~Who are you? Are you Durlag himself?~ */ GOTO 1
  IF ~~ THEN REPLY #83986 /* ~Why do you taunt me, phantom? Who are you to do so?~ */ GOTO 2
  IF ~~ THEN REPLY #83987 /* ~Do you mean me harm? I will not yield to ghosts and spectres!~ */ GOTO 3
  IF ~Global("X#XANDURLAG1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XANDURLAG1","GLOBAL",1)~ EXTERN ~_XANJ~ 106
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #83988 /* ~Am I... Durlag? You have cause to wonder... you have seen traps and illusions and phantoms... but the spirit of Durlag has long since passed... to whatever fate the dark veil holds... this place... this place is his fear... his anger... his torment. You wish to conquer this place?  You will have to understand what created it... remember well what you have already seen... or leave now and live life long and natural... three paths lead away... all must be taken...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83989 /* ~Durlag's Tower

I have encountered a phantom, presumably of Durlag himself.  It said that the true spirit of Durlag passed long ago, but his hatred and fear, which built the tower, still maintain it.  It said I must understand two of the 'paths' that led to this place.  After that, 'the way' will become clear.  It seems to want something as well.  It said there was a new evil here, something not a part of the tower, that must be expelled.  I don't fancy being this creature's lackey, but I may have no choice... unless I just leave.~ */ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #83990 /* ~I am a shadow of a man... I am Durlag... more or less... the spirit of the builder has long since passed... gone to whatever reward the black veil holds... this place sustains the fear... the anger... frustration... You have seen phantoms and illusions... remember what you have learned... you may yet conquer... but you must understand the paths... three paths lead away... all must be taken... seek direction...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83989 /* ~Durlag's Tower

I have encountered a phantom, presumably of Durlag himself.  It said that the true spirit of Durlag passed long ago, but his hatred and fear, which built the tower, still maintain it.  It said I must understand two of the 'paths' that led to this place.  After that, 'the way' will become clear.  It seems to want something as well.  It said there was a new evil here, something not a part of the tower, that must be expelled.  I don't fancy being this creature's lackey, but I may have no choice... unless I just leave.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #83991 /* ~You will yield to this place... if you do not understand... you have seen phantoms and illusions... shadows of those long since passed beyond the black veil of death to whatever reward... This place... harbors the anger... the fear... you will have to understand what built it... to pass by unharmed... seek direction... understand the paths... three paths lead away... all must be taken...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83989 /* ~Durlag's Tower

I have encountered a phantom, presumably of Durlag himself.  It said that the true spirit of Durlag passed long ago, but his hatred and fear, which built the tower, still maintain it.  It said I must understand two of the 'paths' that led to this place.  After that, 'the way' will become clear.  It seems to want something as well.  It said there was a new evil here, something not a part of the tower, that must be expelled.  I don't fancy being this creature's lackey, but I may have no choice... unless I just leave.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from:
  SAY #83992 /* ~Seek direction... understand the path... and the way will yield... three paths lead away... all are necessary... understand them to return...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83993 /* ~Durlag's Tower

I must seek direction and understand the three paths in order to 'return' and progress.~ */ EXIT
END

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~Global("vikingx","GLOBAL",2)
~ THEN BEGIN 5 // from:
  SAY #83994 /* ~You have found the room that gives direction, but are not done yet... The way is not yet clear... understand the paths that lead away... and you will return...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #83995 /* ~Durlag's Tower

The phantom of Durlag says I have not yet understood all the paths I need to understand.~ */ EXIT
END

IF WEIGHT #0 ~Global("Durtombx","GLOBAL",1)
Global("DurStatx","GLOBAL",1)
Global("vikingx","GLOBAL",2)
~ THEN BEGIN 6 // from:
  SAY #83996 /* ~You will survive this place... you understand what built the hate... the fear... now you must prevent it becoming worse... a creature below... powerful beyond all... you must remove... or it shall make this place its own... such a fortress... impenetrable if remade in his image...~ */
  IF ~~ THEN REPLY #83997 /* ~I am not in the business of helping phantoms. There is no profit in this for me.~ */ GOTO 7
  IF ~~ THEN REPLY #83998 /* ~If there is evil to be fought, I will defeat it.~ */ GOTO 8
  IF ~~ THEN REPLY #83999 /* ~I do not wish to make this fight mine. Why should I really care?~ */ GOTO 9
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #84000 /* ~Profit... not immediate... but profit is relative... how much profit do you lose if an new power takes this place... subjugates and kills... you must have economy to exploit, or what is profit... You do as you will... the way is clear... follow me...~ */
  IF ~~ THEN DO ~SetGlobal("TeleRoom","GLOBAL",1)
DialogueInterrupt(FALSE)
MoveToPoint([3923.881])
DialogueInterrupt(TRUE)
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.1
  SAY #84001 /* ~There is always evil to be fought... within and without... do as you will... the way is clear... follow me...~ */
  IF ~~ THEN DO ~SetGlobal("TeleRoom","GLOBAL",1)
DialogueInterrupt(FALSE)
MoveToPoint([3923.881])
DialogueInterrupt(TRUE)
DestroySelf()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 6.2
  SAY #84002 /* ~The fight becomes the concern of all... a new power threatens... upsets balance and measure... the way is clear... do as you wish... follow me...~ */
  IF ~~ THEN DO ~SetGlobal("TeleRoom","GLOBAL",1)
DialogueInterrupt(FALSE)
MoveToPoint([3923.881])
DialogueInterrupt(TRUE)
DestroySelf()
~ EXIT
END

IF WEIGHT #2 ~Global("Durtombx","GLOBAL",1)
~ THEN BEGIN 10 // from:
  SAY #83994 /* ~You have found the room that gives direction, but are not done yet... The way is not yet clear... understand the paths that lead away... and you will return...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~Global("DurStatx","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #84003 /* ~You have found the room that gives direction, but are not done yet... They way is not yet clear... understand the paths that lead away... and you will return...~ */
  IF ~~ THEN EXIT
END
