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

BEGIN ~BPBRENDA~

IF ~  GlobalLT("OPENING","LOCALS",1)
OR(2)
Global("TIER","GLOBAL",0)
Global("TIER","GLOBAL",1)
~ THEN BEGIN 0 // from: 27.3
  SAY #29319 /* ~More playthings for Baeloth? They dragged off the bodies of the last ones just yesterday! I suppose you've wisely decided that being light on your feet is the only way to prolong your life?~ [BPE101] */
  IF ~~ THEN REPLY #29320 /* ~That's right. What can you show me in some light armor?~ */ DO ~SetGlobal("OPENING","LOCALS",1)
~ EXTERN ~BPMAGDA~ 7
  IF ~~ THEN REPLY #29321 /* ~How many people has Baeloth summoned here?~ */ DO ~SetGlobal("OPENING","LOCALS",1)
~ GOTO 4
  IF ~~ THEN REPLY #29322 /* ~Light armor isn't what I need now. Farewell.~ */ DO ~SetGlobal("OPENING","LOCALS",1)
~ EXIT
END

IF ~~ THEN BEGIN 1 // from: BPMAGDA:7.0
  SAY #29323 /* ~It is... a complicated matter. I do not wish to discuss it with you.~ [BPE103] */
  IF ~~ THEN EXTERN ~BPMAGDA~ 8
END

IF ~~ THEN BEGIN 2 // from: BPMAGDA:7.1
  SAY #29324 /* ~That is not... Never mind. I will say no more about it.~ [BPE105] */
  IF ~~ THEN EXTERN ~BPMAGDA~ 9
END

IF ~~ THEN BEGIN 3 // from: BPMAGDA:7.2
  SAY #29325 /* ~I am glad you understand. There are too many wagging tongues around here already.~ [BPE107] */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 0.1
  SAY #29326 /* ~Dozens, perhaps hundreds by now. I try not to become involved, since most don't survive long in the Black Pits. And I have no love for your kind, <RACE>.~ [BPE108] */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0 3.0 BPMAGDA:9.0 BPMAGDA:8.0
  SAY #29327 /* ~Now, can I sell you some light armor?~ [BPE109] */
  IF ~~ THEN REPLY #29328 /* ~Yes, show me what you have for sale.~ */ DO ~StartStore("BPBREN01",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29329 /* ~No, I'd best be moving on.~ */ EXIT
END

IF ~  GlobalLT("OPENING","LOCALS",2)
Global("TIER","GLOBAL",2)
~ THEN BEGIN 6 // from: 27.4
  SAY #29330 /* ~You've made quite a splash in the arena, and I'm not even talking about the blood.~ [BPE201] */
  IF ~~ THEN REPLY #29331 /* ~I need armor. Show me your stock.~ */ DO ~SetGlobal("OPENING","LOCALS",2)
