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

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

IF WEIGHT #0 ~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
!InParty("Montaron")
~ THEN BEGIN 0 // from:
  SAY #16046 /* ~You... you're letting me go? But we have shared so much... so many good times... this is truly a sad day indeed. Goodbye, so sad, blah blah blah and all that rot.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
~ EXIT
END

IF WEIGHT #1 ~  !HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
Global("KickedOut","LOCALS",0)
InParty("Montaron")
~ THEN BEGIN 1 // from:
  SAY #16047 /* ~You... you're letting me go? But we have shared so much... so many good times... this is truly a sad day indeed. Goodbye, so sad, blah blah blah and all that rot. Come along Montaron. You are my counterpart and we shall not be separated.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Montaron",ChangeAIScript("",DEFAULT))
ActionOverride("Montaron",LeaveParty())
ActionOverride("Montaron",SetDialogue("MontaP"))
LeaveParty()
~ EXIT
END

IF WEIGHT #2 ~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
!InParty("Montaron")
~ THEN BEGIN 2 // from:
  SAY #16048 /* ~Indeed, it is quite about time that we should part company. You have proven unsympathetic to my interests, and I look forward to eventually owning a charming little ashtray made from your skull. Toodles.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
EscapeArea()
~ EXIT
END

IF WEIGHT #3 ~  HappinessLT(Myself,UNHAPPY_ANGRY_BOUNDARY)
InParty("Montaron")
~ THEN BEGIN 3 // from:
  SAY #16049 /* ~Indeed, it is quite about time that we should part company. You have proven unsympathetic to my interests, and I look forward to eventually owning a charming little ashtray made from your skull. Come, Montaron. We shall not be separated by this fool.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Montaron",ChangeAIScript("",DEFAULT))
ActionOverride("Montaron",LeaveParty())
ActionOverride("Montaron",SetDialogue("MontaP"))
ActionOverride("Montaron",EscapeArea())
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("Montaron")
~ THEN BEGIN 4 // from:
  SAY #16050 /* ~You came back! Oh I just knew you would, especially after what we shared! What was that again? Oh pish, no matter. All that is important is that we are back together as one big happy family.~ */
  IF ~~ THEN REPLY #16054 /* ~As much as your mental state unnerves me, I do have need of your company once more.~ */ GOTO 7
  IF ~~ THEN REPLY #16057 /* ~There will be a houseboat full of gibberlings on every lake in the realms before I accept the likes of you back. Begone.~ */ GOTO 6
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("Montaron")
~ THEN BEGIN 5 // from:
  SAY #16051 /* ~You came back! Oh I just knew you would, especially after what we shared! What was that again? Oh pish, no matter. All that is important is that we are back together as one big happy family. You too Monty, let's go.~ */
  IF ~~ THEN REPLY #16055 /* ~As much as your mental state unnerves me, I do have need of your company once more.~ */ GOTO 8
  IF ~~ THEN REPLY #16058 /* ~There will be a houseboat full of gibberlings on every lake in the realms before I accept the likes of you back. Begone.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1 4.1
  SAY #16052 /* ~You would tempt me so? How cruel! I shall pine away the days on this very spot lamenting your distinct lack of humanity. And picking daisies. Wheeeeee.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",1)
ChangeAIScript("",DEFAULT)
ActionOverride("Montaron",ChangeAIScript("",DEFAULT))
ActionOverride("Montaron",LeaveParty())
ActionOverride("Montaron",SetDialogue("MontaP"))
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 4.0
  SAY #16053 /* ~Hurrah! I'd have us all sing with joy, but I'm sure such an outpouring would come dangerously close to making me sick. Onward, and all that.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.0
  SAY #16056 /* ~Hurrah! I'd have us all sing with joy, but I'm sure such an outpouring would come dangerously close to making me sick. Onward, and all that.~ */
  IF ~~ THEN DO ~SetGlobal("KickedOut","LOCALS",0)
ActionOverride("Montaron",JoinParty())
JoinParty()
~ EXIT
END

IF WEIGHT #4 ~  StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #16707 /* ~Well, my good friends, perhaps you'd like to know a little more about me? I'm part of an order known as the Zhentarim. We've been sent to learn why the Zhentish name has been slandered along the Coast Way. It would seem that someone has been trying to make our order look bad.~ */
  IF ~~ THEN EXIT
END
