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

BEGIN ~JUGJER01~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #33698 /* ~Eh?  Who disturbs me?~ */
  IF ~~ THEN REPLY #33699 /* ~I am <GABBER>... who are you?~ */ GOTO 1
  IF ~~ THEN REPLY #33700 /* ~My name doesn't concern you.~ */ GOTO 3
  IF ~~ THEN REPLY #33701 /* ~Forget it... I'll be on my way.~ */ GOTO 4
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #33706 /* ~<GABBER>, eh?  Well, I don't recognize your name.  So long as you're not sent by that fool, Daar, I'll not object to your presence.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 3.0 1.0
  SAY #33707 /* ~And I, since you ask, am none other than Jermien... licensed Cowled Wizard for this region.  So you needn't run off and attempt to report me, <GIRLBOY>.~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33708 /* ~You're a Cowled Wizard?  Then why don't you do something about the killings around here?~ */ GOTO 5
  IF ~InPartySlot(LastTalkedToBy,0)
GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #46041 /* ~You're a Cowled Wizard?  Perhaps you could tell me where the Cowled Wizards keep their prisoners.  A friend of mine is being held.~ */ GOTO 34
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33709 /* ~What do you know about the killings here?~ */ GOTO 6
  IF ~~ THEN REPLY #33710 /* ~What is this... thing... you're making?~ */ GOTO 7
  IF ~Global("TalkedToDaar","GLOBAL",1)
!Dead("Daar")
~ THEN REPLY #33711 /* ~Er... Daar didn't send me, but I did talk to him.  Why don't you give him a break?~ */ GOTO 11
  IF ~Global("TalkedToDaar","GLOBAL",0)
!Dead("Daar")~ THEN REPLY #33712 /* ~Why would you be upset if I was sent by this Daar fellow?~ */ GOTO 13
  IF ~~ THEN REPLY #33722 /* ~I'll be going, then.~ */ GOTO 4
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #33713 /* ~Oh, fine.  There isn't anything more pleasant than being disturbed by a mysterious, brooding stranger, now, is there?  Pfah!  Well, I care not, so long as that young fool Daar has not sent you.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 4 // from: 35.5 20.4 14.3 12.3 6.4 5.4 2.6 0.2
  SAY #33714 /* ~Well, don't let the door hit you on the way out, <GIRLBOY>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 35.0 20.0 14.0 12.0 6.0 2.0
  SAY #33715 /* ~I don't do anything about it because I don't want to do anything about it.  I have more important things to do... and until the Cowled Wizards tell me otherwise, I'll not involve myself.~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33716 /* ~Can you tell me what you know about these killings, then?~ */ GOTO 6
  IF ~~ THEN REPLY #33717 /* ~What is this... thing... you're making?~ */ GOTO 7
  IF ~Global("TalkedToDaar","GLOBAL",1)
!Dead("Daar")~ THEN REPLY #33718 /* ~Er... Daar didn't send me, but I did talk to him.  Why don't you give him a break?~ */ GOTO 11
  IF ~Global("TalkedToDaar","GLOBAL",0)
!Dead("Daar")~ THEN REPLY #33721 /* ~Why would you be upset if I was sent by this Daar fellow?~ */ GOTO 13
  IF ~~ THEN REPLY #33723 /* ~I'll be going, then.~ */ GOTO 4
END

IF ~~ THEN BEGIN 6 // from: 35.1 14.1 12.1 5.0 2.2
  SAY #33724 /* ~It's likely wolves or ogres or some other mundane nonsense... I've no interest in the matter.  Why don't you ask some of the yokels, if you're so concerned?~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33727 /* ~If you're a Cowled Wizard, why don't you do something about the killings?~ */ GOTO 5
  IF ~~ THEN REPLY #33728 /* ~What is this... thing... you're making?~ */ GOTO 7
  IF ~Global("TalkedToDaar","GLOBAL",1)
!Dead("Daar")~ THEN REPLY #33729 /* ~Er... Daar didn't send me, but I did talk to him.  Why don't you give him a break?~ */ GOTO 11
  IF ~Global("TalkedToDaar","GLOBAL",0)
!Dead("Daar")~ THEN REPLY #33730 /* ~Why would you be upset if I was sent by this Daar fellow?~ */ GOTO 13
  IF ~~ THEN REPLY #33731 /* ~Well, I'll be going, then.~ */ GOTO 4
END

