// creator  : weidu.exe (version 23600)
// argument : SKIEP.DLG
// game     : .
// source   : ./DATA/DIALOG.BIF
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

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

IF WEIGHT #0 ~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
!InParty("Eldoth")
~ THEN BEGIN 0 // from:
  SAY #16147 /* ~You... you don't want me anymore? But... but where will I go? Oh, this hasn't worked out like I'd hoped at all. You'll come back for me... right?~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
~ EXIT
END

IF WEIGHT #1 ~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
InParty("Eldoth")
~ THEN BEGIN 1 // from:
  SAY #16148 /* ~You... you don't want me anymore? But... but where will I go? Oh, this hasn't worked out like I'd hoped at all. You'll come back for me... right? Eldoth, you'll stay with me, won't you? Please?~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Eldoth",ChangeAIScript("",DEFAULT))
ActionOverride("Eldoth",LeaveParty())
ActionOverride("Eldoth",SetDialogue("EldotP"))
~ EXIT
END

IF WEIGHT #2 ~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
!InParty("Eldoth")
~ THEN BEGIN 2 // from:
  SAY #16149 /* ~Fine! I was going to leave soon anyway! You're really not the kind of people I should be traveling with.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
EscapeArea()
~ EXIT
END

IF WEIGHT #3 ~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
InParty("Eldoth")
~ THEN BEGIN 3 // from:
  SAY #16150 /* ~Fine! I was going to leave soon anyway! You're really not the kind of people I should be traveling with. Eldoth is better company than you anyway.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Eldoth",ChangeAIScript("",DEFAULT))
ActionOverride("Eldoth",LeaveParty())
ActionOverride("Eldoth",SetDialogue("EldotP"))
EscapeArea()
~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 9 even though they appear after this state */
~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",1)
!Dead("Eldoth")
~ THEN BEGIN 4 // from:
  SAY #16151 /* ~Thank goodness you've returned! It's just not safe for us to travel separately. Please, can we rejoin?~ */
  IF ~~ THEN REPLY #16156 /* ~I really have no need for the likes of you right now. Perhaps later.~ */ GOTO 6
  IF ~~ THEN REPLY #16158 /* ~By all means. I could use the extra hands.~ */ GOTO 7
END

IF WEIGHT #6 /* Triggers after states #: 9 even though they appear after this state */
~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",1)
Dead("Eldoth")
~ THEN BEGIN 5 // from:
  SAY #16152 /* ~Thank goodness you've returned! It's just not safe for us to travel separately. Please, can we rejoin?~ */
  IF ~~ THEN REPLY #16157 /* ~I really have no need for the likes of you right now. Perhaps later.~ */ GOTO 6
  IF ~~ THEN REPLY #16159 /* ~By all means. I could use the extra hands.~ */ GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 5.0 4.0
  SAY #16153 /* ~If... if that's the way you want it. I guess I'll just... wait here then?~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Eldoth",LeaveParty())
ActionOverride("Eldoth",SetDialogue("EldotP"))
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 4.1
  SAY #16154 /* ~Thank you so much! I was so scared. This is nothing like life in the city.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
ActionOverride("Eldoth",JoinParty())
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.1
  SAY #16155 /* ~Thank you so much! I was so scared. This is nothing like life in the city.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
JoinParty()
~ EXIT
END

IF WEIGHT #4 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #16766 /* ~My father never let me out much. I don't think there is anything I could tell you that would help you.~ */
  IF ~~ THEN EXIT
END
