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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)~ THEN BEGIN 0 // from:
  SAY #22046 /* ~You have arrived, but all is not well.  Your employers ask you to collect 20,000 gold; I will deal for 15,000, so return when you have your spending under control.~ */
  IF ~~ THEN REPLY #22054 /* ~He is head of a merchant house and his link to Shadow Thieves is blatant.  If he was to die and certain gear was at the scene, it would implicate the guild we oppose.~ */ GOTO 1
  IF ~ReactionGT(LastTalkedToBy,14)~ THEN REPLY #22055 /* ~Take this cloak and dagger and go kill Senior Armagaran Vulova.  When he is dead, put the cloak and dagger in the fountain in his house.~ */ GOTO 2
  IF ~ReactionLT(LastTalkedToBy,15)~ THEN REPLY #22056 /* ~He will die easy, though there may be guards.  His small house is in the Government District between the Jail and the Government Building.  Go.~ */ GOTO 3
  IF ~~ THEN REPLY #22057 /* ~Very well. He will not outlive the night.~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #22047 /* ~I see. It would seem you have enjoyed turning the tables on your former employers. You have given them a bruise, though it will not cripple them.~ */
  IF ~~ THEN DO ~SetGlobal("tranion","GLOBAL",1)
~ JOURNAL #23517 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #22048 /* ~This attack will have alarmed the guild, such that they fortify certain places. That draw of manpower will weaken others. Overall, my position is stronger.~ */
  IF ~~ THEN JOURNAL #23518 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #22049 /* ~Now I ask for more specific tasks that will disrupt the guild further.  I give you a choice: I have two tasks, each will require a different kind of person.~ */
  IF ~~ THEN DO ~Enemy()
ActionOverride("crew1",Enemy())
ActionOverride("crew1",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew2",Enemy())
ActionOverride("crew2",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew3",Enemy())
ActionOverride("crew3",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew4",Enemy())
ActionOverride("crew4",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew5",Enemy())
ActionOverride("crew5",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew6",Enemy())
ActionOverride("crew6",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew7",Enemy())
ActionOverride("crew7",AttackReevaluate(LastTalkedToBy("kieres"),8)
~ JOURNAL #23519 /* ~Inside the Drow City

The gnome patrol is dead.  Solaufein has returned to Ust Natha, disgusted, and commanded that I search the bodies for the patrol leader's helmet and return to the tavern to meet with Phaere.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 0.3
  SAY #22050 /* ~Choose; they cannot both be done. One is... unseemly, so if you claim to be 'good' you should choose the second, a sickly hero's task. Which do you prefer?~ */
  IF ~~ THEN DO ~Enemy()
ActionOverride("crew1",Enemy())
ActionOverride("crew1",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew2",Enemy())
ActionOverride("crew2",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew3",Enemy())
ActionOverride("crew3",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew4",Enemy())
ActionOverride("crew4",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew5",Enemy())
ActionOverride("crew5",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew6",Enemy())
ActionOverride("crew6",AttackReevaluate(LastTalkedToBy("kieres"),8)
ActionOverride("crew7",Enemy())
ActionOverride("crew7",AttackReevaluate(LastTalkedToBy("kieres"),8)Enemy()~ JOURNAL #23519 /* ~Inside the Drow City

The gnome patrol is dead.  Solaufein has returned to Ust Natha, disgusted, and commanded that I search the bodies for the patrol leader's helmet and return to the tavern to meet with Phaere.~ */ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 6 even though they appear after this state */
~Exists("detran")
~ THEN BEGIN 5 // from:
  SAY #22051 /* ~I do not wish to dirty my hands more than they are. The hero's task is my choice.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~PartyHasItem("misc97")
~ THEN BEGIN 6 // from:
  SAY #22052 /* ~I am not above a little skullduggery. I will do the unseemly task.~ */
  IF ~~ THEN REPLY #22058 /* ~This is a bit harsher than I thought. Could I not just rough him up?~ */ DO ~TakePartyItem("misc97")~ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #22053 /* ~Very well, it calls for the murder of a man.  Not a truly innocent man, but hardly a villain of epic scope. You must kill, blaming the murder on the Shadow Thieves.~ */
  IF ~~ THEN DO ~GiveItem("MISC1C",LastTalkedToBy)
~ JOURNAL #23518 /* ~~ */ EXIT
END

IF WEIGHT #3 ~True~ THEN BEGIN 8 // from:
  SAY #22085 /* ~Oh happy day! You have come to collect Minsc and Boo and together we shall put our collective boots to our enemies!~ */
  IF ~~ THEN EXIT
END
