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

BEGIN ~_RESAR~

IF ~~ THEN BEGIN 0 // from:
  SAY #81116 /* ~A very expensive setback you have cost us!  Your incompetence means counterfeit ships in ports by years end!  A more profound dishonor to the brilliant craftsmen of my land I cannot imagine!  Protests from our statesmen will be launched, and your local governor will be made to see our point of view.  In the between, all record of this furtive attempt will be erased.  Apologies, but this includes you!~ */
  IF ~~ THEN DO ~EraseJournalEntry(81148)
SetGlobal("ResarAttack","GLOBAL",1)
Shout(3)
Enemy()
~ SOLVED_JOURNAL #81117 /* ~Alatos and the Thieves' Guild

I failed in my attempt to bring back all of the skyship components for Alatos and Resar, his Halruaan contact.  Evidently, all record of the operation is to be erased to avoid any bad publicity, so I was sentenced to die for my failure.~ */ EXIT
END

IF ~~ THEN BEGIN 1 // from:
  SAY #81118 /* ~The recovery of our secret is most welcome, but the scrutiny your actions bring will do much damage.  I must erase all knowledge of this plan, by removing all expendable people.  This unfortunately means you.  Apologies, but you must die!~ */
  IF ~~ THEN DO ~EraseJournalEntry(81148)
SetGlobal("ResarAttack","GLOBAL",1)
Shout(3)
Enemy()
~ SOLVED_JOURNAL #81119 /* ~Alatos and the Thieves' Guild

I successfully retrieved the skyship components for Alatos and Resar, his Halruaan contact.  Unfortunately, they want to keep the whole affair as secret as possible, and I have been deemed expendable.  It seems likely this was planned from the start.~ */ EXIT
END

IF ~~ THEN BEGIN 2 // from:
  SAY #81120 /* ~Alatos was most assuring in his description of your abilities.  Right he was, and it is unfortunate I must close all loose ends.  This includes potential loose tongues, and though talented, you are also expendable.  I offer my sorrows, but you must die!~ */
  IF ~~ THEN DO ~EraseJournalEntry(81148)
SetGlobal("ResarAttack","GLOBAL",1)
Shout(3)
Enemy()
~ SOLVED_JOURNAL #81119 /* ~Alatos and the Thieves' Guild

I successfully retrieved the skyship components for Alatos and Resar, his Halruaan contact.  Unfortunately, they want to keep the whole affair as secret as possible, and I have been deemed expendable.  It seems likely this was planned from the start.~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #81121 /* ~This was risky venture from the start, and though you have undoubtedly slowed ship building, they will now be on guard.  Further thievery is impossible, so now to expensive diplomacy.  All record of this attempt must be destroyed, including all those expendable.  My sorrow to your family, but you must die!~ */
  IF ~~ THEN DO ~EraseJournalEntry(81148)
SetGlobal("ResarAttack","GLOBAL",1)
Shout(3)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 4 // from:
  SAY #81122 /* ~Wha... GURK!~ */
  IF ~~ THEN DO ~Kill("resar")
~ EXTERN ~_ALATOS~ 15
END

IF ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 5 // from:
  SAY #81160 /* ~Sorry I am, friend.  It doesn't matter I say, for it has been preordained you are to die.  I cannot halt the others from attacking.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from:
  SAY #81161 /* ~I shall enjoy your demise!~ */
  IF ~~ THEN EXIT
END

IF ~True()
~ THEN BEGIN 7 // from:
  SAY #81162 /* ~Don't bother me!  Do you know who I am?  I'm an envoy of the mighty nation of Halruaa, and if you value your miserable life, you'll step away immediately.~ */
  IF ~~ THEN EXIT
END
