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

BEGIN ~CEFALD04~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #51016 /* ~A disturbance? The Grove suffers... what has happened here?~ [CEFALD14] */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #51017 /* ~Oh gods...~ [CEFALD15] */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #51018 /* ~No... no...~ [CEFALD16] */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #51019 /* ~It burns the very soul of the Grove!! The Water is dying! All is lost!~ [CEFALD17] */
  IF ~OR(3)
!IsValidForPartyDialog("Aerie")
GlobalGT("AerieRomance","GLOBAL",0)
GlobalLT("AerieRomance","GLOBAL",3)
!IsValidForPartyDialog("Jaheira")
!IsValidForPartyDialog("Cernd")~ THEN DO ~ActionOverride("Valygar",LeaveParty())
ActionOverride("Valygar",Enemy())
ActionOverride("Minsc",LeaveParty())
ActionOverride("Minsc",Enemy())
ActionOverride("Keldorn",LeaveParty())
ActionOverride("Keldorn",Enemy())
ActionOverride("Mazzy",LeaveParty())
ActionOverride("Mazzy",Enemy())~ GOTO 4
  IF ~IsValidForPartyDialog("Aerie")
!GlobalGT("AerieRomance","GLOBAL",0)
!GlobalLT("AerieRomance","GLOBAL",3)~ THEN EXTERN ~AERIEJ~ 167
  IF ~OR(3)
!IsValidForPartyDialog("Aerie")
GlobalGT("AerieRomance","GLOBAL",0)
GlobalLT("AerieRomance","GLOBAL",3)
IsValidForPartyDialog("Jaheira")~ THEN EXTERN ~JAHEIRAJ~ 491
  IF ~!IsValidForPartyDialog("Aerie")
!IsValidForPartyDialog("Jaheira")
IsValidForPartyDialog("Cernd")~ THEN EXTERN ~CERNDJ~ 125
END

IF ~~ THEN BEGIN 4 // from: CERNDJ:125.1 3.0
  SAY #51020 /* ~Aaagh!~ [CEFALD18] */
  IF ~~ THEN DO ~MoveToPoint([426.621])
~ EXIT
END
