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

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

IF WEIGHT #2 /* Triggers after states #: 5 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #1420 /* ~Not half as much as you are going to. You are too much of a bastard to live!~ */
  IF ~~ THEN REPLY #1425 /* ~Your threats are nothing.  You came expecting an old man hiding, but I had hoped Jaheira would find me, because she would be crippled by that time!~ */ GOTO 1
  IF ~~ THEN REPLY #1426 /* ~Your threats are nothing.  You came expecting an old man in hiding, but I hoped Jaheira would find me because by the time she did she would be utterly crippled!~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #1421 /* ~She can be saved, so you ARE going to remove the curse because I am asking ever so nicely.~ */
  IF ~~ THEN REPLY #1428 /* ~Not half as much as you are going to. You are too much of a bastard to live!~ */ GOTO 2
  IF ~~ THEN REPLY #1429 /* ~She is alive, and you ARE going to remove the curse because I am asking ever so nicely.~ */ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #1422 /* ~I have come to bargain with you. What do you want in exchange for removing what you have inflicted?~ */
  IF ~~ THEN DO ~ActionOverride("Lothander",EscapeArea())
SetGlobal("LothanderMove","GLOBAL",3)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1 0.1
  SAY #1423 /* ~I am here to ask you to remove the curse. Lives need not be wasted.~ */
  IF ~~ THEN REPLY #1427 /* ~I have what I want!  I have her at death's door while I gloat!  Will you bribe me?  No, you do not have enough gold to raise me to the levels I was accustomed.~ */ DO ~ActionOverride("Lothander",EscapeArea())
SetGlobal("LothanderMove","GLOBAL",3)
EscapeArea()
~ JOURNAL #7081 /* ~~ */ EXIT
  IF ~~ THEN REPLY #1430 /* ~I have come to bargain with you, Ployer. What do you want in exchange for removing what you have inflicted?~ */ DO ~ActionOverride("Lothander",EscapeArea())
SetGlobal("LothanderMove","GLOBAL",3)
EscapeArea()
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 5 even though they appear after this state */
~Global("MarekMove","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #1424 /* ~Oh, but I am not here alone! From the shadows step my assassins! They cost me everything, but they are well worth it! Kill them! Destroy those that ruined me!~ */
  IF ~~ THEN DO ~SetGlobal("PartyCured","GLOBAL",1)
DisplayString("Marek",20675)
AddexperienceParty(10000)
Enemy()
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #6296 /* ~Crom Faeyr Scroll~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #9167 /* ~It is no jest.  I'll send you copy, if your wife does not already have one.~ */
  IF ~~ THEN EXIT
END
