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

BEGIN ~ELDOTJ~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #3 /* Triggers after states #: 6 7 10 even though they appear after this state */
~Global("EldothMove","GLOBAL",0)
InParty("Eldoth")
~ THEN BEGIN 0 // from:
  SAY #16745 /* ~Silence!  You are not to speak!  And as for you, my <LADYLORD>, if you wish to deal with my escorts, you must speak to me first.  Is that clear?~ */
  IF ~~ THEN REPLY #16746 /* ~I see.  Perhaps I will do that.~ */ DO ~SetGlobal("EldothMove","GLOBAL",1)
SetGlobalTimer("RescueSkie","GLOBAL",ONE_DAY)
~ GOTO 1
  IF ~~ THEN REPLY #16747 /* ~Of course, my <LADYLORD>.~ */ DO ~SetGlobal("EldothMove","GLOBAL",1)
SetGlobalTimer("RescueSkie","GLOBAL",ONE_DAY)
~ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #16748 /* ~And what if I want to speak to you?  Am I not supposed to get whatever I wish, here?~ */
  IF ~~ THEN REPLY #16749 /* ~It, it is not for me to... I mean, my <LADYLORD>, I am only a --~ */ DO ~LeaveParty()
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #16750 /* ~Oh, I apologize.  Please excuse me.~ */ DO ~~ GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.1 0.1
  SAY #16751 /* ~The master is gone and the prisoners have escaped. Grey ones, attack!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
StartCutScene("Eldcut01")
~ EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #16752 /* ~What are you doing, barging in here?  Get out!  Get out, I say!~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 4 // from:
  SAY #16753 /* ~Are you deaf?  I told you to get out!  How rude could someone be?!~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 6 7 10 even though they appear after this state */
~Global("EldothMove","GLOBAL",2)
InParty("Eldoth")
~ THEN BEGIN 5 // from:
  SAY #16754 /* ~Kobold Slave~ */
  IF ~~ THEN DO ~SetGlobal("EldothMove","GLOBAL",3)~ EXIT
END

IF WEIGHT #0 ~GlobalTimerExpired("RescueSkie","GLOBAL")
!InParty("Skie")
!Dead("Skie")
InParty("Eldoth")
~ THEN BEGIN 6 // from:
  SAY #16755 /* ~I'm warning you!  Get out now!~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()
~ EXIT
END

IF WEIGHT #1 ~See("Skie")
!InParty("Skie")
~ THEN BEGIN 7 // from:
  SAY #16756 /* ~Kobold Slave~ */
  IF ~~ THEN DO ~~ EXTERN ~SKIE~ 6
END

IF ~~ THEN BEGIN 8 // from:
  SAY #16757 /* ~That's it!  Madame Nin is going to hear about this!!~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #16758 /* ~Do not talk to me.  I cannot believe that they allow such idiots in here.~ */
  IF ~~ THEN DO ~ActionOverride("Skie",EscapeArea())
LeaveParty()
EscapeArea()
~ EXIT
END

IF WEIGHT #2 ~InParty("Eldoth")
InParty("Skie")
~ THEN BEGIN 10 // from:
  SAY #16759 /* ~Oh... er... well, that is, I...~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from:
  SAY #16760 /* ~Jaheira, my dear, it is good to see you!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~HappinessLT(Myself,0)
!InParty("Skie")
~ THEN BEGIN 12 // from:
  SAY #16761 /* ~Shhh!  I can't hear what's happening!~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()
~ EXIT
END

IF WEIGHT #6 ~HappinessLT(Myself,0)
InParty("Skie")
~ THEN BEGIN 13 // from:
  SAY #16763 /* ~Not now!  I'm trying to see what is happening!~ */
  IF ~~ THEN DO ~ActionOverride("Skie",LeaveParty())
ActionOverride("Skie",EscapeArea())
LeaveParty()
EscapeArea()
~ EXIT
END

IF WEIGHT #7 ~!InParty("Skie")
~ THEN BEGIN 14 // from:
  SAY #16764 /* ~Your welcome is forced, Galvarey, you know I am here at the bidding of the Herald.  Why have you come to greet me; this is too important to waste time on you.~ */
  IF ~~ THEN DO ~LeaveParty()
SetDialog("EldotP")~ EXIT
END

IF WEIGHT #8 ~InParty("Skie")
~ THEN BEGIN 15 // from:
  SAY #16765 /* ~Oh, uh.  H-h-hello, <SIRMAAM>.~ */
  IF ~~ THEN DO ~ActionOverride("Skie",LeaveParty())
ActionOverride("Skie",SetDialog("SkieP"))
LeaveParty()
SetDialog("EldotP")
~ EXIT
END
