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

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

IF WEIGHT #1 /* Triggers after states #: 5 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #79785 /* ~Could we have a moment of your time?~ */
  IF ~~ THEN REPLY #79786 /* ~Not right now.~ */ GOTO 1
  IF ~~ THEN REPLY #79787 /* ~What is it?~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #79788 /* ~Actually, we insist, we need to talk to you about your involvement with the Iron Throne.~ */
  IF ~~ THEN REPLY #79789 /* ~We're not interested.~ */ GOTO 2
  IF ~~ THEN REPLY #79790 /* ~All right, go ahead, what do you want.~ */ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #79791 /* ~Well, we tried to warn you.~ */
  IF ~~ THEN DO ~ActionOverride("lothander",EscapeArea())
SetGlobal("LothanderMove","GLOBAL",3)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1 0.1
  SAY #79792 /* ~First, let me introduce the two of us; I'm Marek and this is my companion, Lothander.  I thought it would be nice for you to know our names, 'cause if you don't take our advice you'll be seeing more of us two.  I know that you've been taking an active interest in destroying the Iron Throne; don't try to deny it.  My companion and I are in the employ of the aforementioned Throne.  We thought it would be polite to give you one last warning: stop interfering with our employer's business.  You can decide to disregard this warning, but if you do, it'll be the last decision you ever make.  See ya later.~ */
  IF ~~ THEN REPLY #79793 /* ~Make all the threats you want.  We aren't the ones with one foot in the grave. It's anybody stupid enough to get in our way who will pay the piper.~ */ DO ~ActionOverride("lothander",EscapeArea())
SetGlobal("LothanderMove","GLOBAL",3)
EscapeArea()
~ JOURNAL #79794 /* ~Two assassins working for the Iron Throne have threatened us.  Their names are Marek and Lothander, and they have warned us to back away from the Iron Throne.~ */ EXIT
  IF ~~ THEN REPLY #79795 /* ~Geee, thanks for the warning.~ */ DO ~ActionOverride("lothander",EscapeArea())
SetGlobal("LothanderMove","GLOBAL",3)
EscapeArea()
~ JOURNAL #79794 /* ~Two assassins working for the Iron Throne have threatened us.  Their names are Marek and Lothander, and they have warned us to back away from the Iron Throne.~ */ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 even though they appear after this state */
~Global("MarekMove","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #79796 /* ~So you've come, I assume, to take the antidote.  All you're going to accomplish is to hasten your death, but I think that isn't the foremost worry you have at the moment.~ */
  IF ~~ THEN DO ~SetGlobal("PartyCured","GLOBAL",1)
AddexperienceParty(10000)
EraseJournalEntry(81926)
EraseJournalEntry(81266)
EraseJournalEntry(81282)
EraseJournalEntry(81287)
EraseJournalEntry(81293)
EraseJournalEntry(81568)
Enemy()
~ SOLVED_JOURNAL #88965 /* ~Marek and Lothander

My efforts to be rid of Marek's poison once and for all finally brought me back to the perpetrator himself.  He refused to yield the antidote, forcing me to fight for a chance at life.~ */ EXIT
  IF ~Global("X#XanMarek1","GLOBAL",0)
InParty("xan")
InMyArea("xan")
!StateCheck("xan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#XanMarek1","GLOBAL",1)~ EXTERN ~_XANJ~ 144
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #79797 /* ~Well, hey friends.  Here, have the antidote.  I didn't want it anyway.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #79798 /* ~I'll have your skull for what you've done!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from:
  SAY #99748 /* ~I guess that's a chance you'll just have to take.~ */
  IF ~~ THEN DO ~SetGlobal("PartyCured","GLOBAL",1)
AddexperienceParty(10000)
EraseJournalEntry(81926)
EraseJournalEntry(81266)
EraseJournalEntry(81282)
EraseJournalEntry(81287)
EraseJournalEntry(81293)
EraseJournalEntry(81568)
Enemy()
~ SOLVED_JOURNAL #88965 /* ~Marek and Lothander

My efforts to be rid of Marek's poison once and for all finally brought me back to the perpetrator himself.  He refused to yield the antidote, forcing me to fight for a chance at life.~ */ EXIT
END
