// creator  : weidu.exe (version 23600)
// argument : BPDINGUE.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~BPDINGUE~

IF ~  GlobalLT("OPENING","LOCALS",1)
OR(2)
Global("TIER","GLOBAL",0)
Global("TIER","GLOBAL",1)
~ THEN BEGIN 0 // from: 21.1
  SAY #29447 /* ~...day is coming soon, and then Baeloth shall pay! What's this? More useless captives for the Black Pits? Have you come to buy my scrolls?~ [BPG101] */
  IF ~~ THEN REPLY #29448 /* ~I need magical scrolls, what do you have for sale?~ */ DO ~SetGlobal("OPENING","LOCALS",1)
StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29449 /* ~I couldn't help but overhear your mumbling to yourself.~ */ DO ~SetGlobal("OPENING","LOCALS",1)
~ GOTO 1
  IF ~~ THEN REPLY #29450 /* ~This is one of those awkward moments when I feel I should just walk on by.~ */ DO ~SetGlobal("OPENING","LOCALS",1)
~ EXIT
END

IF ~~ THEN BEGIN 1 // from: 0.1
  SAY #29451 /* ~I do not mumble! I plot. I scheme. And I bide my time.~ [BPG102] */
  IF ~~ THEN REPLY #29452 /* ~For what?~ */ GOTO 2
  IF ~~ THEN REPLY #29453 /* ~Now we're talking. If you've got an escape plan, I want in.~ */ GOTO 3
  IF ~~ THEN REPLY #29454 /* ~In the meantime, maybe you can just sell me some scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #29455 /* ~For revenge, of course! Baeloth's geas cannot last forever, no matter what he says. The moment I am free to do as I will, he shall pay for my subjugation.~ [BPG103] */
  IF ~~ THEN REPLY #29456 /* ~You aren't the only one he's enslaved.~ */ GOTO 4
  IF ~~ THEN REPLY #29457 /* ~Do you really think you can take him on by yourself?~ */ GOTO 4
  IF ~~ THEN REPLY #29458 /* ~That's nice. Now how about those scrolls?~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1
  SAY #29459 /* ~Escape? I do not speak of escape. I intend to have my revenge on this monstrous drow.~ [BPG104] */
  IF ~~ THEN REPLY #29460 /* ~Excellent. Count me in.~ */ GOTO 5
  IF ~~ THEN REPLY #29461 /* ~No offense, but I notice you don't exactly have an army lined up behind you.~ */ GOTO 4
  IF ~~ THEN REPLY #29462 /* ~Good luck with that. Now, about those scrolls...~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 3.1 2.1 2.0
  SAY #29463 /* ~I do not care about the others. I shall be the one who wrings the last drops of life out of that wizard's neck, and woe unto those who try to steal my revenge away.~ [BPG105] */
  IF ~~ THEN REPLY #29464 /* ~I'll stay out of your way, then.~ */ EXIT
  IF ~~ THEN REPLY #29465 /* ~You certainly seem committed. Or maybe you should BE committed. Either way, let's change the subject to scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29466 /* ~You mentioned some scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.0
  SAY #29467 /* ~I need no help! I have harbored this fury for so long, I know that nothing will stop it when I am finally unleashed.~ [BPG106] */
  IF ~~ THEN REPLY #29468 /* ~Let's see some of those scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29469 /* ~It's time for me to mosey.~ */ EXIT
END

IF ~  GlobalLT("OPENING","LOCALS",2)
Global("TIER","GLOBAL",2)
~ THEN BEGIN 6 // from: 21.2
  SAY #29470 /* ~Watch yourself, <CHARNAME>. With every battle you anger Baeloth more and more. Soon he will pit you against an unbeatable foe.~ [BPG201] */
  IF ~~ THEN REPLY #29448 /* ~I need magical scrolls, what do you have for sale?~ */ DO ~SetGlobal("OPENING","LOCALS",2)
StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29471 /* ~That's no problem. I'll beat anything he throws at me.~ */ DO ~SetGlobal("OPENING","LOCALS",2)
~ GOTO 7
  IF ~~ THEN REPLY #29472 /* ~Perhaps if I beat enough of his monsters, he'll become angry enough to face me himself.~ */ DO ~SetGlobal("OPENING","LOCALS",2)
