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

BEGIN ~_GERDE~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #85633 /* ~You've come here to fight ankhegs? Well, listen up: it's mating season, so it's primarily females coming up to the surface, looking to put on a little extra weight. They're hungry, they're aggressive, and there are a lot of them. Now, the point of this exercise is not to exterminate them, but to keep their population to a manageable level. Remember, they aerate the soil and thereby improve crop yields by as much as 15%. Food is going to be scarce enough in the next few years, so keep that in mind when you're out there. No more than ten ankhegs per party. After that it's catch and release, alright? Most of the activity starts about fifty yards to the east. Now move out, everyone. I'll keep an eye on things from here.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #85634 /* ~Ankheg culling

I am assisting the ranger, Gerde, in her attempt to manage the ankheg population on the plains south of Baldur's Gate.  From where I stand at her side, I can see them swarming, coming to the surface roughly fifty yards to our left.  On Gerde's instructions, however, I am not to exceed my quota of ten kills.~ */ EXIT
  IF ~Global("X#GERDE0","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GERDE0","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 344
  IF ~Global("X#GERDE0","GLOBAL",0)
InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GERDE0","GLOBAL",1)~ EXTERN ~_FALDOJ~ 152
  IF ~Global("X#GERDE0","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GERDE0","GLOBAL",1)~ GOTO 6
  IF ~Global("X#GERDE0","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GERDE0","GLOBAL",1)~ EXTERN ~_KIVANJ~ 339
  IF ~Global("X#GERDE0","GLOBAL",0)
InParty("coran")
InMyArea("coran")
!StateCheck("coran",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GERDE0","GLOBAL",1)~ EXTERN ~_CORANJ~ 573
END

IF ~Global("HelpGerde","GLOBAL",1)
~ THEN BEGIN 1 // from:
  SAY #85635 /* ~Good work, and I'll trust that you stuck to the quota. Here is 75 gp. Go find yourself a room in the city and rest up. You've earned it.~ */
  IF ~~ THEN DO ~SetGlobal("HelpGerde","GLOBAL",2)
GiveGoldForce(75)
EraseJournalEntry(85634)
EraseJournalEntry(80434)
EscapeArea()
~ SOLVED_JOURNAL #88924 /* ~Ankheg culling

Ankhegs are certainly formidable opponents, but I managed to kill a number of them, and returned to Gerde for my reward of 75 gp.~ */ EXIT
END

IF ~Global("HelpGerde","GLOBAL",0)
~ THEN BEGIN 2 // from:
  SAY #85636 /* ~Can't stomach the action, can you? That's alright, there are plenty more who will take your place.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 3 // from:
  SAY #85637 /* ~I said a quota of ten per party!  Get out of here and watch your back, because I report all poachers to the Flaming Fist... Damn hammer-happy fools!~ */
  IF ~~ THEN EXIT
END

IF ~False()
~ THEN BEGIN 4 // from:
  SAY #85638 /* ~You want to mess with the Department of Natural Affairs, do you? You're either very brave or very stupid.~ */
  IF ~~ THEN EXIT
END

IF ~True()
~ THEN BEGIN 5 // from:
  SAY #85639 /* ~The ankheg population appears to have stabilized in this region. I'll continue to monitor them, however, until they go into hibernation for the winter.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.3
  SAY #103251 /* ~May Shaundakul guide you, friend.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #85634 /* ~Ankheg culling

I am assisting the ranger, Gerde, in her attempt to manage the ankheg population on the plains south of Baldur's Gate.  From where I stand at her side, I can see them swarming, coming to the surface roughly fifty yards to our left.  On Gerde's instructions, however, I am not to exceed my quota of ten kills.~ */ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 346
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN EXTERN ~_FALDOJ~ 153
END

IF ~~ THEN BEGIN 7 // from: _KIVANJ:339.3
  SAY #103251 /* ~May Shaundakul guide you, friend.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #85634 /* ~Ankheg culling

I am assisting the ranger, Gerde, in her attempt to manage the ankheg population on the plains south of Baldur's Gate.  From where I stand at her side, I can see them swarming, coming to the surface roughly fifty yards to our left.  On Gerde's instructions, however, I am not to exceed my quota of ten kills.~ */ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 347
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN EXTERN ~_FALDOJ~ 154
END

IF ~~ THEN BEGIN 8 // from: _KIVANJ:340.3
  SAY #103251 /* ~May Shaundakul guide you, friend.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #85634 /* ~Ankheg culling

I am assisting the ranger, Gerde, in her attempt to manage the ankheg population on the plains south of Baldur's Gate.  From where I stand at her side, I can see them swarming, coming to the surface roughly fifty yards to our left.  On Gerde's instructions, however, I am not to exceed my quota of ten kills.~ */ EXIT
  IF ~  InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN EXTERN ~_JAHEIJ~ 348
  IF ~  InParty("faldorn")
InMyArea("faldorn")
!StateCheck("faldorn",CD_STATE_NOTVALID)
~ THEN EXTERN ~_FALDOJ~ 155
END
