// creator  : weidu.exe (version 23600)
// argument : BELT.DLG
// game     : .
// source   : ./override/BELT.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~BELT~

IF ~  NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #2282 /* ~Now that all of our guests have arrived, we can begin with the ceremony that you have all been awaiting.~ */
  IF ~~ THEN EXTERN ~LIIA~ 0
  IF ~Global("X#GarBelt","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarBelt","GLOBAL",1)~ EXTERN ~GARRIJ~ 45
END

IF ~~ THEN BEGIN 1 // from:
  SAY #2283 /* ~The votes have been tallied from those submitted by the landowners. The result was nearly unanimous.~ [BELTT04] */
  IF ~~ THEN EXTERN ~NOBLPA1~ 0
END

IF ~~ THEN BEGIN 2 // from:
  SAY #2284 /* ~All of your questions will be answered in due time, you need not worry.~ [BELTT05] */
  IF ~~ THEN EXTERN ~NOBLPA1~ 1
END

IF ~~ THEN BEGIN 3 // from:
  SAY #2285 /* ~Perhaps I could interject something before this meeting degenerates into meaningless bickering. We are here to welcome our new Grand Duke, so perhaps we should get on with it.~ [BELTT06] */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #2286 /* ~Introducing the new Grand Duke, Sarevok Anchev.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26871 /* ~The Rise of Sarevok
Sarevok has been elected the new Grand Duke of Baldur's Gate. This does not bode well for anyone.~ */ EXTERN ~SAREVO~ 5
END

IF ~~ THEN BEGIN 5 // from:
  SAY #2287 /* ~Wait one moment, that is not in your power to decide.~ [BELTT07] */
  IF ~~ THEN EXTERN ~NOBLPA3~ 2
END

IF ~  Dead("GDOPP7")
Dead("GDOPP71")
Dead("GDOPP72")
Dead("GDOPP73")
Dead("GDOPP74")
Dead("GDOPP75")
Global("SarevokBehavior","GLOBAL",0)
~ THEN BEGIN 6 // from:
  SAY #2288 /* ~It was lucky that such brave people as yourselves intervened on our behalf. Is there anything that I can do for you in return?~ */
  IF ~  PartyHasItem("SCRL2K")
~ THEN REPLY #2295 /* ~Take a look at these documents we have. Sarevok is the one who tried to kill you, had Entar killed, and nearly killed Eltan.~ */ DO ~EraseJournalEntry(31471)
AddJournalEntry(31471,QUEST_DONE)
AddJournalEntry(31472,QUEST)
~ GOTO 7
  IF ~~ THEN REPLY #2297 /* ~Sarevok's the one who set you up to be killed. You have to kill him, now!~ */ GOTO 9
  IF ~  PartyHasItem("SCRL3F")
~ THEN REPLY #20705 /* ~We have Sarevok's diary! Take a look through it. Sarevok is the one who tried to kill you, had Entar killed, and nearly killed Eltan.~ */ GOTO 7
  IF ~Global("X#QuaBelt","GLOBAL",0)
InParty("quayle")
InMyArea("quayle")
!StateCheck("quayle",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#QuaBelt","GLOBAL",1)~ EXTERN ~QUAYLJ~ 15
END

IF ~~ THEN BEGIN 7 // from: 9.2 9.0 6.2 6.0
  SAY #2289 /* ~I'll take a look, but if you're wrong, the punishment for such false accusations is severe.~ */
  IF ~~ THEN EXTERN ~SAREVO~ 24
END

IF ~~ THEN BEGIN 8 // from:
  SAY #2290 /* ~You are free to go.~ */
  IF ~~ THEN DO ~Wait(10)
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 6.1
  SAY #2291 /* ~You can't just randomly shout accusations at a Grand Duke. Do you have any documents to back up these allegations?~ */
  IF ~  PartyHasItem("SCRL2K")
~ THEN REPLY #2298 /* ~Yes, we do. Take them and read them.~ */ GOTO 7
  IF ~~ THEN REPLY #2299 /* ~No, we don't.~ */ EXTERN ~SAREVO~ 25
  IF ~  PartyHasItem("SCRL3F")
~ THEN REPLY #20706 /* ~We have his diary! It has everything you need to know.~ */ GOTO 7
  IF ~Global("X#VicBelt","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicBelt","GLOBAL",1)~ EXTERN ~VICONJ~ 92
END

IF ~~ THEN BEGIN 10 // from:
  SAY #2292 /* ~These men are not to be touched until I have finished reading these documents.~ */
  IF ~~ THEN EXTERN ~SAREVO~ 10
END

IF ~  Global("SarevokBehavior","GLOBAL",1)
~ THEN BEGIN 11 // from:
  SAY #2293 /* ~I think it is in your best interest to hunt Sarevok and kill him before he does the same to you.~ */
  IF ~~ THEN REPLY #2300 /* ~We've seen enough killing.~ */ DO ~SetGlobal("DukeThanks","GLOBAL",1)
~ GOTO 14
  IF ~~ THEN REPLY #2301 /* ~I think you're right, the only problem is finding the bastard.~ */ DO ~SetGlobal("DukeThanks","GLOBAL",1)
~ GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.1
  SAY #2294 /* ~Through the power of my god, I should be able to divine his location. Just wait a moment, and I'll tell you where he has gone.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0
  SAY #20594 /* ~He has been teleported to the Thieves' Guild. I will dimension fold you to where he has gone. From there you can follow him, and kill him. Good luck.~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("cutbelt")
~ JOURNAL #20597 /* ~Tandem in Extremis
Belt has divined that Sarevok teleported to the Thieves' Guild. He has suggested that we track him down and kill him. I would have to agree that this is probably our only course of action.~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from: 11.0
  SAY #20595 /* ~Even so, I'm sure it would be good for you to know where he teleported to. Just wait a few seconds and I'll divine his location through the power of my god.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #20596 /* ~He's transported himself to the Thieves' Guild. It would be wise of you to track him down and put an end to his evil. After everything you have done to him, I'm sure he's eager to exact some sort of revenge.~ */
  IF ~~ THEN JOURNAL #20597 /* ~Tandem in Extremis
Belt has divined that Sarevok teleported to the Thieves' Guild. He has suggested that we track him down and kill him. I would have to agree that this is probably our only course of action.~ */ EXIT
END