~ GOTO 8
  IF ~~ THEN REPLY #29367 /* ~I'll be on my way.~ */ DO ~SetGlobal("OPENING","LOCALS",2)
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 9.2 6.1
  SAY #29473 /* ~You do not lack bravado. Little good that will do you against Baeloth's endless supply of foes.~ [BPG202] */
  IF ~~ THEN REPLY #29448 /* ~I need magical scrolls, what do you have for sale?~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29474 /* ~I'm so glad we had this time together. But now it's over.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.2
  SAY #29475 /* ~No, that will never happen. It mustn't! If any of us gets to fight that hateful drow, it must be me!~ [BPG203] */
  IF ~~ THEN REPLY #29448 /* ~I need magical scrolls, what do you have for sale?~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29476 /* ~You and your rage look like you could use some privacy. I'm going to leave you two alone.~ */ EXIT
END

IF ~  GlobalLT("OPENING","LOCALS",3)
Global("TIER","GLOBAL",3)
GlobalLT("LAST_BATTLE","GLOBAL",304)
~ THEN BEGIN 9 // from: 21.3
  SAY #29477 /* ~I begin to envy you, <RACE>. While I have nursed my vengeance quietly, you have shamed Baeloth in the arena. Just be sure you do not overstep your bounds and attack the drow yourself.~ [BPG301] */
  IF ~~ THEN REPLY #29478 /* ~Enough talk. Show me your magical scrolls.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29479 /* ~What do you mean about overstepping my bounds? I thought you'd be glad to see anyone punish Baeloth for his crimes.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
~ GOTO 10
  IF ~~ THEN REPLY #29480 /* ~That's big talk for a glorified store clerk. I'll do what I want.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
~ GOTO 7
  IF ~~ THEN REPLY #29643 /* ~I have no need of your goods now. Farewell.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 9.1
  SAY #29481 /* ~Baeloth earned my vengeance long before you crossed his path. If anyone is to wreak vengeance on him, it shall be me.~ [BPG302] */
  IF ~~ THEN REPLY #29478 /* ~Enough talk. Show me your magical scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29482 /* ~"It shall be I."~ */ GOTO 11
  IF ~~ THEN REPLY #29483 /* ~Bored now.~ */ EXIT
END

IF ~~ THEN BEGIN 11 // from: 10.1
  SAY #29484 /* ~It shall be me!~ [BPG303] */
  IF ~~ THEN REPLY #29478 /* ~Enough talk. Show me your magical scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29485 /* ~No, you don't understand. "It shall be I."~ */ GOTO 12
  IF ~~ THEN REPLY #29486 /* ~You are too stupid for revenge.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 11.1
  SAY #29487 /* ~No, YOU don't understand. It shall be ME!~ [BPG304] */
  IF ~~ THEN REPLY #29478 /* ~Enough talk. Show me your magical scrolls.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29488 /* ~No, you see you want the nominative pronoun in that sentence. "It shall be I."~ */ GOTO 13
  IF ~~ THEN REPLY #29489 /* ~Sigh.~ */ EXIT
END

IF ~~ THEN BEGIN 13 // from: 12.1
  SAY #29490 /* ~Do not threaten me with your arcane words!~ [BPG305] */
  IF ~~ THEN REPLY #29491 /* ~Sigh. Show me your magical scrolls. I'll correct their grammar.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29492 /* ~You know what? Never mind.~ */ EXIT
END

IF ~  GlobalLT("OPENING","LOCALS",4)
Global("TIER","GLOBAL",3)
Global("LAST_BATTLE","GLOBAL",304)
~ THEN BEGIN 14 // from: 21.4
  SAY #29493 /* ~You must be very proud of yourself. Well, that won't last! Baeloth will tear you to pieces!~ [BPG401] */
  IF ~~ THEN REPLY #29494 /* ~I may surprise you yet.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
~ GOTO 15
  IF ~~ THEN REPLY #29495 /* ~You sound as if you'd enjoy seeing that.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
