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

BEGIN ~_GATEWA2~

IF ~~ THEN BEGIN 0 // from:
  SAY #79032 /* ~It is good to see you again.  The libraries are yours to use for the duration of our stay.  Let me show you to your hostel room.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #79033 /* ~There are several rules that need be adhered to, of which you are no doubt aware.  First, you are prohibited from taking any of the books from their respective rooms.  Second, certain rooms will be inscribed with a rune, and are not to be entered.  Third, you are not to stay within the confines of Candlekeep for more than 10 days.  Now follow me, I'll take you to your quarters.~ */
  IF ~~ THEN DO ~EscapeArea()
~ UNSOLVED_JOURNAL #79034 /* ~Return to Candlekeep

The Gatewarden of Candlekeep explained the rules of the library.  I am not to take books from the rooms they are in, and I am only allowed to stay for ten days.~ */ EXIT
END

IF ~Global("Criminal","GLOBAL",1)
~ THEN BEGIN 2 // from:
  SAY #79035 /* ~You there!  Stop and surrender yourself.  You are accused of murdering the men Brunos Costak, Thaldorn Tenhevich and Rieltar Anchev.  If you give yourself up now, you will be assured of a fair trial.~ */
  IF ~~ THEN REPLY #79036 /* ~We didn't murder anyone, and we're not surrendering to the likes of you!~ */ GOTO 3
  IF ~~ THEN REPLY #79037 /* ~We didn't murder anyone, so we're perfectly willing to go to trial.  Our innocence of this accusation should be refuted quickly, within any fair court of law.~ */ GOTO 5
  IF ~Dead("rieltar")
~ THEN REPLY #79038 /* ~Yes I killed them, but they attacked me.  They're the leaders of the Iron Throne, the people behind the iron shortage and everything else that's been wrong with the Sword Coast.  We did everyone a favor by killing them.  We won't surrender to you, we've done nothing wrong!~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.2 2.0
  SAY #79039 /* ~Don't let this happen <CHARNAME>.  If you resist, I'll be forced to use lethal force.~ */
  IF ~~ THEN REPLY #79040 /* ~Bring it on!~ */ GOTO 4
  IF ~~ THEN REPLY #79041 /* ~Now that you put it that way... take us to your prison.~ */ GOTO 5
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #79042 /* ~It saddens me that is has come to this.~ */
  IF ~~ THEN DO ~ForceSpell(Player1,SAREVOK_STRIKE)
Wait(2)
Kill(Player1)
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 3.1 2.1
  SAY #79043 /* ~I'm glad you still have some of the sense Gorion taught you.  Please, follow me.  I'm sure everything will be sorted out quickly.~ */
  IF ~~ THEN DO ~SetGlobal("Arrested","GLOBAL",1)
FadeToColor([40.0],0)
Wait(3)
ActionOverride(Player1,LeaveAreaLUAPanic("FW2631","",[351.184],12))
ActionOverride(Player1,LeaveAreaLUA("FW2631","",[351.184],12))
ActionOverride(Player1,SetMasterArea("FW2626"))
ActionOverride(Player2,LeaveAreaLUA("FW2631","",[344.222],12))
ActionOverride(Player3,LeaveAreaLUA("FW2631","",[412.190],12))
ActionOverride(Player4,LeaveAreaLUA("FW2631","",[411.235],12))
ActionOverride(Player5,LeaveAreaLUA("FW2631","",[502.197],12))
ActionOverride(Player6,LeaveAreaLUA("FW2631","",[493.241],12))
~ EXIT
END

IF ~True()
~ THEN BEGIN 6 // from:
  SAY #79044 /* ~I cannot talk with you at the moment, but I will give you a quick message.  An unusual fellow told me that he wished to meet <CHARNAME> in the outer grounds to discuss private matters.  It would be wise to go and speak with him.~ */
  IF ~~ THEN EXIT
END
