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

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

IF WEIGHT #2 /* Triggers after states #: 2 4 even though they appear after this state */
~!PartyHasItem("BAZPLO06")
~ THEN BEGIN 0 // from:
  SAY #67645 /* ~You notice something odd about the dragon.  Its blank eyes stare straight ahead, oblivious to your presence.  As you approach, the beast speaks... though it does not seem to be speaking to you.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #67650 /* ~On your knees before you enter the presence of Abazigal!  Bow before his ruthless might!~ [BAZDR307] */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("Attacked","LOCALS",1)
~ THEN BEGIN 2 // from:
  SAY #67651 /* ~The cavern echoes with the voice of the dragon, though the words seem somewhat forced and unnatural:~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #67652 /* ~Such impatience to seal your own fate.  Very well, I will grant your request.~ [BAZDR308] */
  IF ~~ THEN DO ~Enemy()~ EXIT
END

IF WEIGHT #1 ~PartyHasItem("BAZPLO06")
~ THEN BEGIN 4 // from:
  SAY #67653 /* ~Within the dragon's eyes you see a look of great suffering, as if the beast were in unfathomable pain.  It opens its jaws and speaks in its strangely unnatural voice:~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 5 // from: 13.0
  SAY #67654 /* ~Perhaps you have the power to break Abazigal's spell, Bhaalspawn.  You have the Scroll of Reversal.  I feel... its power.  Free me from... my bondage!~ */
  IF ~~ THEN REPLY #67656 /* ~What is my reward if I release you from this geas?~ */ GOTO 7
  IF ~~ THEN REPLY #67657 /* ~Your only freedom will come from death!~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 7.1 5.1
  SAY #67658 /* ~I... welcome... such... release.~ */
  IF ~~ THEN DO ~SetGlobal("Attacked","LOCALS",2)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.0
  SAY #67662 /* ~I will... give you... the wardstone... to pass.  You can... kill... Abazigal!~ */
  IF ~~ THEN REPLY #72277 /* ~Very well, I shall free you.  (read scroll)~ */ DO ~SetGlobal("FreedBazdra03","AR6004",1)
~ GOTO 8
  IF ~~ THEN REPLY #72278 /* ~Why don't I just kill you and take the stone?~ */ GOTO 6
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #67663 /* ~With the geas broken, the dragon's glazed eyes clear.  Its mighty voice rings out through the cavern, sure and strong:~ */
  IF ~~ THEN DO ~AddXP2DA("PLOT24A")
TakePartyItem("bazplo06")
DestroyItem("bazplo06")
~ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #67666 /* ~The enchantment is broken!  I am free from accursed servitude to that bastard half-breed!  Free to leave this place and never return!~ */
  IF ~~ THEN REPLY #67667 /* ~You promised to give me the wardstone to pass these gates.  Remember?~ */ GOTO 10
  IF ~~ THEN REPLY #67668 /* ~I set you free!  I demand you show me some respect, wyrm!~ */ GOTO 14
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #67669 /* ~You are a fool, puny <RACE>, to bargain with a dragon.  We care little for promises made to the likes of you.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #67671 /* ~But you are in luck, tiny <MANWOMAN>.  Abazigal must pay for what he did to me, but I am not eager to allow myself to fall victim to his snares once more.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #67675 /* ~Therefore, I will honor our agreement and give you the wardstone before I leave this vile place.  May you extract unholy vengeance on the mongrel half-breed's head!~ */
  IF ~~ THEN DO ~GiveItem("BAZPLO01",LastTalkedToBy)
SetGlobal("Leave","LOCALS",1)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 4.0
  SAY #72999 /* ~You have the stench of the Bhaalspawn... the same stench as Abazigal, though he tries to hide it behind the more palatable scent of his wyrm-kind heritage.~ [BAZDR310] */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 14 // from: 9.1
  SAY #73003 /* ~How foolish you are, challenging a dragon in a place such as this.~ [BAZDR309] */
  IF ~~ THEN DO ~SetGlobal("Attacked","LOCALS",2)
Enemy()~ EXIT
END
