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

BEGIN ~MGTEOS01~

IF ~Global("MetTeos","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #40724 /* ~You. I had thought you would be taller.~ [TEOSXX02] */
  IF ~~ THEN REPLY #40768 /* ~I beg your pardon? Have we met?~ */ DO ~SetGlobal("MetTeos","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #40769 /* ~Funny. He who laughs last was probably killed over the joke. Take a hint?~ */ DO ~SetGlobal("MetTeos","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #40770 /* ~What are you doing here! Who the hell are you!~ */ DO ~SetGlobal("MetTeos","GLOBAL",1)~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1 0.0
  SAY #40771 /* ~I am here as a contact and a master, and I will thank you for keeping your tone civil. I am Teos, and I have been assigned to offer you... a special deal.~ [TEOSXX06] */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #40772 /* ~You just recently took this sphere, and by all rights we should have it, but my superiors said to offer an alternative. It would seem we have need of you.~ */
  IF ~~ THEN REPLY #40773 /* ~Your colors are those of the Cowled Wizards! I have had quite enough of them!~ */ GOTO 3
  IF ~Dead("tolger")~ THEN REPLY #40774 /* ~I have just killed some of your number. Why would a Cowled Wizard offer me anything?~ */ GOTO 3
  IF ~~ THEN REPLY #40775 /* ~You are the ones that took Imoen from under my nose! Explain why I should trust you!~ */ GOTO 3
  IF ~~ THEN REPLY #40776 /* ~Magic is all but banned in the city, making many into outlaws. Why would you offer anything?~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.3 2.2 2.1 2.0
  SAY #40777 /* ~I readily agree there is little reason to trust, but I have been ordered to speak with you regardless. It would seem that events as of late are to be reevaluated.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #40778 /* ~I am told that member Tolgerias is no longer to be spoken of. Either he was working for himself, or something of greater importance requires it to be so.~ */
  IF ~~ THEN GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.0
  SAY #40779 /* ~In any case, as distasteful to me as it is, I am to inform you of the details of the partnership to which you are now a member.~ */
  IF ~~ THEN REPLY #40780 /* ~Partnership? I want nothing to do with any of you!~ */ GOTO 6
  IF ~~ THEN REPLY #40781 /* ~You assume a great deal. I was not aware I was joined with you.~ */ GOTO 6
  IF ~~ THEN REPLY #40782 /* ~Such gall to think I would accept anything said to me by a Cowled Wizard.~ */ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.2 5.1 5.0
  SAY #40783 /* ~You have no real choice in the matter. It's a simple bit of business, one that is not without benefit. Listen to what I say and you will see what I mean.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #40784 /* ~You are in possession of a notable artifact, this sphere. That you neutralized it was of great service, and apparently enough for my superiors to overlook the past.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #40785 /* ~That said, they would like to offer an exchange. You may operate in this awkwardly placed sphere if you agree to certain duties for the Cowled Wizards.~ */
  IF ~~ THEN REPLY #40786 /* ~I'm listening.~ */ GOTO 9
  IF ~~ THEN REPLY #40787 /* ~This is a waste of time, you know. Speak if you must, but it will not matter.~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.1 8.0
  SAY #40788 /* ~It is simple; you may have this place and act freely as a mage. In exchange, you do the odd task for us, acting when we can't because of political or other reasons.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #40789 /* ~There may be more conditions on the offer, but I don't know them. Take my word for whatever you think it's worth, and realize that this is best for all involved.~ */
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN REPLY #40790 /* ~You speak of trust when you are the ones that took Imoen from me? Return her, then we will talk.~ */ GOTO 11
  IF ~~ THEN REPLY #40791 /* ~I shall accept this deal for now, though if the benefits are not as you say I will reconsider.~ */ GOTO 13
  IF ~~ THEN REPLY #61136 /* ~I have not had good relations with you people in the past. Do as you will, I will evaluate your offers of service as they come.~ */ GOTO 13
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #40792 /* ~Imoen? I don't know the name. This is a large city, and the Cowled Wizards have many subdivisions and such. Taken because of unauthorized magic use?~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #40793 /* ~I will inquire to my superiors about her if you wish. Until then, I would advise that you act in accordance with this agreement.~ */
  IF ~~ THEN GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.0 10.2 10.1
  SAY #40794 /* ~This is all to be discreet, you understand, so much so that I am forbidden from telling my fellow Cowled Wizards. They will treat you as they always have.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #40795 /* ~If you display magic in the streets unlicensed you will be censured accordingly. The lives of a few brethren are apparently an acceptable price for your assistance.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #40796 /* ~I cannot say that I agree with this, but it is not my place to say.~ */
  IF ~~ THEN REPLY #40797 /* ~I will go along with this for the moment.~ */ GOTO 16
  IF ~~ THEN REPLY #40798 /* ~This stinks of treachery, and I will be watching all of you very closely.~ */ GOTO 16
  IF ~Global("SolamnicKnights","GLOBAL",0)
!Dead("obssol01")
!Dead("obssol02")
!Dead("obssol03")~ THEN REPLY #40801 /* ~Prove your intent. Help me return the Solamnic Knights to their proper plane of existence.~ */ DO ~SetGlobal("SolamnicKnights","GLOBAL",1)~ UNSOLVED_JOURNAL #55625 /* ~Mage Stronghold: An interesting proposition.

A representative of the heretofore-hostile Cowled Wizards has come before me with an offer. He said that they are prepared to offer me the use of the Planar Sphere unmolested and unchallenged, if I will subject myself to their occasional scrutiny. I must still adhere to their rules of no casting magic in the city of Athkatla, but I would enjoy other perks, as well as responsibilities. Interesting, I will look into it.~ */ GOTO 17
END

IF ~~ THEN BEGIN 16 // from: 15.1 15.0
  SAY #40799 /* ~Do what you must, but this is how things must be. I will return tomorrow with details of your duties, and any extra information I can pry from my superiors.~ */
  IF ~~ THEN DO ~SetGlobal("GettingApprentices","GLOBAL",1)
SetGlobalTimer("TeolAppren","GLOBAL",ONE_DAY)
ForceSpell(Myself,DRYAD_TELEPORT)~ UNSOLVED_JOURNAL #55625 /* ~Mage Stronghold: An interesting proposition.

A representative of the heretofore-hostile Cowled Wizards has come before me with an offer. He said that they are prepared to offer me the use of the Planar Sphere unmolested and unchallenged, if I will subject myself to their occasional scrutiny. I must still adhere to their rules of no casting magic in the city of Athkatla, but I would enjoy other perks, as well as responsibilities. Interesting, I will look into it.~ */ EXIT
END

IF ~~ THEN BEGIN 17 // from: 15.2
  SAY #40800 /* ~They are no doubt some unfortunate travelers that got caught in this sphere? No one here will miss them. I say kill them and save the headache.~ */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #40802 /* ~But if you must help them, I suggest speaking with Ribald at the Adventurers' Mart. He seems to have all sorts of things for unique situations such as this.~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #40803 /* ~Beyond that, the Most Noble Order of the Radiant Heart deals with knights, I do not. Just one of the problems you are sure to encounter in this place.~ */
  IF ~~ THEN DO ~SetGlobal("GettingApprentices","GLOBAL",1)
SetGlobalTimer("TeolAppren","GLOBAL",ONE_DAY)
ForceSpell(Myself,DRYAD_TELEPORT)~ UNSOLVED_JOURNAL #55626 /* ~Mage Stronghold: The Solamnic Knights.

I asked the Cowled Wizard Teos what he would do about the Solamnic Knights brought here in the sphere from their own home plane. He suggested that I kill them. On the useful side, he did mention that Ribald at the Adventurers' Mart might have insight into unique situations such as this. Alternately, I could petition the Most Noble Order of the Radiant Heart. They know how to deal with paladins and such.~ */ EXIT
END

IF ~Global("GettingApprentices","GLOBAL",2)~ THEN BEGIN 20 // from:
  SAY #40804 /* ~Well, <CHARNAME>, I return with your first duty under the yoke of the Cowled Wizards. I trust you have made yourself at home in this place?~ */
  IF ~~ THEN REPLY #40805 /* ~As well as can be expected. What is it that you want?~ */ GOTO 24
  IF ~~ THEN REPLY #40806 /* ~Say what you must and then leave. This is not a relationship I am fond of.~ */ GOTO 24
  IF ~Global("SolamnicKnights","GLOBAL",0)
!Dead("obssol01")
!Dead("obssol02")
!Dead("obssol03")~ THEN REPLY #40807 /* ~I need to ask you about these Solamnic Knights. How can I send them to their proper plane?~ */ DO ~SetGlobal("SolamnicKnights","GLOBAL",1)
~ GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.2
  SAY #40808 /* ~Some unfortunate travelers that got caught in this sphere? No one here will miss them. I say kill them and save yourself the headache.~ */
  IF ~~ THEN GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #40809 /* ~But if you must help them, I suggest speaking with Ribald at the Adventurers' Mart. He seems to have all sorts of things for unique situations such as this.~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #40810 /* ~Beyond that, the Most Noble Order of the Radiant Heart deals with knights, I do not. Just one of the problems you are sure to encounter in this place.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #55626 /* ~Mage Stronghold: The Solamnic Knights.

I asked the Cowled Wizard Teos what he would do about the Solamnic Knights brought here in the sphere from their own home plane. He suggested that I kill them. On the useful side, he did mention that Ribald at the Adventurers' Mart might have insight into unique situations such as this. Alternately, I could petition the Most Noble Order of the Radiant Heart. They know how to deal with paladins and such.~ */ GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0 20.1 20.0
  SAY #40811 /* ~Enough chatter. You are to forgo your own concerns and do the task I set, though I do not understand why you have been chosen. It hardly seems worth the trouble.~ */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #40812 /* ~I bring three young mages. They have shown potential, and have been removed from their homes that they might be cultivated into productive Cowled Wizards.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #40813 /* ~These apprentices shall serve and observe while you direct their schooling. This will not require much, and they may even supply you with things you need.~ */
  IF ~~ THEN REPLY #40814 /* ~Introduce them then. I will see what I can do.~ */ GOTO 27
  IF ~~ THEN REPLY #40815 /* ~Name the whelps. I will see if they deserve tutelage.~ */ GOTO 27
END

IF ~~ THEN BEGIN 27 // from: 26.1 26.0
  SAY #40816 /* ~The first is Morul, and he speaks for the others. He is the son of a wealthy merchant, and his father would be most upset if something happened to his gifted child.~ */
  IF ~~ THEN EXTERN ~MGAPPR02~ 0
END

IF ~~ THEN BEGIN 28 // from: MGAPPR02:0.0
  SAY #40819 /* ~I'm sure. Next is Larz. He found some old magic texts and studied without his parents' knowledge. They feared the stigma he would bring and cast him out.~ */
  IF ~~ THEN EXTERN ~MGAPPR01~ 0
END

IF ~~ THEN BEGIN 29 // from: MGAPPR01:0.0
  SAY #40823 /* ~Speak when spoken to, child. Next is Nara, from the area of Trademeet. She was given to a temple as a foundling, and has since developed a taste for magic.~ */
  IF ~~ THEN EXTERN ~MGAPPR03~ 0
END

IF ~~ THEN BEGIN 30 // from: MGAPPR03:0.0
  SAY #40825 /* ~Nothing less is expected. <CHARNAME>, they will receive their instruction from the Cowled Wizards directly, but you will determine the basics of their study.~ */
  IF ~~ THEN REPLY #40828 /* ~Shaping these young wizards will hardly be a chore. I thank you for the opportunity.~ */ JOURNAL #55627 /* ~Mage Stronghold: I have apprentices.

Teos has brought me three young mages that I am to guide through study. Teos was not too thrilled, but I will make good use of the situation, I am sure.~ */ GOTO 31
  IF ~~ THEN REPLY #40829 /* ~And what can they do for me? What do I get out of this?~ */ GOTO 33
  IF ~~ THEN REPLY #40830 /* ~That is all? I doubt I was allowed to keep the Sphere because I would make a good teacher.~ */ GOTO 31
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN REPLY #41055 /* ~Have you discovered anything about the whereabouts of Imoen? I must know.~ */ GOTO 32
END

IF ~~ THEN BEGIN 31 // from: 30.2 30.0
  SAY #41054 /* ~I am not responsible for granting it. This stinks of make-work, but it is not for me to decide. I will return in future tendays with additional duties.~ */
  IF ~~ THEN DO ~SetGlobal("GettingApprentices","GLOBAL",3)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~~ THEN BEGIN 32 // from: 30.3
  SAY #41056 /* ~The name brings uncomfortable shifts from those in leadership. I will see if there is any more to learn and return when I have something worthwhile to say.~ */
  IF ~~ THEN DO ~SetGlobal("GettingApprentices","GLOBAL",3)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~~ THEN BEGIN 33 // from: 30.1
  SAY #41057 /* ~You get some freeloading magelings to make you trinkets. It stinks of make-work. Do what you can; I will return when I have something of value to say.~ */
  IF ~~ THEN DO ~SetGlobal("GettingApprentices","GLOBAL",3)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~Dead("mgappr01")
Dead("mgappr02")
Dead("mgappr03")
Global("MageAmbush","GLOBAL",0)~ THEN BEGIN 34 // from:
  SAY #41990 /* ~Well, <CHARNAME>, it would appear as though you have wiped out an entire class of young mages. Excellent tutoring.~ */
  IF ~~ THEN REPLY #41991 /* ~I tried my best. I am saddened by their fate.~ */ DO ~SetGlobal("ApprentiOver","GLOBAL",2)~ GOTO 35
  IF ~~ THEN REPLY #41992 /* ~Entirely their own faults. I tried to guide them properly, but they took risks.~ */ DO ~SetGlobal("ApprentiOver","GLOBAL",2)~ GOTO 36
  IF ~~ THEN REPLY #41993 /* ~These things happen. Am I to face some sort of punishment?~ */ DO ~SetGlobal("ApprentiOver","GLOBAL",3)~ GOTO 37
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #41994 /* ~I am sure you are, as will be their parents. I'm not sure what my superiors were expecting, though. I told them this was a bad idea.~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 36 // from: 34.1
  SAY #41995 /* ~I am certain you did your best, though what my superiors expected that to be, I do not know. I told them this was a bad idea.~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 37 // from: 34.2
  SAY #41996 /* ~I doubt it. As incompetent as I think you are, apprentices die all the time. That is the hazard of learning what you can and cannot control.~ */
  IF ~~ THEN GOTO 38
END

IF ~~ THEN BEGIN 38 // from: 37.0 36.0 35.0
  SAY #41997 /* ~I will report the fates of these youths to the proper people, and you will see no more of me for a time.~ */
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN DO ~EraseJournalEntry(55633)
EraseJournalEntry(55627)
EraseJournalEntry(55634)
~ SOLVED_JOURNAL #55628 /* ~Mage Stronghold: Teos unmoved.

Teos did not seem too concerned that my apprentices have all met unfortunate deaths in my service. Business as usual, I guess, though I will miss the chance to shape some young minds in my image.~ */ GOTO 39
  IF ~GlobalGT("AsylumPlot","GLOBAL",0)
Global("SolamnicKnights","GLOBAL",0)
!Dead("obssol01")
!Dead("obssol02")
!Dead("obssol03")~ THEN REPLY #61137 /* ~Can you help send these Solamnic Knights to their own plane?~ */ DO ~SetGlobal("SolamnicKnights","GLOBAL",1)~ GOTO 41
  IF ~GlobalGT("AsylumPlot","GLOBAL",0)~ THEN REPLY #61138 /* ~Oh good.~ */ GOTO 40
END

IF ~~ THEN BEGIN 39 // from: 38.0
  SAY #41998 /* ~And before you ask, no, I have not learned anything new about your Imoen friend. I have not forgotten. You must be patient.~ */
  IF ~~ THEN REPLY #42000 /* ~Yes, yes, do what you can.~ */ GOTO 40
  IF ~Global("SolamnicKnights","GLOBAL",0)
!Dead("obssol01")
!Dead("obssol02")
!Dead("obssol03")~ THEN REPLY #42001 /* ~Can you help send these Solamnic Knights to their own plane?~ */ DO ~SetGlobal("SolamnicKnights","GLOBAL",1)~ GOTO 41
END

IF ~~ THEN BEGIN 40 // from: 39.0 38.2
  SAY #41999 /* ~I will return when I can. Until then, try to stay inconspicuous.~ */
  IF ~~ THEN DO ~SetGlobalTimer("TeolMessenger","GLOBAL",SEVEN_DAYS)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~~ THEN BEGIN 41 // from: 39.1 38.1
  SAY #42002 /* ~Some unfortunate travelers that got caught in this sphere? No one here will miss them. I say kill them and save yourself the headache.~ */
  IF ~~ THEN GOTO 42
END

IF ~~ THEN BEGIN 42 // from: 41.0
  SAY #42003 /* ~But if you must help them, I suggest speaking with Ribald at the Adventurers' Mart. He seems to have all sorts of things for unique situations such as this.~ */
  IF ~~ THEN GOTO 43
END

IF ~~ THEN BEGIN 43 // from: 42.0
  SAY #42004 /* ~Beyond that, the Most Noble Order of the Radiant Heart deals with knights, I do not. Just one of the problems you are sure to encounter in this place.~ */
  IF ~~ THEN DO ~SetGlobalTimer("TeolMessanger","GLOBAL",SEVEN_DAYS)
ForceSpell(Myself,DRYAD_TELEPORT)~ UNSOLVED_JOURNAL #55626 /* ~Mage Stronghold: The Solamnic Knights.

I asked the Cowled Wizard Teos what he would do about the Solamnic Knights brought here in the sphere from their own home plane. He suggested that I kill them. On the useful side, he did mention that Ribald at the Adventurers' Mart might have insight into unique situations such as this. Alternately, I could petition the Most Noble Order of the Radiant Heart. They know how to deal with paladins and such.~ */ EXIT
END

IF ~Global("ApprentiOver","GLOBAL",1)
Global("ApprentiGrad","GLOBAL",0)~ THEN BEGIN 44 // from:
  SAY #42270 /* ~Well, <CHARNAME>, how did you find the experience of tutoring? I trust you gave your apprentices proper instruction?~ */
  IF ~OR(2)
Dead("mgappr01")
Dead("mgappr03")~ THEN REPLY #42271 /* ~I did, though they were hard to teach. They made mistakes that cost them dearly.~ */ GOTO 45
  IF ~OR(2)
Dead("mgappr01")
Dead("mgappr03")~ THEN REPLY #42272 /* ~I am afraid I could have done better. They paid a high price for my inexperience.~ */ GOTO 45
  IF ~~ THEN REPLY #42273 /* ~I found it very rewarding. I feel I have contributed to the future of magery.~ */ GOTO 45
  IF ~~ THEN REPLY #42274 /* ~It was a constant pain in the buttocks! Why was I given this menial task?~ */ GOTO 45
END

IF ~~ THEN BEGIN 45 // from: 44.3 44.2 44.1 44.0
  SAY #42275 /* ~Yes, well, I am sure no one really cares one way or another. To be honest, I think they were merely dumped upon you to keep you busy.~ */
  IF ~!Dead("mgappr01")
!Dead("mgappr03")~ THEN GOTO 46
  IF ~OR(2)
Dead("mgappr01")
Dead("mgappr03")
~ THEN GOTO 48
END

IF ~~ THEN BEGIN 46 // from: 45.0
  SAY #42276 /* ~But, seeing as how they all survived, you are cordially invited to their graduation, which we will be holding right here.~ */
  IF ~~ THEN GOTO 47
END

IF ~~ THEN BEGIN 47 // from: 48.0 46.0
  SAY #42277 /* ~They are a small class, and renting a hall would be excessive. I hope you are dressed for it, you are the only guest. It starts in... oh, about 5 minutes.~ */
  IF ~~ THEN GOTO 49
END

IF ~~ THEN BEGIN 48 // from: 45.1
  SAY #42278 /* ~But, seeing as how at least some of them survived your tutelage, you are cordially invited to the graduation ceremony, which will be held right here.~ */
  IF ~~ THEN GOTO 47
END

IF ~~ THEN BEGIN 49 // from: 47.0
  SAY #42279 /* ~Oooh, I'm all nervous.~ */
  IF ~~ THEN DO ~//SetGlobal("ApprentiGrad","GLOBAL",1)
SetGlobal("ApprentiGrad","GLOBAL",2)
StartCutSceneMode()
StartCutScene("cut33a")~ EXIT
END

IF ~Global("ApprentiGrad","GLOBAL",2)~ THEN BEGIN 50 // from:
  SAY #42283 /* ~Well, wasn't that heartwarming? I'll leave you to reflect upon that while I go see to some business of my own.~ */
  IF ~Global("SolamnicKnights","GLOBAL",0)
!Dead("obssol01")
!Dead("obssol02")
!Dead("obssol03")~ THEN REPLY #42284 /* ~Wait, I need to know if you can help me send these Solamnic Knights home.~ */ DO ~SetGlobal("ApprentiGrad","GLOBAL",3)
~ GOTO 51
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN REPLY #42285 /* ~That's it? You've nothing else for me? What about my friend Imoen?~ */ DO ~SetGlobal("ApprentiGrad","GLOBAL",3)~ GOTO 56
  IF ~~ THEN REPLY #42286 /* ~Very well. I await your next assignment.~ */ DO ~SetGlobal("ApprentiGrad","GLOBAL",3)~ GOTO 57
END

IF ~~ THEN BEGIN 51 // from: 50.0
  SAY #42287 /* ~Some unfortunate travelers that got caught in this sphere? No one here will miss them. I say kill them and save yourself the headache.~ */
  IF ~~ THEN GOTO 52
END

IF ~~ THEN BEGIN 52 // from: 51.0
  SAY #42288 /* ~But if you must help them, I suggest speaking with Ribald at the Adventurers' Mart. He seems to have all sorts of things for unique situations such as this.~ */
  IF ~~ THEN GOTO 53
END

IF ~~ THEN BEGIN 53 // from: 52.0
  SAY #42290 /* ~Beyond that, the Most Noble Order of the Radiant Heart deals with knights, I do not. Just one of the problems you are sure to encounter in this place.~ */
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN DO ~SetGlobal("SolamnicKnights","GLOBAL",1)~ UNSOLVED_JOURNAL #55626 /* ~Mage Stronghold: The Solamnic Knights.

I asked the Cowled Wizard Teos what he would do about the Solamnic Knights brought here in the sphere from their own home plane. He suggested that I kill them. On the useful side, he did mention that Ribald at the Adventurers' Mart might have insight into unique situations such as this. Alternately, I could petition the Most Noble Order of the Radiant Heart. They know how to deal with paladins and such.~ */ GOTO 54
  IF ~GlobalGT("AsylumPlot","GLOBAL",0)~ THEN DO ~SetGlobal("SolamnicKnights","GLOBAL",1)~ UNSOLVED_JOURNAL #55626 /* ~Mage Stronghold: The Solamnic Knights.

I asked the Cowled Wizard Teos what he would do about the Solamnic Knights brought here in the sphere from their own home plane. He suggested that I kill them. On the useful side, he did mention that Ribald at the Adventurers' Mart might have insight into unique situations such as this. Alternately, I could petition the Most Noble Order of the Radiant Heart. They know how to deal with paladins and such.~ */ GOTO 55
END

IF ~~ THEN BEGIN 54 // from: 53.0
  SAY #42291 /* ~And before you ask, no, I have no information about Imoen. I will ask again, because I know you will pester me.~ */
  IF ~~ THEN GOTO 55
END

IF ~~ THEN BEGIN 55 // from: 56.0 54.0 53.1
  SAY #42292 /* ~I find it annoying too, but it is as though we are having trouble contacting all of our resources. I will ask what is going on. Until then, take care.~ */
  IF ~~ THEN DO ~SetGlobalTimer("TeolMessenger","GLOBAL",TWO_DAYS)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~~ THEN BEGIN 56 // from: 50.1
  SAY #42293 /* ~I am afraid I have no more to tell you than I did before, which is nothing. I am getting nowhere with official channels.~ */
  IF ~~ THEN GOTO 55
END

IF ~~ THEN BEGIN 57 // from: 50.2
  SAY #42294 /* ~You do that. I will return.~ */
  IF ~~ THEN DO ~SetGlobalTimer("TeolMessenger","GLOBAL",TWO_DAYS)
ForceSpell(Myself,DRYAD_TELEPORT)~ EXIT
END

IF ~Global("MageAmbush","GLOBAL",1)~ THEN BEGIN 58 // from:
  SAY #42297 /* ~Hello, <CHARNAME>.~ */
  IF ~~ THEN DO ~SetGlobal("MageAmbush","GLOBAL",2)~ GOTO 59
END

IF ~~ THEN BEGIN 59 // from: 58.0
  SAY #42298 /* ~Well?~ */
  IF ~~ THEN REPLY #42299 /* ~Well what?~ */ GOTO 60
  IF ~~ THEN REPLY #42300 /* ~Quit playing games. What did you want?~ */ GOTO 60
  IF ~~ THEN REPLY #42301 /* ~Don't waste my time, Teos. Why am I here?~ */ GOTO 60
END

IF ~~ THEN BEGIN 60 // from: 59.2 59.1 59.0
  SAY #42302 /* ~What? I got a message that you needed to speak to me. That is why I am here. I sent you no message.~ */
  IF ~~ THEN GOTO 61
END

IF ~~ THEN BEGIN 61 // from: 60.0
  SAY #42303 /* ~What is going on here?~ */
  IF ~~ THEN DO ~SetGlobal("SpawnAssassins","AR0411",1)
//PWOOD",[2774.2650])
//eateVisualEffect("SPWOOD",[2839.2781])
//eateVisualEffect("SPWOOD",[3160.2717])
//eateVisualEffect("SPWOOD",[2989.2821])
//eateVisualEffect("SPWOOD",[2908.2795])
//eateVisualEffect("SPWOOD",[2842.2772])
//eateVisualEffect("SPWOOD",[2894.2508])
//it(5)
//eateCreature("mgass01",[2774.2650],14)
//eateCreature("mgass02",[2839.2781],11)
//eateCreature("mgass03",[3160.2714],4)
//eateCreature("pardru",[2989.2821],8)
//eateCreature("parthf",[2908.2795],8)
//eateCreature("parmonk",[2842.2772],8)
//eateCreature("parfig16",[2894.2508],8)
//dCutSceneMode()
//tionOverride("mgass01",StartDialogueNoSet(Player1))~ EXIT
END

IF ~Dead("mgass01")
Dead("mgass02")
Dead("mgass03")
Global("MageAmbush","GLOBAL",2)~ THEN BEGIN 62 // from:
  SAY #42304 /* ~Well, that was certainly unpleasant. Sorry I... sorry I wasn't much help, but I... I... sprained a... casting finger. Heh heh...~ [TEOSXX07] */
  IF ~~ THEN DO ~SetGlobal("MageAmbush","GLOBAL",3)~ GOTO 63
END

IF ~~ THEN BEGIN 63 // from: 62.0
  SAY #42305 /* ~Oh all right! So I'm a coward! So what! There are more important things to think of right now so stop looking at me like that.~ */
  IF ~~ THEN REPLY #42306 /* ~Keep talking, worm.~ */ GOTO 64
  IF ~~ THEN REPLY #42307 /* ~Just speak. What was this all about?~ */ GOTO 64
END

IF ~~ THEN BEGIN 64 // from: 63.1 63.0
  SAY #42308 /* ~You are not the only one with enemies. The Cowled Wizards have many. Some are incredibly fanatical as well.~ */
  IF ~~ THEN GOTO 65
END

IF ~~ THEN BEGIN 65 // from: 64.0
  SAY #42309 /* ~We have relegated magic to something that only our guards are allowed to do in public. That is not enough for some people.~ */
  IF ~~ THEN GOTO 66
END

IF ~~ THEN BEGIN 66 // from: 65.0
  SAY #42310 /* ~One man in particular is a danger. Lord Ketlaar Argrim. He is an anti-magic fanatic, and wants us all confined or killed.~ */
  IF ~~ THEN GOTO 67
END

IF ~~ THEN BEGIN 67 // from: 66.0
  SAY #42311 /* ~Obviously he views this Planar Sphere as a big magical slap in the face, and he would probably prefer you removed from the city... in a box.~ */
  IF ~~ THEN REPLY #42312 /* ~Hence the attack. What can I do?~ */ GOTO 68
  IF ~~ THEN REPLY #42313 /* ~Can he be reasoned with?~ */ GOTO 68
  IF ~~ THEN REPLY #42314 /* ~I'll kill the bastard. That will solve the problem.~ */ GOTO 68
END

IF ~~ THEN BEGIN 68 // from: 67.2 67.1 67.0
  SAY #42315 /* ~We have thought about this for some time, and we have devised a plan. I suppose it is time to unleash it and see what happens.~ */
  IF ~~ THEN GOTO 69
END

IF ~~ THEN BEGIN 69 // from: 68.0
  SAY #42316 /* ~He will not listen to reason, and if we kill him he will be a martyr for his cause. No, we must simply... make him disappear.~ */
  IF ~~ THEN GOTO 70
END

IF ~~ THEN BEGIN 70 // from: 69.0
  SAY #42317 /* ~I do not mean kill him, I mean disappear. Forever. With a specially attuned Rune of Imprisonment. If a mage could use it on him... well, he would be gone.~ */
  IF ~~ THEN GOTO 71
END

IF ~~ THEN BEGIN 71 // from: 70.0
  SAY #42318 /* ~Obviously the Cowled Wizards cannot be implicated. That is where you come in.~ */
  IF ~~ THEN REPLY #42319 /* ~I see. I will take care of your problem for you.~ */ GOTO 72
  IF ~~ THEN REPLY #42320 /* ~I'll gladly try it. I'll not let him continue this little crusade of his.~ */ GOTO 75
  IF ~~ THEN REPLY #42321 /* ~And if I refuse?~ */ GOTO 72
END

IF ~~ THEN BEGIN 72 // from: 71.2 71.0
  SAY #42322 /* ~It's your problem as well, now. More attacks will come. Besides, I'd hate to have to take the Sphere away from you now. You've made a home here.~ */
  IF ~~ THEN REPLY #42324 /* ~Take the damn thing. I'll not be your stooge anymore!~ */ GOTO 73
  IF ~~ THEN REPLY #42325 /* ~All right, I will help.~ */ GOTO 75
END

IF ~~ THEN BEGIN 73 // from: 72.0
  SAY #42323 /* ~That is unfortunate. Such an abrupt end to this long relationship. I will almost miss you. Almost. Farewell then.~ */
  IF ~~ THEN GOTO 74
END

IF ~~ THEN BEGIN 74 // from: 73.0
  SAY #42326 /* ~You are now barred from entering the sphere. It's a little spell we've been working on. So sorry.~ */
  IF ~~ THEN DO ~SetGlobal("PCSphere","GLOBAL",2)
ForceSpell(Myself,DRYAD_TELEPORT)
EraseJournalEntry(55633)
EraseJournalEntry(55627)
EraseJournalEntry(55634)
EraseJournalEntry(55629)
EraseJournalEntry(55630)
EraseJournalEntry(55635)
EraseJournalEntry(55638)
EraseJournalEntry(55640)
~ SOLVED_JOURNAL #55631 /* ~Mage Stronghold: No more.

I have refused to be the lackey of Teos and the Cowled Wizards. I turned down their request to battle Lord Ketlar Argrim. As a result I have been restricted from entering the Planar Sphere again. It is no longer open to me. A pity.~ */ EXIT
END

IF ~~ THEN BEGIN 75 // from: 72.1 71.1
  SAY #42327 /* ~Good and good. Here is the rune. Be careful; it will only work on Lord Argrim and it has a frightfully long casting time.~ */
  IF ~~ THEN DO ~CreateItem("misc8g",0,0,0)
GiveItem("misc8g",[PC])~ UNSOLVED_JOURNAL #55630 /* ~Mage Stronghold: Fanatic assassination.

Teos has given me a new task. I am to dispatch one Lord Ketlaar Argrim. He is an anti-magic fanatic, and wants us all confined or killed. I am to use a special rune of imprisonment on him so that he will not be a martyr. He will simply disappear.  Ketlaar can be found at the Crooked Crane near the city gates.~ */ GOTO 76
END

IF ~~ THEN BEGIN 76 // from: 75.0
  SAY #42328 /* ~You'll have to keep him occupied while you use it. Go to the city gates and find a place called the Crooked Crane. Upstairs you will find our enemy. Good luck.~ */
  IF ~~ THEN REPLY #42329 /* ~You had this ever-so-special rune on you? I smell a rat.~ */ GOTO 77
  IF ~~ THEN REPLY #42330 /* ~I will do what I can for the benefit of mages everywhere.~ */ GOTO 78
END

IF ~~ THEN BEGIN 77 // from: 76.0
  SAY #42331 /* ~Well, perhaps he was encouraged to find you, but that changes nothing. It's him or you. Good luck.~ */
  IF ~~ THEN DO ~SetGlobal("SpawnArgrim","GLOBAL",1)~ EXIT
END

IF ~~ THEN BEGIN 78 // from: 76.1
  SAY #42332 /* ~That's the spirit.~ */
  IF ~~ THEN DO ~SetGlobal("SpawnArgrim","GLOBAL",1)~ EXIT
END

IF ~Dead("mgass01")
Dead("mgass02")
Dead("mgass03")
GlobalGT("MageAmbush","GLOBAL",2)~ THEN BEGIN 79 // from:
  SAY #42333 /* ~How have you been doing? Is the deed done? Is Argrim imprisoned?~ */
  IF ~~ THEN REPLY #42334 /* ~I have not yet done it. It will take some time.~ */ GOTO 80
  IF ~Dead("mgket01")
Global("ArgrimImprison","GLOBAL",0)~ THEN REPLY #42335 /* ~Unfortunately I killed him.~ */ GOTO 81
  IF ~Global("ArgrimImprison","GLOBAL",1)
PartyHasItem("MISC8G")~ THEN REPLY #42336 /* ~I imprisoned him! Here is the rune!~ */ GOTO 82
END

IF ~~ THEN BEGIN 80 // from: 79.0
  SAY #42337 /* ~Whatever, just do it. If he continues magic use will be grounds for torture and executions, not imprisonment. He is the greater of two evils.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 81 // from: 79.1
  SAY #42338 /* ~You fool! Now a hundred more will follow in his wake! Fanatics breed off the death of their comrades, it's their bread and butter.~ */
  IF ~~ THEN GOTO 83
END

IF ~~ THEN BEGIN 82 // from: 79.2
  SAY #42339 /* ~That is good. His disappearance will appear more an act of cowardice than anything. Perhaps we will take the steam out of the extremists' plans now.~ */
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN DO ~AddExperienceParty(7500)
SetGlobal("MageStrongHoldDone","AR0411",1)
TakePartyItem("misc8g")~ GOTO 84
  IF ~GlobalGT("AsylumPlot","GLOBAL",0)~ THEN DO ~AddExperienceParty(7500)
SetGlobal("MageStrongHoldDone","AR0411",1)
TakePartyItem("misc8g")~ GOTO 89
END

IF ~~ THEN BEGIN 83 // from: 81.0
  SAY #42939 /* ~Well, I guess we will have to make the best of it. Not an ideal solution, by any means.~ */
  IF ~Global("AsylumPlot","GLOBAL",0)~ THEN DO ~AddExperienceParty(7500)
TakePartyItem("misc8g")~ GOTO 84
  IF ~GlobalGT("AsylumPlot","GLOBAL",0)~ THEN DO ~AddExperienceParty(7500)
TakePartyItem("misc8g")~ GOTO 89
END

IF ~~ THEN BEGIN 84 // from: 83.0 82.0
  SAY #42940 /* ~Regardless, I have some news of your friend Imoen. I said I would tell you what I could, and since you have performed well, I think I owe you that much.~ */
  IF ~~ THEN GOTO 85
END

IF ~~ THEN BEGIN 85 // from: 84.0
  SAY #42941 /* ~She and the others involved in the disturbance were taken into custody, that much you know. They proved too unruly for simple incarceration.~ */
  IF ~~ THEN GOTO 86
END

IF ~~ THEN BEGIN 86 // from: 85.0
  SAY #42942 /* ~They are no longer in the city. I could get nothing further from my superiors, and I expect that asking for more would yield a harsh response.~ */
  IF ~~ THEN GOTO 87
END

IF ~~ THEN BEGIN 87 // from: 86.0
  SAY #42943 /* ~I can tell you no more, and likely will not deal with you again. I have but one word for you, and do not ask me its meaning.~ */
  IF ~~ THEN GOTO 88
END

IF ~~ THEN BEGIN 88 // from: 87.0
  SAY #42944 /* ~"Spellhold". I know you have other means for finding your friend, and I suggest you exploit them. The Cowled Wizards are no longer in control of the situation.~ */
  IF ~~ THEN DO ~EraseJournalEntry(55633)
EraseJournalEntry(55627)
EraseJournalEntry(55634)
EraseJournalEntry(55629)
EraseJournalEntry(55630)
EraseJournalEntry(55635)
EraseJournalEntry(55638)
EraseJournalEntry(55640)
EraseJournalEntry(55625)
ForceSpell(Myself,DRYAD_TELEPORT)~ SOLVED_JOURNAL #55632 /* ~Mage Stronghold: Free at last.

I have been released from service to the Cowled Wizards. I did as they asked to the best of my ability, facing off against Lord Ketlar and whatnot, so now I have unfettered use of the Planar Sphere. A painfully obvious base of operations, but it will have to do.~ */ EXIT
END

IF ~~ THEN BEGIN 89 // from: 83.1 82.1
  SAY #42945 /* ~I think this shall be your last task for the Cowled Wizards. You are becoming more well-known here, and will be a risk for us if we continue.~ */
  IF ~~ THEN GOTO 90
END

IF ~~ THEN BEGIN 90 // from: 89.0
  SAY #42946 /* ~Enjoy the sphere for now. I am sure you will use it responsibly, if it still functions at all. Good luck, <CHARNAME>, I wish you well.~ */
  IF ~~ THEN DO ~EraseJournalEntry(55625)
EraseJournalEntry(55633)
EraseJournalEntry(55627)
EraseJournalEntry(55634)
EraseJournalEntry(55629)
EraseJournalEntry(55630)
EraseJournalEntry(55635)
EraseJournalEntry(55638)
EraseJournalEntry(55640)
ForceSpell(Myself,DRYAD_TELEPORT)~ SOLVED_JOURNAL #55632 /* ~Mage Stronghold: Free at last.

I have been released from service to the Cowled Wizards. I did as they asked to the best of my ability, facing off against Lord Ketlar and whatnot, so now I have unfettered use of the Planar Sphere. A painfully obvious base of operations, but it will have to do.~ */ EXIT
END