IF ~~ THEN BEGIN 7 // from: 35.2 20.2 14.2 12.2 6.1 5.1 2.3
  SAY #33732 /* ~Ah!  Glad that you asked!  This, my friend, is nothing other than a golem of stone!  A fine piece of magical craftsmanship, if I do say so myself!~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #33733 /* ~Few other mages have made the attempt, you see.  This type of golem is quite powerful and dangerous... but I am more than skilled enough to control it.~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #33734 /* ~Once it's complete, I'll have an excellent servant... and something to keep an eye on my daughter and that foolhardy beau of hers while I am away.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #33737 /* ~Trouble is, I'm missing one of the crucial ingredients... the blood of a mimic.  I'd pay handsomely for some, in fact.  Hmmmn... you look like the adventurous type... care to find me some?~ */
  IF ~~ THEN REPLY #33738 /* ~What's a mimic and where would I find one?~ */ GOTO 15
  IF ~OR(2)
!Global("chapter","GLOBAL",2)
!Global("ShadowWork","GLOBAL",1)~ THEN REPLY #33739 /* ~What kind of reward are you offering?~ */ GOTO 17
  IF ~Global("chapter","GLOBAL",2)
Global("ShadowWork","GLOBAL",1)~ THEN REPLY #46039 /* ~I am gathering coin to rescue a friend, so if there's a reward, I suppose I could.~ */ GOTO 17
  IF ~~ THEN REPLY #33741 /* ~I'll try to find you some, certainly.~ */ GOTO 18
  IF ~~ THEN REPLY #33740 /* ~No, I'm not interested.~ */ GOTO 19
END

IF ~~ THEN BEGIN 11 // from: 35.3 20.3 6.2 5.2 2.4
  SAY #33742 /* ~Hmph!  I've far more important things in mind for Colette than that fool, Daar.  She'll get over her childish infatuation, I assure you... and Daar will be long gone.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #33743 /* ~If I'd known you were going to plead the boy's case, I would at least have magic missiled you upon entrance.  I'll thank you not to bring up the subject again.~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33744 /* ~You're a Cowled Wizard?  Why don't you do something about the killings around here?~ */ GOTO 5
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33745 /* ~What do you know about the killings?~ */ GOTO 6
  IF ~~ THEN REPLY #33746 /* ~What is this... thing... you're making?~ */ GOTO 7
  IF ~~ THEN REPLY #33747 /* ~I'll be going, then.~ */ GOTO 4
END

IF ~~ THEN BEGIN 13 // from: 35.4 6.3 5.3 2.5
  SAY #33748 /* ~Daar is a foolish boy who is intent on courting my daughter, Colette.  And she is infatuated with him, naturally.  I've far more important things in store for her, however, so she'll just have to get over it.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #33749 /* ~I've got to spend half my time scheming to keep the two of them apart, and it's quite irritating, I'll have you know.  So I'll thank you not to bring up the subject again.~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33750 /* ~You're a Cowled Wizard?  Why don't you do something about the killings around here?~ */ GOTO 5
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33751 /* ~What do you know about the killings?~ */ GOTO 6
  IF ~~ THEN REPLY #33752 /* ~What is this... thing... you're making?~ */ GOTO 7
  IF ~~ THEN REPLY #33753 /* ~I'll be on my way, then.~ */ GOTO 4
END

IF ~~ THEN BEGIN 15 // from: 17.0 10.0
  SAY #33755 /* ~A mimic is a vicious little creature... shapechanger... that likes to attract and kill adventurers by looking like a treasure chest or similar objects.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #33756 /* ~They generally exist in dungeons, ruins and similar places.  Although where you would find one around here, I haven't a clue.  That's why I'm looking for some.~ */
  IF ~OR(2)
!Global("chapter","GLOBAL",2)
!Global("ShadowWork","GLOBAL",1)~ THEN REPLY #33757 /* ~What kind of reward are you offering?~ */ GOTO 17
  IF ~Global("chapter","GLOBAL",2)
Global("ShadowWork","GLOBAL",1)~ THEN REPLY #46040 /* ~I am saving coin to rescue a friend... what would the reward be for this task?~ */ GOTO 17
  IF ~~ THEN REPLY #33758 /* ~Very well... I'll make the attempt.~ */ GOTO 18
  IF ~~ THEN REPLY #33759 /* ~Forget it, I'm not interested.~ */ GOTO 19
END

IF ~~ THEN BEGIN 17 // from: 16.1 16.0 10.2 10.1
  SAY #33760 /* ~Hmm.  I seem to recall that I've got a magical sword around here that I won in a bet from that fool, Tolgerias.  I've no use for it, but it's valuable.  Find me some mimic's blood and it's yours.~ */
  IF ~~ THEN REPLY #33761 /* ~I'd need to know what a mimic is and where you'd find one.~ */ GOTO 15
  IF ~~ THEN REPLY #33762 /* ~Alright... I'll make the attempt.~ */ GOTO 18
  IF ~~ THEN REPLY #33763 /* ~Forget it... I'm not interested in your task.~ */ GOTO 19
