// creator  : weidu.exe (version 23100)
// argument : _MONTAR.DLG
// game		 : .
// source	 : ./override/_MONTAR.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF ~~ THEN BEGIN 0 // from:
  SAY #88191 /* ~Aye Xzar, looks to have been roughed up quite well.~ */
  IF ~~ THEN EXTERN ~_XZAR~ 3
END

IF ~~ THEN BEGIN 1 // from:
  SAY #88217 /* ~And ye look a bit scuffed, too.  A fine pair of troubles all your own.~ */
  IF ~~ THEN EXTERN ~_XZAR~ 3
END

IF ~~ THEN BEGIN 2 // from:
  SAY #88218 /* ~We've not the time for your troubles, though we may have a purpose for ye.~ */
  IF ~~ THEN EXTERN ~_XZAR~ 9
END

IF ~~ THEN BEGIN 3 // from:
  SAY #88219 /* ~I'll not be insulted by this whelp!~ */
  IF ~~ THEN EXTERN ~_XZAR~ 5
END

IF ~~ THEN BEGIN 4 // from:
  SAY #88220 /* ~Refuse if ye wish.~ */
  IF ~~ THEN EXTERN ~_XZAR~ 6
END

IF ~~ THEN BEGIN 5 // from:
  SAY #88221 /* ~Just like all good people.~ */
  IF ~~ THEN EXTERN ~_XZAR~ 8
END

IF ~~ THEN BEGIN 6 // from:
  SAY #88222 /* ~Your conscience be your guide.~ */
  IF ~~ THEN REPLY #88205 /* ~There is little else for me to do.  I may as well go with you.~ */ EXTERN ~_XZAR~ 10
  IF ~~ THEN REPLY #88206 /* ~Go on your way and leave me be.  I would go my own path.~ */ EXTERN ~_XZAR~ 11
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #88207 /* ~I would join with you, but I must meet someone first.  Perhaps you will go with me?~ */ EXTERN ~_XZAR~ 12
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #88207 /* ~I would join with you, but I must meet someone first.  Perhaps you will go with me?~ */ EXTERN ~_XZAR~ 13
END

IF ~~ THEN BEGIN 7 // from: _IMOEN2:153.0 _IMOEN2:152.0
  SAY #88223 /* ~Aye, we'll go wit ye.  Ye owe us fer our time though.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Montaron","GLOBAL",SIX_DAYS)
SetGlobalTimer("Xzar","GLOBAL",FOUR_DAYS)
SetGlobal("VisitNashkell","GLOBAL",1)
ActionOverride("xzar",JoinParty())
JoinParty()
~ EXIT
  IF ~Global("X#SharMontarJoin2","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SharMontarJoin2","GLOBAL",1)~ EXTERN ~_SHARTJ~ 76
END

IF ~~ THEN BEGIN 8 // from:
  SAY #88224 /* ~The night be not kind to fools.  Luck be with you.  You'll need it.~ */
  IF ~~ THEN DO ~ActionOverride("xzar",MoveToPoint([4551.2374]))
ActionOverride("xzar",EscapeArea())
MoveToPoint([4482.2375])
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #87059 /* ~Now you've gone and set him off!  Blasted mage will blither for hours!  Off wit ye!  I'll not suffer the both of ye!~ */
  IF ~~ THEN DO ~ActionOverride("xzar",MoveToPoint([4551.2374]))
ActionOverride("xzar",EscapeArea())
MoveToPoint([4482.2375])
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: _IMOEN2:151.0
  SAY #88225 /* ~Rein it in, wizard!  I canna stand the way your senses flit about.  Could we just travel in peace?~ */
  IF ~~ THEN DO ~SetGlobalTimer("Montaron","GLOBAL",NINE_DAYS)
SetGlobalTimer("Xzar","GLOBAL",SEVEN_DAYS)
SetGlobal("VisitNashkell","GLOBAL",1)
ActionOverride("xzar",JoinParty())
JoinParty()
~ EXIT
  IF ~Global("X#SharMontarJoin3","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SharMontarJoin3","GLOBAL",1)~ EXTERN ~_SHARTJ~ 77
END

IF WEIGHT #5 /* Triggers after states #: 12 13 14 15 16 even though they appear after this state */
~True()
~ THEN BEGIN 11 // from:
  SAY #88226 /* ~Hello there kid.  Rather strange place be to wandering, ain't it?  My companion has something to say to ya.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("SpokeToXzar","GLOBAL",1)
~ THEN BEGIN 12 // from:
  SAY #88227 /* ~I have no desire to speak with such as you!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~False()
~ THEN BEGIN 13 // from:
  SAY #87048 /* ~As ye would have it.  I likely would have put a dagger in ye eventually, but for now ye have been adequately useful.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~False()
~ THEN BEGIN 14 // from:
  SAY #87049 /* ~As ye would have it.  I likely would have put a dagger in ye eventually, but for now ye have been adequately useful.  Come wizard, we are inseparable until the day ye die.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 ~False()
~ THEN BEGIN 15 // from:
  SAY #87046 /* ~And good riddance to yer bad rubbish!  I suggest ye sleep with one eye open from now on.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 ~False()
~ THEN BEGIN 16 // from:
  SAY #87047 /* ~And good riddance to yer bad rubbish!  I suggest ye sleep with one eye open from now on.  Come wizard!  I'll not miss yer inevitable death by leavin' ye behind!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 17 // from:
  SAY #99787 /* ~Ah, stuff it.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Montaron","GLOBAL",SIX_DAYS)
SetGlobalTimer("Xzar","GLOBAL",FOUR_DAYS)
SetGlobal("VisitNashkell","GLOBAL",1)
ActionOverride("xzar",JoinParty())
JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 18 // from:
  SAY #99787 /* ~Ah, stuff it.~ */
  IF ~~ THEN DO ~SetGlobalTimer("Montaron","GLOBAL",NINE_DAYS)
SetGlobalTimer("Xzar","GLOBAL",SEVEN_DAYS)
SetGlobal("VisitNashkell","GLOBAL",1)
ActionOverride("xzar",JoinParty())
JoinParty()
~ EXIT
END
