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

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

IF WEIGHT #0 ~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
!InParty("Skie")
~ THEN BEGIN 0 // from:
  SAY #16164 /* ~I would rather travel alone than spend a second more with you boorish oafs. Goodbye, and good riddance.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
LeaveParty()
EscapeArea()
~ EXIT
END

IF WEIGHT #1 ~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
InParty("Skie")
~ THEN BEGIN 1 // from:
  SAY #16165 /* ~I would rather travel alone than spend a second more with you boorish oafs. Goodbye, and good riddance. Come along Skie.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Skie",ChangeAIScript("",DEFAULT))
ActionOverride("Skie",LeaveParty())
ActionOverride("Skie",EscapeArea())
LeaveParty()
EscapeArea()
~ EXIT
END

IF WEIGHT #2 ~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
!InParty("Skie")
~ THEN BEGIN 2 // from:
  SAY #16166 /* ~It is a pity. Our time together has been thoroughly charming. Perhaps we will meet again?~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
~ EXIT
END

IF WEIGHT #3 ~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
InParty("Skie")
~ THEN BEGIN 3 // from:
  SAY #16167 /* ~It is a pity. Our time together has been thoroughly charming. Perhaps we will meet again? Come along Skie.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Skie",ChangeAIScript("",DEFAULT))
ActionOverride("Skie",LeaveParty())
ActionOverride("Skie",SetDialogue("SkieP"))
~ 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("Skie")
~ THEN BEGIN 4 // from:
  SAY #16168 /* ~I thought you would be crawling back. Don't be ashamed, I am quite used to it. Shall we continue on together?~ */
  IF ~~ THEN REPLY #16173 /* ~Though I don't like your tone or manner, I do need you back in the group.~ */ GOTO 6
  IF ~~ THEN REPLY #16175 /* ~Contrary to what you believe, I have no use for you at this time.~ */ GOTO 8
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("Skie")
~ THEN BEGIN 5 // from:
  SAY #16169 /* ~I thought you would be crawling back. Don't be ashamed, I am quite used to it. Shall we continue on together?~ */
  IF ~~ THEN REPLY #16174 /* ~Though I don't like your tone or manner, I do need you back in the group.~ */ GOTO 7
  IF ~~ THEN REPLY #16176 /* ~Contrary to what you believe, I have no use for you at this time.~ */ GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 4.0
  SAY #16170 /* ~I thought as much. Lead on, and wake me whenever we get wherever it is we are going.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
ActionOverride("Skie",JoinParty())
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.0
  SAY #16171 /* ~I thought as much. Lead on, and wake me whenever we get wherever it is we are going.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.1 4.1
  SAY #16172 /* ~Really? So be it. I'm sure I'll be somewhere around here if you wish my company. I'll try not to make you look too hard.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ActionOverride("Skie",ChangeAIScript("",DEFAULT))
ActionOverride("Skie",LeaveParty())
ActionOverride("Skie",SetDialogue("SkieP"))
~ EXIT
END

IF WEIGHT #4 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #16762 /* ~Well, as your best friend I can tell you a few things. There's been some economic troubles in Baldur's Gate. There's been a lack of iron, and with the tensions between Amn and Baldur's Gate, this has been causing some concern. A mercantile organization called the Iron Throne has been making some headway within the economic circles of Baldur's Gate.~ */
  IF ~~ THEN EXIT
END