StartStore("BPBREN02",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29332 /* ~What's wrong between you and Magda? Are you seeing someone else?~ */ DO ~SetGlobal("OPENING","LOCALS",2)
~ GOTO 7
  IF ~~ THEN REPLY #29333 /* ~On second thought, I don't have time to talk to you.~ */ DO ~SetGlobal("OPENING","LOCALS",2)
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 6.1
  SAY #29334 /* ~Of course not! I love Magda. It's just... I don't want anything to happen to any of us. Baeloth torments us all, and he knows how much I love my wife.~ [BPE202] */
  IF ~~ THEN REPLY #29335 /* ~You aren't making any sense.~ */ GOTO 9
  IF ~~ THEN REPLY #29336 /* ~Has he forbidden you from speaking to her?~ */ GOTO 9
  IF ~~ THEN REPLY #29337 /* ~A duergar who loves his wife? You expect me to believe that? I've SEEN your wife, you know.~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.2
  SAY #29338 /* ~You shut your mouth! I love Magda! It's not that I don't want to talk with her, it's just...~ [BPE203] */
  IF ~~ THEN REPLY #29339 /* ~Yes? It's just what?~ */ GOTO 9
  IF ~~ THEN REPLY #21253 /* ~Go on.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.1 8.0 7.1 7.0
  SAY #29340 /* ~I've already said too much. I'm supposed to sell you armor. Do you want any?~ [BPE204] */
  IF ~~ THEN REPLY #29328 /* ~Yes, show me what you have for sale.~ */ DO ~StartStore("BPBREN02",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29341 /* ~No, we're done here.~ */ EXIT
END

IF ~  GlobalLT("OPENING","LOCALS",3)
Global("TIER","GLOBAL",3)
GlobalLT("LAST_BATTLE","GLOBAL",304)
!Global("BRENDAK_REVEAL","GLOBAL",1)
~ THEN BEGIN 10 // from: 27.5
  SAY #29342 /* ~<CHARNAME>, you continue to astonish us with your victories!~ [BPE301] */
  IF ~~ THEN REPLY #29343 /* ~Let me see your new stock.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
StartStore("BPBREN03",LastTalkedToBy(Myself))
~ EXIT
  IF ~  Global("BRENDAK_REVEAL","GLOBAL",0)
~ THEN REPLY #29344 /* ~You continue to astonish Magda with your refusal to talk with her.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
SetGlobal("BRENDAK_REVEAL","GLOBAL",1)
StartCutSceneMode()
CreateVisualEffectObject("spdimndr","BPNAJIM")
PlaySound("EFF_M13")
SmallWait(15)
Activate("BPNAJIM")
SmallWait(75)
ActionOverride("BPNAJIM",StartDialogNoSet(Player1))
~ EXIT
  IF ~~ THEN REPLY #29345 /* ~That's all I wanted to hear.~ */ DO ~SetGlobal("OPENING","LOCALS",3)
~ EXIT
END

IF ~  Global("BRENDAK_REVEAL","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #29346 /* ~This could be a trick, but I may never have another chance. Baeloth knows how much I depend on Magda for support during this ordeal. His idea of the perfect torment was to promise he would kill one of my people if I spoke so much as a word to Magda.~ [BPE304] */
  IF ~~ THEN DO ~SetGlobal("BRENDAK_REVEAL","GLOBAL",2)
~ GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #29347 /* ~And he threatened to kill another for every additional word I spoke to her. He knew my silence would infuriate her, too, torturing us both in one wicked stroke.~ [BPE305] */
  IF ~~ THEN REPLY #29348 /* ~That's eeeevil!~ */ GOTO 13
  IF ~~ THEN REPLY #29349 /* ~What a clever trick. I may have underestimated this Baeloth.~ */ GOTO 13
  IF ~~ THEN REPLY #29350 /* ~But he didn't warn you against speaking to anyone else, right?~ */ GOTO 14
END

IF ~~ THEN BEGIN 13 // from: 12.1 12.0
  SAY #29351 /* ~His cruelty is boundless. No matter how angry Magda became, I could never explain why I appeared to ignore her. But he also never forbade me to speak with anyone else.~ [BPE306] */
  IF ~~ THEN REPLY #29352 /* ~I think I see where this is going.~ */ GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0 12.2
  SAY #29353 /* ~That's right. You could tell her the truth for me.~ [BPE307] */
  IF ~~ THEN REPLY #29354 /* ~I'll think about it. In the meantime, show me your new stock.~ */ DO ~StartStore("BPBREN03",LastTalkedToBy(Myself))
CreateVisualEffectObject("spdimndr","BPBAELOT")
SmallWait(15)
Activate("BPBAELOT")
~ EXIT
  IF ~~ THEN REPLY #29355 /* ~I'll think about it. Farewell.~ */ DO ~CreateVisualEffectObject("spdimndr","BPBAELOT")
SmallWait(15)
Activate("BPBAELOT")
~ EXIT
  IF ~~ THEN REPLY #29356 /* ~No, I don't want to get involved.~ */ GOTO 15
  IF ~~ THEN REPLY #29357 /* ~No, it's much funnier to watch you struggle.~ */ GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.3 14.2
  SAY #29358 /* ~Please reconsider! You're the first combatant who has ever given us a hope that Baeloth might one day fall.~ [BPE308] */
  IF ~~ THEN DO ~CreateVisualEffectObject("spdimndr","BPBAELOT")
SmallWait(15)
Activate("BPBAELOT")
~ EXIT
END

IF ~  GlobalLT("OPENING","LOCALS",4)
Global("TIER","GLOBAL",3)
Global("LAST_BATTLE","GLOBAL",304)
~ THEN BEGIN 16 // from: 27.6
  SAY #29359 /* ~Hail, Champion of the Black Pits! May Laduguer protect you in the battle to come.~ [BPE401] */
  IF ~~ THEN REPLY #29360 /* ~Thank you. It helps to know I have your support.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
~ GOTO 17
  IF ~~ THEN REPLY #29361 /* ~It's not as if I haven't been, you know, fighting for my life.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
~ GOTO 17
  IF ~~ THEN REPLY #29368 /* ~Let's take a look at your new armor.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
StartStore("BPBREN03",LastTalkedToBy(Myself))
~ EXIT
  IF ~~ THEN REPLY #29322 /* ~Light armor isn't what I need now. Farewell.~ */ DO ~SetGlobal("OPENING","LOCALS",4)
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 16.1 16.0
  SAY #29362 /* ~Listen, friend—I shouldn't refer to you as a friend, <RACE>, but you have done so much for my people's morale already—can I impose on you as a friend?~ [BPE402] */
  IF ~~ THEN REPLY #29363 /* ~What do you have in mind?~ */ GOTO 19
  IF ~~ THEN REPLY #29364 /* ~A favor for a duergar? Are you out of your gray dwarven mind?~ */ GOTO 18
  IF ~~ THEN REPLY #29365 /* ~Perhaps a goodwill gesture between my people and yours is a good idea.~ */ GOTO 19
END

IF ~~ THEN BEGIN 18 // from: 19.2 17.1
  SAY #29366 /* ~Very well. I should have known better than to ask.~ [BPE403] */
  IF ~~ THEN REPLY #29367 /* ~I'll be on my way.~ */ EXIT
  IF ~~ THEN REPLY #29368 /* ~Let's take a look at your new armor.~ */ DO ~StartStore("BPBREN03",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 19 // from: 17.2 17.0
  SAY #29369 /* ~While I am forbidden from speaking to Magda, you are not. Will you pass her a message for me?~ [BPE404] */
  IF ~~ THEN REPLY #29370 /* ~Gladly.~ */ DO ~SetGlobal("BRENDAK_MESSAGE","GLOBAL",1)
~ GOTO 20
  IF ~~ THEN REPLY #1007 /* ~Why not?~ */ DO ~SetGlobal("BRENDAK_MESSAGE","GLOBAL",1)
~ GOTO 20
  IF ~~ THEN REPLY #29371 /* ~Forget it. It's not worth my trouble.~ */ GOTO 18
END

IF ~~ THEN BEGIN 20 // from: 19.1 19.0
  SAY #29372 /* ~Tell her that every day I have gone without talking to her has been agony. I pray for Laduguer to free us from our oppressor so we can be reunited.~ [BPE405] */
  IF ~~ THEN REPLY #29373 /* ~You sound confident that Baeloth will fall.~ */ GOTO 21
  IF ~~ THEN REPLY #29374 /* ~Why don't you tell her yourself, when I've dealt with Baeloth?~ */ GOTO 22
  IF ~~ THEN REPLY #29375 /* ~Is this message going to be much longer? I never could memorize lines.~ */ GOTO 23
END

IF ~~ THEN BEGIN 21 // from: 20.0
  SAY #29376 /* ~I did not have much hope until recently. The one other time Baeloth fought a champion, our hopes were dashed. This time, something tells me it will be different.~ [BPE406] */
  IF ~~ THEN REPLY #29377 /* ~I'll do my best.~ */ EXIT
  IF ~~ THEN REPLY #29378 /* ~You can count on it.~ */ EXIT
  IF ~~ THEN REPLY #29379 /* ~Show me your new armor.~ */ DO ~StartStore("BPBREN03",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 22 // from: 20.1
  SAY #29380 /* ~I will, of course. But just in case something should happen to me in the chaos that will surely follow...~ [BPE407] */
  IF ~~ THEN REPLY #29381 /* ~I understand. You can count on me to give Magda your message.~ */ EXIT
  IF ~~ THEN REPLY #29382 /* ~Chaos? Pft! I'm not afraid of a little chaos.~ */ EXIT
  IF ~~ THEN REPLY #29368 /* ~Let's take a look at your new armor.~ */ DO ~StartStore("BPBREN03",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 23 // from: 20.2
  SAY #29383 /* ~No... No, of course, you have a lot on your mind already. I did not mean to impose.~ [BPE408] */
  IF ~~ THEN REPLY #29384 /* ~It's all right. Forget about it.~ */ EXIT
  IF ~~ THEN REPLY #29385 /* ~Just see that it doesn't happen again.~ */ EXIT
  IF ~~ THEN REPLY #29386 /* ~Just show me your new armor.~ */ DO ~StartStore("BPBREN03",LastTalkedToBy(Myself))
~ EXIT
END

IF ~~ THEN BEGIN 24 // from: BPMAGDA:25.0
  SAY #29387 /* ~Baeloth knew exactly how to torment me by keeping me from my beloved Magda. Thanks to you, I once more have her strength to add to my own.~ [BPTZ109] */
  IF ~~ THEN EXTERN ~BPMAGDA~ 26
END

IF ~~ THEN BEGIN 25 // from: BPMAGDA:26.0
  SAY #29388 /* ~Magda is right, as usual. Go, <CHARNAME>, and take our thanks with you. We cannot defend you against our own people.~ [BPTZ111] */
  IF ~~ THEN DO ~SetGlobalTimer("DINGUER_TIMER","OH9310",25)
~ EXTERN ~BPXITHIS~ 11
END

IF ~  Global("BAELOTH_DEFEATED","GLOBAL",1)
Global("BPMAGDA_DIALOG","GLOBAL",40)
~ THEN BEGIN 26 // from:
  SAY #29944 /* ~Make your escape, you fool! My brethren will not suffer the presence of an outsider any longer!~ [BPTZ122] */
  IF ~~ THEN EXIT
END

IF ~  True()
~ THEN BEGIN 27 // from:
  SAY #32141 /* ~Buy your goods and be quick about it, I have no time for this!~ */
  IF ~  Global("OPENING","LOCALS",1)
~ THEN REPLY #29368 /* ~Let's take a look at your new armor.~ */ DO ~StartStore("BPBREN01",LastTalkedToBy(Myself))
~ EXIT
  IF ~  Global("OPENING","LOCALS",2)
~ THEN REPLY #29368 /* ~Let's take a look at your new armor.~ */ DO ~StartStore("BPBREN02",LastTalkedToBy(Myself))
~ EXIT
  IF ~  GlobalGT("OPENING","LOCALS",2)
~ THEN REPLY #29368 /* ~Let's take a look at your new armor.~ */ DO ~StartStore("BPBREN03",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 10
  IF ~  Global("OPENING","LOCALS",4)
~ THEN REPLY #32149 /* ~What were you saying earlier?~ */ GOTO 16
  IF ~~ THEN REPLY #29781 /* ~It was a pleasure. I'll be on my way.~ */ EXIT
END
