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

BEGIN ~HIDDEN~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #2064 /* ~What do you wish of me?~ */
  IF ~~ THEN REPLY #2066 /* ~I ask a boon of you.~ */ GOTO 1
  IF ~~ THEN REPLY #2067 /* ~Before we get to that, I would like to know a bit about the Enlightened Ones. Who are you and why all the secrecy?~ */ GOTO 2
  IF ~~ THEN REPLY #2068 /* ~I want nothing from you.~ */ GOTO 3
END

IF ~~ THEN BEGIN 1 // from: 5.0 3.0 2.0 0.0
  SAY #34433 /* ~You are here to have me cure this girl, Jaella.~ */
  IF ~~ THEN REPLY #34434 /* ~Yes, I am.~ */ GOTO 4
  IF ~~ THEN REPLY #34435 /* ~I wish nothing from you.~ */ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #34436 /* ~We are something of which you have no right to have knowledge. Some day I shall find a way to deal with Gerhardt's ravings. For now, what do you wish?~ */
  IF ~~ THEN REPLY #34437 /* ~I wish to ask a boon of you.~ */ GOTO 1
  IF ~~ THEN REPLY #34438 /* ~I want nothing from you.~ */ GOTO 3
  IF ~~ THEN REPLY #34444 /* ~How do you know Gerhardt? Is he a part of the Enlightened Ones?~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 2.1 1.1 0.2
  SAY #34439 /* ~I remind you that you wished to have this meeting. I do not take such interruptions lightly nor do I let a useless person see me and live.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 4 // from: 1.0
  SAY #34440 /* ~It was not a question, fool. I do this because you have an aura of usefulness about you. Do a task for me I shall heal the damage done to the girl's mind.~ */
  IF ~~ THEN REPLY #34441 /* ~Agreed.~ */ GOTO 6
  IF ~~ THEN REPLY #34442 /* ~What is the task?~ */ GOTO 6
END

