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

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

IF WEIGHT #1 /* Triggers after states #: 9 even though they appear after this state */
~True()~ THEN BEGIN 0 // from:
  SAY #73411 /* ~Good day to you, <SIRMAAM>.  Strangers are a rare sight here in Saradush these days.~ */
  IF ~Global("lazarus","GLOBAL",2)~ THEN REPLY #73412 /* ~I want to ask you some questions about a stolen spellbook.~ */ GOTO 2
  IF ~~ THEN REPLY #73413 /* ~Do you know anything about Melissan?~ */ GOTO 1
  IF ~!Dead("gromnir")~ THEN REPLY #73414 /* ~Do you know of any way I can get into Gromnir's castle?~ */ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1
  SAY #73415 /* ~I assure you, my <LADYLORD>, I know nothing of that.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.0
  SAY #73416 /* ~I see where this is going!  Well, Lazarus is barking up the wrong tree!  I was at the Tankard Tree all night long... and I have witnesses to prove it!~ */
  IF ~Global("Squip","GLOBAL",1)~ THEN REPLY #73417 /* ~I talked to Squip.  He told me he stole the book and gave it to you!~ */ GOTO 6
  IF ~~ THEN REPLY #73418 /* ~I know you took the book, Hectan.  Save us some time and confess.~ */ GOTO 3
  IF ~~ THEN REPLY #73424 /* ~I'll be back when I have proof you were involved!~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 2.1
  SAY #73419 /* ~Lazarus is wrong!  I didn't take it!  And there's no evidence to say I did!~ */
  IF ~~ THEN REPLY #73420 /* ~Okay, I'll go.  But if I find out you're lying...~ */ GOTO 4
  IF ~ReputationGT(LastTalkedToBy,9)~ THEN REPLY #73421 /* ~Give me that book or I'll pry it from your cold dead hands!~ */ GOTO 5
  IF ~ReputationLT(LastTalkedToBy,10)~ THEN REPLY #73422 /* ~Give me that book or I'll pry it from your cold dead hands!~ */ GOTO 6
END

IF ~~ THEN BEGIN 4 // from: 3.0 2.2
  SAY #73423 /* ~I have been falsely accused.  I stand by my alibi:  I was busy drinking all night!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1
  SAY #73425 /* ~You can kill me, but you will be killing an innocent man.  And I do not believe you to be such a savage monster.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 3.2 2.0
  SAY #73427 /* ~Okay... I admit I took the book.  But I don't have it on me.  If you kill me, Lazarus will never get it!~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #73429 /* ~I'm not a bad man.  Really.  I just took the book because I thought I could use it to escape this city.  But the damn thing is locked with some kind of spell... it's useless to me!~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #73431 /* ~Lazarus has a teleportation scroll to escape this city... I know it!  If you get me that scroll, I'll give you the spellbook.  Do we have a deal?~ */
  IF ~~ THEN REPLY #73437 /* ~I'm not your butler!  Go get the scroll from Lazarus yourself.~ */ GOTO 9
  IF ~~ THEN REPLY #73439 /* ~Very well, I will go talk to Lazarus once more.~ */ GOTO 9
  IF ~~ THEN REPLY #73440 /* ~I think I'll just kill you instead.~ */ GOTO 10
END

IF WEIGHT #0 ~Global("hectan","GLOBAL",2)~ THEN BEGIN 9 // from: 8.1 8.0
  SAY #73433 /* ~Speak to Lazarus or don't... it's your choice.  But until you have the scroll, we have nothing more to discuss.~ */
  IF ~!PartyHasItem("PLOT18A")
~ THEN DO ~SetGlobal("hectan","GLOBAL",2)~ UNSOLVED_JOURNAL #73489 /* ~Lazarus' Missing Spellbook

Hectan admits he took the book, but will only exchange it for a teleportation scroll to escape the city.  Hectan is convinced Lazarus has just such a scroll.~ */ EXIT
  IF ~PartyHasItem("PLOT18A")
~ THEN REPLY #73451 /* ~I have the scroll right here.~ */ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 8.2
  SAY #73434 /* ~Well I won't make it easy for you!~ */
  IF ~~ THEN DO ~Enemy()~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 9.1
  SAY #73448 /* ~You have the scroll?  Quickly, give it to me!  Here... take the spellbook.  I can't use it anyway.  But this scroll... this scroll is my ticket out of here!~ */
  IF ~~ THEN REPLY #73455 /* ~I have to warn you... the scroll won't work.  Lazarus said that if you use it, you'll die.~ */ DO ~GiveItem("PLOT18B",LastTalkedToBy)
TakePartyItem("PLOT18A")
~ GOTO 13
  IF ~~ THEN REPLY #73457 /* ~You should use that scroll right now... I'm interested to see how it works.~ */ DO ~GiveItem("PLOT18B",LastTalkedToBy)
TakePartyItem("PLOT18A")
DestroyItem("PLOT18A")~ GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.1
  SAY #73459 /* ~Yes... the longer I wait, the more chance I have of losing the scroll!  I shall use it right now!~ */
  IF ~~ THEN DO ~ReputationInc(-1)
ForceSpellRES("jw100dmg",Myself)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 11.0
  SAY #73460 /* ~You are lying!  You must be!  But, why would you lie to me now that the exchange has been made?  And why would Lazarus have not left the city if the scroll actually works?  Perhaps... perhaps you are right.  I must think hard on this before I use the scroll.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END
