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

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

IF WEIGHT #0 ~False()~ THEN BEGIN 0 // from:
  SAY #16046 /* ~No, I'm not interested.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #1 ~False()~ THEN BEGIN 1 // from:
  SAY #16047 /* ~As you wish.  Unfortunately, my stock is not what it once was, with the troubles as of late, but it is still a good selection.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #2 ~False()~ THEN BEGIN 2 // from:
  SAY #16048 /* ~Yes, show me what services you have.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF WEIGHT #3 ~False()~ THEN BEGIN 3 // from:
  SAY #16049 /* ~Perhaps you could tell me where I could find a suitable inn.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 9 even though they appear after this state */
~Dead("Montaron")
~ THEN BEGIN 4 // from:
  SAY #16050 /* ~Tavern Patron~ */
  IF ~~ THEN REPLY #16054 /* ~Thank you, but I'll be on my way.~ */ DO ~~ GOTO 7
  IF ~~ THEN REPLY #16057 /* ~There are several places of worship that could assist you in the Temple District, my friend.  A shrine to Ilmater is also close by, if you wish.~ */ DO ~~ GOTO 6
END

IF WEIGHT #6 /* Triggers after states #: 9 even though they appear after this state */
~!Dead("Montaron")
~ THEN BEGIN 5 // from:
  SAY #16051 /* ~I'm looking for quality goods, perhaps magical items and the like?~ */
  IF ~~ THEN REPLY #16055 /* ~I do not know if I would call it 'suitable', but you could certainly look to the Copper Coronet in the slums.  It is better than ore on credit, as they say.~ */ DO ~~ GOTO 8
  IF ~~ THEN REPLY #16058 /* ~Slaver Guard~ */ DO ~~ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1 4.1
  SAY #16052 /* ~Tavern Patron~ */
  IF ~~ THEN DO ~ActionOverride("Montaron",ChangeAIScript("",DEFAULT))
ActionOverride("Montaron",LeaveParty())
ActionOverride("Montaron",SetDialog("MontaP"))
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 4.0
  SAY #16053 /* ~Could you direct me to a temple or such where I might receive healing?~ */
  IF ~~ THEN DO ~JoinParty()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 5.0
  SAY #16056 /* ~I have little taste for magic, but sometimes an item of that nature comes into my possession.  You could try the Adventure Mart for such things.~ */
  IF ~~ THEN DO ~ActionOverride("Montaron",JoinParty())
JoinParty()
~ EXIT
END

IF WEIGHT #4 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #16707 /* ~Of course, my <LADYLORD>.~ */
  IF ~~ THEN DO ~~ EXIT
END