END

IF ~~ THEN BEGIN 18 // from: 17.1 16.2 10.3
  SAY #33764 /* ~Fine.  I wish I could point you in the right direction.  But if you do find some, you know where to find me.  Off you go, then, <GIRLBOY>.~ */
  IF ~~ THEN DO ~SetGlobal("JermienJob","GLOBAL",1)
~ UNSOLVED_JOURNAL #2052 /* ~Find mimic's blood for Jermien the Cowled Wizard.

I must find some mimic's blood for the Cowled Wizard, Jermien, for the juggernaut golem he is building in the village of Imnesvale.~ */ EXIT
END

IF ~~ THEN BEGIN 19 // from: 17.2 16.3 10.4
  SAY #33766 /* ~Well, I expected as much, really.  I've no other use for you, <GIRLBOY>, so you'd best just find your way elsewhere in this town, then.~ */
  IF ~~ THEN EXIT
END

IF ~Global("JermienJob","GLOBAL",0)
~ THEN BEGIN 20 // from:
  SAY #33767 /* ~Back again, are you, <GIRLBOY>?  What is it you want now?~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #33768 /* ~I want to know why you don't do anything about the killings, here.~ */ GOTO 5
  IF ~InPartySlot(LastTalkedToBy,0)
GlobalLT("chapter","GLOBAL",4)~ THEN REPLY #46050 /* ~You're a Cowled Wizard... do you know where the Cowled Wizards keep the prisoners that they take?~ */ GOTO 34
  IF ~~ THEN REPLY #33769 /* ~Tell me about this thing you're creating again.~ */ GOTO 7
  IF ~Global("TalkedToDaar","GLOBAL",1)
!Dead("Daar")~ THEN REPLY #33770 /* ~I've spoken to Daar... why don't you give him a break?~ */ GOTO 11
  IF ~~ THEN REPLY #33771 /* ~I'll be going.~ */ GOTO 4
END

IF ~Global("JermienJob","GLOBAL",1)
~ THEN BEGIN 21 // from:
  SAY #33772 /* ~Ah!  It is you again, <GIRLBOY>!  I don't suppose you've found any of that mimic's blood, have you?~ */
  IF ~PartyHasItem("MISC6Y")
~ THEN REPLY #33773 /* ~Yes, I do have some, in fact.~ */ DO ~TakePartyItem("MISC6Y")
SetGlobal("JermienJob","GLOBAL",2)
~ GOTO 22
  IF ~~ THEN REPLY #33774 /* ~No, I don't... but I intend to find some.~ */ GOTO 25
  IF ~~ THEN REPLY #33775 /* ~No, I don't... and I don't intend on looking for it, anymore, either.~ */ GOTO 26
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #33776 /* ~Eh?  Let me have a look at what you have, there.  Yes... yes... I see.  Well done, <GIRLBOY>, well done!  I don't know how you found it, but here it is!~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #33777 /* ~I took the liberty of digging out that sword, earlier, just in case.  Rather prophetic of me, don't you think?  It was just collecting dust, anyway... so here you go and well earned, I might add.~ */
  IF ~~ THEN DO ~AddExperienceParty(19250)
GiveItem("SW1H26",LastTalkedToBy)
~ GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #33778 /* ~Now... all I need to do is add this to the golem and he will be complete!  Finally, I will be able to leave in peace and be assured that Colette will not be molested while I am gone!~ */
  IF ~~ THEN DO ~ClearAllActions()
StartCutSceneMode()
MoveToObject("Juggernaut")
DestroyItem("MISC6Y")
PlaySound("EFF_M11b")
ForceSpell(Myself,DO_NOTHING)
PlaySound("EFF_M36b")
SetGlobal("JuggernautAlive","GLOBAL",1)
ActionOverride("Juggernaut",StartDialogueNoSet(Player1))~ EXIT
END

IF ~~ THEN BEGIN 25 // from: 21.1
  SAY #33779 /* ~Then I suggest you go and keep looking for some.  Mimics don't grow on trees, <GIRLBOY>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 26 // from: 21.2
  SAY #33780 /* ~Well, it's no less than I expected.  Perhaps you should go find some simpler pursuits for yourself, <GIRLBOY>... like, say, farming or something similar.~ */
  IF ~~ THEN DO ~SetGlobal("JermienJob","GLOBAL",0)
