// creator  : weidu.exe (version 23100)
// argument : PPGUY01.DLG
// game		 : .
// source	 : ./DATA/25DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~PPGUY01~

IF ~Global("MelissanYagaKillJob","GLOBAL",1)
!Dead("balth")~ THEN BEGIN 0 // from:
  SAY #71063 /* ~You can use your Planar Door to travel to several places. Where do you wish to go?~ */
  IF ~~ THEN REPLY #71064 /* ~Return me from whence I came.~ */ GOTO 1
  IF ~Global("PPlaneEscape","GLOBAL",0)
Global("PressDemo","GLOBAL,0)~ THEN REPLY #71065 /* ~I need to escape Saradush and make my way to Yaga-Shura's home in the Marching Mountains.~ */ DO ~SetGlobal("PPlaneEscape","GLOBAL",1)
~ GOTO 2
  IF ~Global("PPlaneEscape","GLOBAL",1)
Global("PressDemo","GLOBAL,0)~ THEN REPLY #72917 /* ~Take me outside of Saradush.~ */ GOTO 2
  IF ~Global("PressDemo","GLOBAL,1)~ THEN REPLY #73936 /* ~I wish to try out the Add-In Section of Throne of Bhaal - the dungeon of Watcher's Keep.~ */ GOTO 6
  IF ~~ THEN REPLY #71066 /* ~I wish to go to Saradush.~ */ GOTO 3
  IF ~~ THEN REPLY #72477 /* ~I do not wish to leave at this time.~ */ DO ~DestroySelf()~ EXIT
END

IF ~~ THEN BEGIN 1 // from: 4.0 0.0
  SAY #71068 /* ~As you wish.~ */
  IF ~~ THEN DO ~ExitPocketPlane()
DestroySelf()~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.2 0.1
  SAY #71070 /* ~The magic of this plane can place you in the wilderness on the road to Yaga-Shura's home.~ */
  IF ~~ THEN DO ~LeaveAreaLUAPanic("AR6400","",[143.1035],12)
ActionOverride(Player1,LeaveAreaLUA("AR6400","",[143.1035],12))
ActionOverride(Player2,LeaveAreaLUA("AR6400","",[143.1082],12))
ActionOverride(Player3,LeaveAreaLUA("AR6400","",[94.1035],12))
ActionOverride(Player4,LeaveAreaLUA("AR6400","",[94.1082],12))
ActionOverride(Player5,LeaveAreaLUA("AR6400","",[45.1035],12))
ActionOverride(Player6,LeaveAreaLUA("AR6400","",[45.1082],12))
DestroySelf()~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.4
  SAY #71071 /* ~As you wish.~ */
  IF ~~ THEN DO ~LeaveAreaLUAPanic("AR5000","",[2123.1164],10)
ActionOverride(Player1,LeaveAreaLUA("AR5000","",[2123.1164],10))
ActionOverride(Player2,LeaveAreaLUA("AR5000","",[2176.1199],10))
ActionOverride(Player3,LeaveAreaLUA("AR5000","",[2129.1237],10))
ActionOverride(Player4,LeaveAreaLUA("AR5000","",[2092.1262],10))
ActionOverride(Player5,LeaveAreaLUA("AR5000","",[2083.1196],10))
ActionOverride(Player6,LeaveAreaLUA("AR5000","",[2030.1218],10))
DestroySelf()~ EXIT
END

IF ~Dead("balth")
~ THEN BEGIN 4 // from: 5.0
  SAY #71084 /* ~Your destiny is nearly complete.~ */
  IF ~~ THEN REPLY #71087 /* ~Return me to where I was.~ */ GOTO 1
  IF ~Global("ChallengesDone","GLOBAL",1)
~ THEN REPLY #71088 /* ~I am ready.  It is time for the end.~ */ DO ~ClearAllActions()
SaveGame(2)
SmallWait(5)
StartCutSceneMode()
StartCutScene("cut248a")
~ EXIT
  IF ~~ THEN REPLY #72478 /* ~I do not wish to leave at this time.~ */ DO ~DestroySelf()~ EXIT
  IF ~Global("ChallengesDone","GLOBAL",0)
~ THEN REPLY #72854 /* ~I am ready.  It is time for the end.~ */ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.3
  SAY #72855 /* ~You are not yet ready.  There are challenges you must face before moving forward.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 6 // from: 0.3
  SAY #73937 /* ~Please enjoy your time in the Watcher's Keep.~ */
  IF ~~ THEN DO ~LeaveAreaLUAPanic("AR3000","",[1847.2704],8)
ActionOverride(Player1,LeaveAreaLUA("AR3000","",[1847.2704],8))
ActionOverride(Player2,LeaveAreaLUA("AR3000","",[1787.2740],8))
ActionOverride(Player3,LeaveAreaLUA("AR3000","",[1906.2740],8))
ActionOverride(Player4,LeaveAreaLUA("AR3000","",[1735.2791],8))
ActionOverride(Player5,LeaveAreaLUA("AR3000","",[1847.2791],8))
ActionOverride(Player6,LeaveAreaLUA("AR3000","",[1959.2791],8))
DestroySelf()~ EXIT
END
