// creator  : weidu.exe (version 23600)
// argument : BHEREN.DLG
// game     : .
// source   : ./override/BHEREN.DLG
// dialog   : lang\en_us/dialog.tlk
// dialogF  : (none)

BEGIN ~BHEREN~

IF ~  NumberOfTimesTalkedTo(0)
ReputationGT(LastTalkedToBy,14)
~ THEN BEGIN 0 // from:
  SAY #15132 /* ~Damnable cat! I figured Petrine would take the beast with her but life isn't that kind, is it.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26879 /* ~Petrine's Cat
I visited Bheren of Baldur's Gate in his house today. A loitering cat was annoying him, and he mentioned someone named Petrine.~ */ EXIT
  IF ~Global("X#SHARTEELBHEREN1","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELBHEREN1","GLOBAL",1)~ EXTERN ~SHARTJ~ 139
END

IF ~  NumberOfTimesTalkedTo(0)
ReputationLT(LastTalkedToBy,15)
~ THEN BEGIN 1 // from:
  SAY #15133 /* ~Damnable cat! I'll give you the cloak off my back if you can kill the pesky thing.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26880 /* ~Petrine's Cat
I visited Bheren of Baldur's Gate in his house today. He has offered me the proverbial cloak off his back in exchange for the death of a rather bothersome cat...~ */ EXIT
  IF ~Global("X#FALDORNBHEREN1","GLOBAL",0)
InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#FALDORNBHEREN1","GLOBAL",1)~ EXTERN ~FALDOJ~ 87
  IF ~Global("X#SHARTEELBHEREN2","GLOBAL",0)
InParty("sharteel")
InMyArea("sharteel")
!StateCheck("sharteel",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#SHARTEELBHEREN2","GLOBAL",1)~ EXTERN ~SHARTJ~ 140
END

IF ~  ReputationLT(LastTalkedToBy,8)
Dead("PetrinesCat")
Global("HelpBheren","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #15134 /* ~I'm not usually a man who honors his words too much but you wouldn't believe how glad I am to be rid of that crazy cat! Here, take my cloak and good riddance.~ */
  IF ~~ THEN DO ~EraseJournalEntry(26881)
EraseJournalEntry(26879)
EraseJournalEntry(26880)
SetGlobal("HelpBheren","GLOBAL",1)
AddexperienceParty(400)
GiveItem("CLCK01",LastTalkedToBy)
~ SOLVED_JOURNAL #26882 /* ~Petrine's Cat
I showed Bheren that I definitely know one way to skin a cat. He's glad to be rid of that pesky Angel.~ */ EXIT
END

IF ~  ReputationGT(LastTalkedToBy,7)
Dead("PetrinesCat")
Global("HelpBheren","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #15135 /* ~You didn't think I was serious, did you? Cripes, you go find my niece Petrine and tell her you killed her stinking cat, 'cause I'm sure not going to!~ */
  IF ~~ THEN DO ~EraseJournalEntry(26881)
EraseJournalEntry(26879)
EraseJournalEntry(26880)
SetGlobal("HelpBheren","GLOBAL",1)
AddexperienceParty(400)
ReputationInc(-1)
~ SOLVED_JOURNAL #26882 /* ~Petrine's Cat
I showed Bheren that I definitely know one way to skin a cat. He's glad to be rid of that pesky Angel.~ */ EXIT
END

IF ~  False()
~ THEN BEGIN 4 // from:
  SAY #15136 /* ~Between you and that cat, life has been sheer hell ever since Petrine ran away. Damn you!~ */
  IF ~~ THEN EXIT
END

IF ~  Global("HelpBheren","GLOBAL",1)
~ THEN BEGIN 5 // from:
  SAY #15137 /* ~Sure is quiet around here without that infernal cat. Almost miss her, I do...~ */
  IF ~~ THEN EXIT
  IF ~Global("X#VicBher","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicBher","GLOBAL",1)~ EXTERN ~VICONJ~ 94
END

IF ~~ THEN BEGIN 6 // from:
  SAY #45437 /* ~Listen, just rid me of this damnable nuisance, all right?~ */
  IF ~~ THEN UNSOLVED_JOURNAL #26880 /* ~Petrine's Cat
I visited Bheren of Baldur's Gate in his house today. He has offered me the proverbial cloak off his back in exchange for the death of a rather bothersome cat...~ */ EXIT
END