~ GOTO 15
  IF ~~ THEN REPLY #29496 /* ~Shut up and show me your wares.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 15 // from: 14.1 14.0
  SAY #29497 /* ~You have no more right to trespass on duergar territory than that wretched drow has. Nothing would please me more than to destroy you both!~ [BPG402] */
  IF ~~ THEN REPLY #29498 /* ~In your own way, you've been helping me get close enough to kill Baeloth.~ */ GOTO 16
  IF ~~ THEN REPLY #29499 /* ~That's the worst sales pitch I've ever heard.~ */ GOTO 16
  IF ~~ THEN REPLY #29500 /* ~I don't have time for this. Show me your wares.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 15.1 15.0
  SAY #29501 /* ~When Baeloth dies, it must be at my hand and my hand alone. I will not allow you or anyone else to steal my revenge.~ [BPG403] */
  IF ~~ THEN REPLY #29502 /* ~Why don't you help me fight him?~ */ GOTO 17
  IF ~~ THEN REPLY #29503 /* ~Knock yourself out, Dingy. Go get him!~ */ GOTO 18
  IF ~~ THEN REPLY #29504 /* ~Show me your wares.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #29505 /* ~Help you?! An outsider?! Laduguer curse me if I ever raise a hand to aid you, <RACE>!~ [BPG404] */
  IF ~~ THEN REPLY #29506 /* ~If that's the way you feel, there's no point talking with you anymore.~ */ EXIT
  IF ~~ THEN REPLY #29507 /* ~Or maybe you can just win him over with your obvious charm and diplomacy. Oh, look at the time. I must be going.~ */ EXIT
  IF ~~ THEN REPLY #29504 /* ~Show me your wares.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 18 // from: 16.1
  SAY #29508 /* ~You know I cannot fight him so long as I am bound by the geas. Curse you for taunting me so!~ [BPG405] */
  IF ~~ THEN REPLY #29509 /* ~I was not taunting... Oh, never mind.~ */ GOTO 19
  IF ~~ THEN REPLY #29510 /* ~How can I resist? You make it so easy.~ */ GOTO 19
  IF ~~ THEN REPLY #29504 /* ~Show me your wares.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 19 // from: 18.1 18.0
  SAY #29511 /* ~You will rue your bravado soon enough. Baeloth is as treacherous as he is mad. You will never survive a fight with him. He will never face you in fair combat.~ [BPG406] */
  IF ~~ THEN REPLY #29512 /* ~Then I'll simply have to surprise him as well as you.~ */ EXIT
  IF ~~ THEN REPLY #29513 /* ~In that case, I'm going to need the best gear money can buy. Show me what you've got.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
END

IF ~  Global("BAELOTH_DEFEATED","GLOBAL",1)
~ THEN BEGIN 20 // from:
  SAY #29514 /* ~No! No! I will not have this! I should have been the one to slay Baeloth, not some miserable outsider!~ [BPTZ112] */
  IF ~~ THEN DO ~Enemy()
ActionOverride("BPDINGUE",ApplySpell("BPBAELOT",WIZARD_MIRROR_IMAGE))
ActionOverride("BPDINGUE",ApplySpell("BPBAELOT",WIZARD_STONE_SKIN))
~ EXIT
END

IF ~  True()
~ THEN BEGIN 21 // from:
  SAY #32143 /* ~Yes? YES? Out with it!~ */
  IF ~~ THEN REPLY #29504 /* ~Show me your wares.~ */ DO ~StartStore("BPDING01",LastTalkedToBy(Myself))
~ EXIT
  IF ~  Global("OPENING","LOCALS",1)
~ THEN REPLY #32149 /* ~What were you saying earlier?~ */ GOTO 0
  IF ~  Global("OPENING","LOCALS",2)
~ THEN REPLY #32149 /* ~What were you saying earlier?~ */ GOTO 6
  IF ~  Global("OPENING","LOCALS",3)
~ THEN REPLY #32149 /* ~What were you saying earlier?~ */ GOTO 9
  IF ~  Global("OPENING","LOCALS",4)
~ THEN REPLY #32149 /* ~What were you saying earlier?~ */ GOTO 14
  IF ~~ THEN REPLY #29492 /* ~You know what? Never mind.~ */ EXIT
END