IF ~~ THEN BEGIN 5 // from: 2.2
  SAY #34445 /* ~No more stupid questions.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 6 // from: 4.1 4.0
  SAY #34446 /* ~Good. I am being stalked by two creatures of evil intent. You will destroy these two for me and you will do it well. Is that clear?~ */
  IF ~~ THEN REPLY #34447 /* ~Why are they hunting you?~ */ GOTO 7
  IF ~~ THEN REPLY #34723 /* ~How do I know you will keep your side of the bargain and heal the girl once I am done?~ */ GOTO 7
  IF ~~ THEN REPLY #34448 /* ~It is clear.~ */ GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 6.1 6.0
  SAY #34449 /* ~I said without question. Try to wrap your mind around the concept and listen.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0 6.2
  SAY #34450 /* ~This chase has gone on too long and I grow bored. The two have a contact in the proprietor of a dingy flop-house in the Docks District called the Sea's Bounty.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #34451 /* ~He will not believe that you have found me without the code words. Tell him that you are a seeker. He will tell you where the two lie, waiting for word of my whereabouts.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #34452 /* ~Betray me to them and I assure you, both the girl and yourself shall die before I do. Go now, and return when they are dead.~ */
  IF ~~ THEN DO ~SetGlobal("HiddenJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #34443 /* ~Jan returns home to help his former love, Lissa.

I have met with the Hidden in the sewers... a strange and mysterious creature that knew why I was there before I even said anything.  He directed me to kill two evil creatures that are hunting him.  I can locate them through a contact of theirs... the proprietor of an inn in the Docks District called the Sea's Bounty... he will know me as legitimate if I tell him that I am a 'Seeker'.  Once I have done the deed, I am to return to him and he will cure the girl.~ */ EXIT
END

IF ~Global("HiddenJob","GLOBAL",1)
OR(2)
!Dead("JanGith1")
!Dead("JanGith2")~ THEN BEGIN 11 // from:
  SAY #34453 /* ~You return without results. Do the job or I shall leave the girl to her fate.~ */
  IF ~~ THEN EXIT
END

IF ~Global("HiddenJob","GLOBAL",1)
Dead("JanGith1")
Dead("JanGith2")~ THEN BEGIN 12 // from:
  SAY #34454 /* ~Well done. The girl is healed. Leave me now.~ */
  IF ~~ THEN REPLY #34455 /* ~Wait! Who are you that you should have githyanki on your trail?~ */ DO ~AddexperienceParty(17500)
SetGlobal("JanLissaPlot","GLOBAL",10)
~ UNSOLVED_JOURNAL #47995 /* ~Jan returns home to help his former love, Lissa.

According to the Hidden, Jaella has been cured of her illness.  He left to go elsewhere into the dark sewers, I assume, telling me in no uncertain terms that I am not to speak of his presence.  All that remains is to return to Jan and tell him the good news.~ */ GOTO 14
  IF ~~ THEN REPLY #34456 /* ~How do I know she is healed?~ */ DO ~AddexperienceParty(17500)
SetGlobal("JanLissaPlot","GLOBAL",10)
~ UNSOLVED_JOURNAL #47995 /* ~Jan returns home to help his former love, Lissa.

According to the Hidden, Jaella has been cured of her illness.  He left to go elsewhere into the dark sewers, I assume, telling me in no uncertain terms that I am not to speak of his presence.  All that remains is to return to Jan and tell him the good news.~ */ GOTO 14
  IF ~~ THEN REPLY #34457 /* ~Goodbye.~ */ DO ~AddexperienceParty(17500)
SetGlobal("JanLissaPlot","GLOBAL",10)
~ UNSOLVED_JOURNAL #47995 /* ~Jan returns home to help his former love, Lissa.

According to the Hidden, Jaella has been cured of her illness.  He left to go elsewhere into the dark sewers, I assume, telling me in no uncertain terms that I am not to speak of his presence.  All that remains is to return to Jan and tell him the good news.~ */ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 15.0 12.2
  SAY #34458 /* ~If others should come looking for me, you know nothing. Tell them otherwise and I will kill you. I shall go.~ */
  IF ~Global("SawIllithid","LOCALS",1)
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Jaheira")~ THEN DO ~MoveToPointNoInterrupt([1315.2075])
EscapeArea()
~ EXIT
  IF ~Global("SawIllithid","LOCALS",0)~ THEN DO ~MoveToPointNoInterrupt([1315.2075])
EscapeArea()~ EXIT
  IF ~Global("SawIllithid","LOCALS",1)
IsValidForPartyDialog("HaerDalis")~ THEN DO ~MoveToPointNoInterrupt([1315.2075])
EscapeArea()~ EXTERN ~HAERDAJ~ 134
  IF ~Global("SawIllithid","LOCALS",1)
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Viconia")~ THEN DO ~MoveToPointNoInterrupt([1315.2075])
EscapeArea()~ EXTERN ~VICONIJ~ 168
  IF ~Global("SawIllithid","LOCALS",1)
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Jaheira")~ THEN DO ~MoveToPointNoInterrupt([1315.2075])
EscapeArea()~ EXTERN ~JAHEIRAJ~ 501
END

IF ~~ THEN BEGIN 14 // from: 12.1 12.0
  SAY #34459 /* ~Fool! Do you not yet understand?~ */
  IF ~~ THEN DO ~StartCutSceneMode()
SetGlobal("HiddenJob","GLOBAL",2)
Polymorph(MINDFLAYER)
Wait(3)
Polymorph(MONK_MALE_HUMAN)
SetGlobal("HiddenJob","GLOBAL",3)
SetGlobal("SawIllithid","LOCALS",1)
StartDialogueNoSet([PC])
~ EXIT
END

IF ~Global("HiddenJob","GLOBAL",3)
~ THEN BEGIN 15 // from:
  SAY #34460 /* ~There is your answer. Puzzle through it at your leisure.~ */
  IF ~~ THEN GOTO 13
END
