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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 0 // from:
  SAY #15126 /* ~Vesper~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #15127 /* ~Vesper~ */
  IF ~~ THEN JOURNAL #15744 /* ~~ */ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 3 4 even though they appear after this state */
~Global("HelpPetrine","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #15128 /* ~Could you perhaps illuminate for me, then, what this building is for?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~PartyHasItem("RING16")
~ THEN BEGIN 3 // from:
  SAY #15129 /* ~I've heard that people have seen strange things around here... people being led about in chains.  What can you tell me about that?~ */
  IF ~!Dead("PetrinesCat")
~ THEN REPLY #20663 /* ~~ */ DO ~TakePartyItem("RING16")
AddexperienceParty(500)
~ EXIT
  IF ~Dead("PetrinesCat")
~ THEN REPLY #20664 /* ~Well, I suppose I am in a way, but I wasn't aware that I had been chosen.~ */ GOTO 6
END

IF WEIGHT #3 ~false()~ THEN BEGIN 4 // from:
  SAY #15130 /* ~Very well, then.  Another time, perhaps.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 ~True()
~ THEN BEGIN 5 // from:
  SAY #15131 /* ~Sir William of Thorpe~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 3.1
  SAY #20665 /* ~It's not that I am not flattered, Mazzy, but it's just that...~ */
  IF ~~ THEN DO ~ReputationInc(-1)
EscapeArea()
~ EXIT
END
