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

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

IF WEIGHT #1 /* Triggers after states #: 5 even though they appear after this state */
~False()
~ THEN BEGIN 0 // from:
  SAY #79385 /* ~Please, lay off your attack! I mean no harm.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 /* Triggers after states #: 5 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 1 // from:
  SAY #79386 /* ~My name is Gervisse and, as you can tell, I am a mage. The two young girls within that fateful room face a dark and uncertain future. They have already come under the eye of a powerful druid who goes by the name of Voltine. She has polymorphed herself, into what, I know not, in an effort to infiltrate the house and abduct the twins in the night. Please believe me. Voltine must be found or the twins are in grave danger, indeed.~ */
  IF ~~ THEN DO ~CreateCreature("_VOLTIN",[705.246],0)
~ UNSOLVED_JOURNAL #79387 /* ~Laerta and Louise

Old Gervisse, who claims to be watching over a pair of young twins in Baldur's Gate, has asked me to seek out and kill a druid named Voltine.  According to Gervisse, she is apparently polymorphing herself in an attempt to slip past his nightly defenses and abduct the twins.  There is still something that disturbs me about all of this but I'm not sure what...~ */ EXIT
END

IF WEIGHT #3 /* Triggers after states #: 5 even though they appear after this state */
~Dead("voltine")
~ THEN BEGIN 2 // from:
  SAY #79397 /* ~Thank you for dealing with Voltine. I have no reward for you but rest in the knowledge that you have done the right thing. You have my word that it will not be forgotten.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 5 even though they appear after this state */
~!Dead("voltine")
~ THEN BEGIN 3 // from:
  SAY #79398 /* ~It is the graveyard shift, is it not, my friend? I pray you find Voltine soon as it cannot be long before she makes her move.~ */
  IF ~~ THEN EXIT
  IF ~Global("X#JaGrevis","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#JaGrevis","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 77
END

IF WEIGHT #5 /* Triggers after states #: 5 even though they appear after this state */
~False()
~ THEN BEGIN 4 // from:
  SAY #79399 /* ~Very well. If you must fight than so must I...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~  Global("X#VoltineAdd","GLOBAL",1)
~ THEN BEGIN 5 // from:
  SAY #98540 /* ~Yes, what is it you want? Have you dealt with the druid yet?~ */
  IF ~~ THEN REPLY #98541 /* ~Err, no, we will be back.~ */ DO ~SetGlobal("X#VoltineAdd","GLOBAL",2)
~ EXIT
  IF ~~ THEN REPLY #98542 /* ~We met Voltine. She says it is *you* who scares the girls, and we believe her story. I think you should leave at once, old man.~ */ DO ~SetGlobal("X#VoltineAdd","GLOBAL",2)
~ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #98543 /* ~What? What impertinence is this? How foolish you must be to threaten a magic wielder! Never mind... I will dispose of you, if that is what it takes for me to maintain my little... hobby.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END
