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

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

IF WEIGHT #2 /* Triggers after states #: 7 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #1562 /* ~What is it you think you have to offer?~ */
  IF ~Global("BrielbaraMove","GLOBAL",1)
~ THEN REPLY #1568 /* ~Speak then, but do not waste my time.~ */ GOTO 1
  IF ~~ THEN REPLY #1569 /* ~I like those odds, but would 500 gold be enough?~ */ GOTO 2
  IF ~~ THEN REPLY #1570 /* ~No, I don't think I will be discussing this any further. I will take my chances later.~ */ GOTO 3
  IF ~~ THEN REPLY #11266 /* ~Our trees will die, too!~ */ EXIT
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #1563 /* ~If words will not convey my meaning then perhaps violence will.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #1564 /* ~I would not try it here. Others know nothing of our... disagreement. They will see you attack me, and will respond in kind. There will be no showdown here.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.2
  SAY #1565 /* ~Another time then. I look forward to repaying you for the suffering of my comrade.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 7 even though they appear after this state */
~HPLT(Myself,11)
Allegiance(Myself,ENEMY)
~ THEN BEGIN 4 // from:
  SAY #1566 /* ~A pity we could not reach an arrangement.  It would have been a wonderful surprise.  I wish you well, though we will surely meet again in the course of business.~ */
  IF ~~ THEN REPLY #1571 /* ~I like those odds, but would 500 gold be enough?~ */ DO ~SetGlobal("YagoFight","GLOBAL",1)
~ EXIT
  IF ~Global("BrielbaraMove","GLOBAL",1)
~ THEN REPLY #1572 /* ~I have a counter offer to make. How much to have you kill Ployer yourselves?~ */ GOTO 5
  IF ~~ THEN REPLY #11267 /* ~Oh thank you, Keldorn... One of these days you'll have to teach me all the things you say I've learned.~ */ DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 4.1
  SAY #1567 /* ~I see. Having met Mister Ployer I think I like those odds. You have a deal.~ */
  IF ~~ THEN DO ~ActionOverride(Player1,smallwait(1))
ActionOverride(Player2,smallwait(1))
ActionOverride(Player3,smallwait(1))
ActionOverride(Player4,smallwait(1))
ActionOverride(Player5,smallwait(1))
ActionOverride(Player6,smallwait(1))
GiveItem("BOOK70",LastTalkedToBy)
ChangeEnemyAlly(Myself,NEUTRAL)
EscapeArea()
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 7 even though they appear after this state */
~True()
~ THEN BEGIN 6 // from:
  SAY #6441 /* ~Oooh, I'm shaking! Haha!~ [SSWORD70] */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 7 // from:
  SAY #6442 /* ~Oooh, throw a coin in that fountain! Hahahaha!~ [SSWORD71] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from:
  SAY #9035 /* ~Sorry, I'll be going.~ */
  IF ~~ THEN EXIT
END