~ EXIT
END

IF ~~ THEN BEGIN 27 // from: JUGJUG01:0.0
  SAY #33782 /* ~Yes!  Awake, my creature!  Awake and hear my command!~ */
  IF ~~ THEN EXTERN ~JUGJUG01~ 1
END

IF ~~ THEN BEGIN 28 // from: JUGJUG01:1.0
  SAY #33784 /* ~Eh?  Wh-what is wrong, here?~ */
  IF ~~ THEN GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.0
  SAY #33785 /* ~No!  No, stay back!  BACK, I COMMAND YOU!!~ */
  IF ~!Dead("daar")
!Dead("colette")
~ THEN DO ~SetGlobal("JuggernautAlive","GLOBAL",2)
~ EXTERN ~JUGCOL01~ 0
  IF ~OR(2)
Dead("daar")
Dead("colette")
~ THEN DO ~SetGlobal("JuggernautAlive","GLOBAL",2)
~ EXIT
END

IF ~~ THEN BEGIN 30 // from: JUGCOL01:1.0
  SAY #33788 /* ~Y-yes... I am alive, my daughter.  Thanks to our kind stranger, here...~ */
  IF ~~ THEN EXTERN ~JUGDAR01~ 10
END

IF ~~ THEN BEGIN 31 // from: JUGCOL01:2.0
  SAY #33791 /* ~One of my own creations turned on me, boy.  It... it seems I am not so wise and powerful as I had first thought.~ */
  IF ~~ THEN GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.0
  SAY #33792 /* ~And... perhaps I have been foolish in some of my other decisions, as well.  Daar... boy... if you promise to take care of my daughter, and protect her... if you still want her... I'll not stand in the way.~ */
  IF ~~ THEN EXTERN ~JUGCOL01~ 3
END

IF ~Global("ColetteLeave","GLOBAL",1)
~ THEN BEGIN 33 // from:
  SAY #33795 /* ~My thanks to you, <PRO_GIRLBOY>, for saving a foolish wizard's life.  (sigh)  My daughter is now gone... I think I will leave, myself, for a while and consider what I have done.~ */
  IF ~~ THEN DO ~EraseJournalEntry(2052)
AddexperienceParty(21250)
EscapeArea()
~ SOLVED_JOURNAL #16348 /* ~The Juggernaut Golem activated.

The Cowled Wizard Jermien used the mimic's blood I brought him to activate his juggernaut golem... only to have his creation turn on him.  I managed to kill it and save the wizard, for which he was quite thankful.~ */ EXIT
END

IF ~~ THEN BEGIN 34 // from: 20.1 2.1
  SAY #46042 /* ~Hmph.  I seem to recall that my order had a prison built by the Gondars somewhere to house deviants, but I've no idea where it is.  I cannot be bothered to keep track of such irrelevant matters.~ */
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #46043 /* ~And even if I did know, I wouldn't tell you.  That is Cowled Wizard business.  Now... unless you've business of your own, leave me to my project.~ */
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #46044 /* ~If you're a Cowled Wizard, why don't you do something about all the killings around here?~ */ GOTO 5
  IF ~!Global("villagesaved","GLOBAL",1)~ THEN REPLY #46045 /* ~Perhaps you could tell me what you know about the killings in this area.~ */ GOTO 6
  IF ~~ THEN REPLY #46046 /* ~What is this... thing... you're making?~ */ GOTO 7
  IF ~Global("TalkedToDaar","GLOBAL",1)~ THEN REPLY #46047 /* ~Er... Daar didn't send me, but I did talk to him.  Why don't you give him a break?~ */ GOTO 11
  IF ~Global("TalkedToDaar","GLOBAL",0)~ THEN REPLY #46048 /* ~Why would you be upset if I was sent by this Daar fellow you mentioned?~ */ GOTO 13
  IF ~~ THEN REPLY #46049 /* ~I'll be going, then.~ */ GOTO 4
END

IF ~Dead("Juggernaut")
OR(4)
Dead("daar")
Dead("colette")
!Exists("daar")
!Exists("colette")
!StateCheck("Jermien",STATE_SLEEPING)~ THEN BEGIN 36 // from:
  SAY #58506 /* ~My thanks to you, <PRO_GIRLBOY>, for saving a foolish wizard's life.  (sigh)  With my daughter now gone... I think I will leave, myself, for a while and consider what I have done.~ */
  IF ~~ THEN DO ~EraseJournalEntry(2052)
AddexperienceParty(21250)
EscapeArea()~ EXIT
END
