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

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

IF WEIGHT #1 /* Triggers after states #: 6 even though they appear after this state */
~Global("AttackedChickens","GLOBAL",1)
~ THEN BEGIN 0 // from:
  SAY #31943 /* ~Shoo!  Them aren't yer chickens!  Erlin!  Erlin, someone's after the chickens!~ */
  IF ~Global("KnowsAboutGem","GLOBAL",1)~ THEN REPLY #31954 /* ~I know your secrets, you old hag. Maybe there's something down your gullet, as well!~ */ GOTO 7
  IF ~~ THEN REPLY #31955 /* ~This is between us and the chickens, Ma'am, and I'm going to ask real nicely that you stay out of it.~ */ GOTO 7
END

IF WEIGHT #2 /* Triggers after states #: 6 even though they appear after this state */
~Global("AttackedChickens","GLOBAL",0)
~ THEN BEGIN 1 // from:
  SAY #31944 /* ~Is there something you be needin', me <LADYLORD>?~ */
  IF ~~ THEN REPLY #31945 /* ~What can you tell me about all these murders?~ */ GOTO 2
  IF ~Global("KnowsAboutGem","GLOBAL",1)~ THEN REPLY #31946 /* ~How much are you asking for those chickens?~ */ GOTO 3
  IF ~Global("KnowsAboutGem","GLOBAL",0)~ THEN REPLY #31947 /* ~Why do you have all these chickens, here?~ */ GOTO 8
  IF ~~ THEN REPLY #37296 /* ~No, thanks.~ */ GOTO 9
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #31948 /* ~We fled all the death an' murders, me and my Erlin.  'Tis no longer safe out in the farms.  But I know nothing else about it.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from: 1.1
  SAY #31949 /* ~They aren't for sale.~ */
  IF ~~ THEN REPLY #37299 /* ~Are you sure?  I could offer a good price for them.~ */ GOTO 10
  IF ~~ THEN REPLY #37300 /* ~Then I'll just hack them apart until I find what I want!~ */ GOTO 11
  IF ~~ THEN REPLY #37301 /* ~Very well, if you say so.~ */ GOTO 12
END

IF ~~ THEN BEGIN 4 // from:
  SAY #31950 /* ~Why, that's Jeb's place. Nothing good ever came of that scoundrel. Not since his wife died, at any rate.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 6 even though they appear after this state */
~OR(2)
Global("AttackedChickens","GLOBAL",2)
Allegiance(Myself,ENEMY)
~ THEN BEGIN 5 // from:
  SAY #31951 /* ~Please leave us be. There've been too many deaths here as it is.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("HendrickHostile","GLOBAL",1)
~ THEN BEGIN 6 // from:
  SAY #31952 /* ~Begone from us, brute!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 0.1 0.0
  SAY #31953 /* ~Get off my farm, you louts!~ */
  IF ~~ THEN DO ~EraseJournalEntry(9918)
SetGlobalTimer("StopAttaking","GLOBAL",3)
ChangeAIScript("",RACE)
ActionOverride("Erlin",ChangeAIScript("",RACE))
Enemy()~ SOLVED_JOURNAL #19286 /* ~There's a WHAT in their chicken?

I have found a Beljuril gem which a farmer in Imnesvale had attempted to hide away inside one of his chickens.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from: 1.2
  SAY #37297 /* ~Why not?  We can't leave th' farm to rot completely... we have t' eat, aye, me <LADYLORD>?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: 1.3
  SAY #37298 /* ~Then don't be botherin' goodfolk who have nothin' else but fear to look at.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from: 3.0
  SAY #37302 /* ~Er... talk to Erlin if you wish t' discuss the chickens, me <LADYLORD>.  I'll have nothin' t' do with it.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 3.1
  SAY #37303 /* ~You will do no such thing!  Fie on you!!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from: 3.2
  SAY #37304 /* ~Aye, I do.  Speak to Erlin if ye feels differently about it.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from: GEMFAR02:10.0
  SAY #37333 /* ~No, Erlin!  Don't!!~ */
  IF ~~ THEN EXTERN ~GEMFAR02~ 11
END
