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

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

IF WEIGHT #1 /* Triggers after states #: 34 even though they appear after this state */
~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #28655 /* ~Who is it? Might I ask why you have disturbed my meditations? My creative muse must be gently awakened, and your stomping about is simply not conducive to this.~ [SARLES02] */
  IF ~~ THEN REPLY #28656 /* ~My apologies. I will leave you to your thinking.~ */ GOTO 1
  IF ~~ THEN REPLY #28657 /* ~I apologize, but I have come to request your talent on a commissioned artwork.~ */ DO ~SetGlobal("TalkedToSarles","GLOBAL",1)
~ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #28661 /* ~Then I shall forget you were ever here. Actually, it is an astoundingly easy thing to do.~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(0)
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #28664 /* ~Oh, yes, yes, yes. One of those bloody churches sent you, didn't they? Must be, because everyone else understands the word 'no.' Which one are you from?~ */
  IF ~Global("SculptorPlot","GLOBAL",1)
~ THEN REPLY #28665 /* ~It is for Lathander that I stand before you. The Morninglord bids you welcome.~ */ GOTO 3
  IF ~Global("SculptorPlot","GLOBAL",2)
~ THEN REPLY #28666 /* ~Helm has sent me forth. His everseeing eyes wish to gaze upon your work.~ */ GOTO 3
  IF ~Global("SculptorPlot","GLOBAL",3)
~ THEN REPLY #28667 /* ~Talos has sent me to demand your service. His glory must be honored.~ */ GOTO 3
  IF ~~ THEN REPLY #28668 /* ~Come now, is your muse that picky? I offer a commission; is that not enough?~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 2.2 2.1 2.0
  SAY #28672 /* ~And your offer is the same as the others. Gold and the satisfaction of serving the one true whatever.~ */
  IF ~~ THEN REPLY #28674 /* ~But think of the prestige you will earn.~ */ GOTO 4
  IF ~~ THEN REPLY #28675 /* ~Yes, you will be gaining the favor of a powerful faith.~ */ GOTO 5
  IF ~~ THEN REPLY #28676 /* ~Yes, think of the gold. We will offer more if it is not enough.~ */ GOTO 6
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #28683 /* ~I have prestige now. I am the darling of every noble in town, and damned if I need any more than that. Neither do I need the payment. I am well provided for.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 5 // from: 3.1 2.3
  SAY #28687 /* ~I have the favor of every mincing noble in the city now. What do I need the backing of a church for? Such institutions demand much of a person.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 3.2
  SAY #28689 /* ~I have not paid for a single luxury of my own in years now. I am bounced from noble to noble as a status symbol and I want for nothing.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 7 // from:
  SAY #28692 /* ~No, what I need has not changed, and I have said so to your masters. The gold offered is sufficient, and I am just fine without the flattery.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0 6.0 5.0 4.0
  SAY #28694 /* ~What I really need is to work in the medium of my choice. Pure illithium. Anything less is an insult to my skills. That is all I require.~ [SARLES06] */
  IF ~~ THEN REPLY #28695 /* ~But I am told such a material is very costly and rare. Is there no alternative?~ */ GOTO 9
  IF ~~ THEN REPLY #28696 /* ~Then I will find what you need. Perhaps I can get some from an ore merchant.~ */ GOTO 10
  IF ~~ THEN REPLY #28697 /* ~I know of no source for such a material. I'll wager the other churches don't either.~ */ GOTO 12
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #28702 /* ~You are told? Have you not checked? Gathering the materials is not the job of a fine artist such as myself. Go speak with an ore merchant or somesuch.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 12.0 9.0 8.1
  SAY #28705 /* ~I recall the name of one that was referred to me on my last visit. Jerlia was her name, I believe. Speak with her. She has exotics occasionally. Try the Promenade.~ */
  IF ~~ THEN GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.0
  SAY #28708 /* ~Now go! I will work for whatever church acquires the necessary materials! If not yours, then another! 200 pounds of illithium or I go back to enjoying my holiday!~ */
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("HaerDalis")
!IsValidForPartyDialog("Korgan")~ THEN UNSOLVED_JOURNAL #2080 /* ~Gain the services of Sir Sarles for the temple.

I have met with the artist, Sir Sarles... but the only way he will perform the work is if I can procure 200 pounds of pure illithium.  Sarles recommended I locate an ore merchant by the name of Jerlia, who has a stall in the second tier in the southwest portion of Waukeen's Promenade.~ */ EXIT
  IF ~IsValidForPartyDialog("Edwin")~ THEN UNSOLVED_JOURNAL #2080 /* ~Gain the services of Sir Sarles for the temple.

I have met with the artist, Sir Sarles... but the only way he will perform the work is if I can procure 200 pounds of pure illithium.  Sarles recommended I locate an ore merchant by the name of Jerlia, who has a stall in the second tier in the southwest portion of Waukeen's Promenade.~ */ EXTERN ~EDWINJ~ 85
  IF ~!IsValidForPartyDialog("Edwin")
IsValidForPartyDialog("HaerDalis")~ THEN UNSOLVED_JOURNAL #2080 /* ~Gain the services of Sir Sarles for the temple.

I have met with the artist, Sir Sarles... but the only way he will perform the work is if I can procure 200 pounds of pure illithium.  Sarles recommended I locate an ore merchant by the name of Jerlia, who has a stall in the second tier in the southwest portion of Waukeen's Promenade.~ */ EXTERN ~HAERDAJ~ 87
  IF ~!IsValidForPartyDialog("Edwin")
!IsValidForPartyDialog("HaerDalis")
IsValidForPartyDialog("Korgan")~ THEN UNSOLVED_JOURNAL #2080 /* ~Gain the services of Sir Sarles for the temple.

I have met with the artist, Sir Sarles... but the only way he will perform the work is if I can procure 200 pounds of pure illithium.  Sarles recommended I locate an ore merchant by the name of Jerlia, who has a stall in the second tier in the southwest portion of Waukeen's Promenade.~ */ EXTERN ~KORGANJ~ 105
END

IF ~~ THEN BEGIN 12 // from: 8.2
  SAY #28712 /* ~This is not my problem. I am enjoying my holiday. It is you people that are having difficulties. Find an ore merchant or somesuch.~ */
  IF ~~ THEN GOTO 10
END

IF WEIGHT #2 /* Triggers after states #: 34 even though they appear after this state */
~!PartyHasItem("MISC5K")
!PartyHasItem("MISC6S")
Global("GaveStuff","LOCALS",0)
~ THEN BEGIN 13 // from:
  SAY #28715 /* ~You have heard my conditions of service. Provide what I wish or I will not work for you. Check the Promenade if you seek an ore merchant.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #3 /* Triggers after states #: 34 even though they appear after this state */
~PartyHasItem("MISC5K")
Global("GaveStuff","LOCALS",0)
~ THEN BEGIN 14 // from:
  SAY #28716 /* ~Well, I did not expect to see you back here so soon. Perhaps next time I should request to work only in blood-forged meteoric adamantite.~ */
  IF ~~ THEN DO ~AddexperienceParty(21750)
~ GOTO 21
END

IF ~~ THEN BEGIN 15 // from: 21.0
  SAY #28719 /* ~Er... yes, well, you have met my demands. I will work for your lord, and compose a fitting tribute to his glory... or some such. My muse will decide.~ */
  IF ~Global("SculptorPlot","GLOBAL",1)
~ THEN REPLY #28721 /* ~I thank you on behalf of the followers of the Morninglord.~ */ UNSOLVED_JOURNAL #61262 /* ~Gain the services of Sir Sarles for the temple.

Sir Sarles has taken his precious illithium and agreed to do the sculpture.  All I need do now is return to the church and report my success.~ */ GOTO 17
  IF ~Global("SculptorPlot","GLOBAL",2)
~ THEN REPLY #28722 /* ~I thank you on behalf of the followers of Helm.~ */ UNSOLVED_JOURNAL #61262 /* ~Gain the services of Sir Sarles for the temple.

Sir Sarles has taken his precious illithium and agreed to do the sculpture.  All I need do now is return to the church and report my success.~ */ GOTO 17
  IF ~Global("SculptorPlot","GLOBAL",3)
~ THEN REPLY #28723 /* ~I thank you on behalf of the followers of Talos.~ */ UNSOLVED_JOURNAL #61262 /* ~Gain the services of Sir Sarles for the temple.

Sir Sarles has taken his precious illithium and agreed to do the sculpture.  All I need do now is return to the church and report my success.~ */ GOTO 17
  IF ~~ THEN REPLY #28729 /* ~There is nothing more exact you can say about what you are going to do?~ */ DO ~

~ UNSOLVED_JOURNAL #61262 /* ~Gain the services of Sir Sarles for the temple.

Sir Sarles has taken his precious illithium and agreed to do the sculpture.  All I need do now is return to the church and report my success.~ */ GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.3
  SAY #28727 /* ~You have what you asked for; I will work for you. Beyond that, I will decide. None dictate what the work shall be. None.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0 15.2 15.1 15.0
  SAY #28730 /* ~Our business is concluded. The piece will be delivered when it is done. I will dispatch a messenger to collect my fee and tell your church of my decision.~ [SARLES07] */
  IF ~Global("SculptorPlot","GLOBAL",1)
~ THEN DO ~SetGlobal("SculptorPlot","GLOBAL",4)
TakePartyItem("MISC5K")
SetGlobal("GaveStuff","LOCALS",1)
~ EXIT
  IF ~Global("SculptorPlot","GLOBAL",2)
~ THEN DO ~SetGlobal("SculptorPlot","GLOBAL",5)
TakePartyItem("MISC5K")
SetGlobal("GaveStuff","LOCALS",1)
~ EXIT
  IF ~Global("SculptorPlot","GLOBAL",3)
~ THEN DO ~SetGlobal("SculptorPlot","GLOBAL",6)
TakePartyItem("MISC5K")
SetGlobal("GaveStuff","LOCALS",1)
~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 19 34 even though they appear after this state */
~True()
~ THEN BEGIN 18 // from:
  SAY #28735 /* ~Oh, do go away. I have agreed to your terms and will work for your church. Is that not enough? Leave me.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #4 /* Triggers after states #: 34 even though they appear after this state */
~PartyHasItem("MISC6S")
Global("GaveStuff","LOCALS",0)
~ THEN BEGIN 19 // from:
  SAY #29053 /* ~You are back. I have not appreciated the wait you put me through. You had better have a good reason for keeping me so long.~ */
  IF ~~ THEN REPLY #29055 /* ~I ran into some opposition from another church. Here is your illithium though.~ */ GOTO 20
  IF ~~ THEN REPLY #29056 /* ~The best of reasons. I wanted to make sure you got the best quality material!~ */ GOTO 20
  IF ~~ THEN REPLY #29057 /* ~I am sorry, but I couldn't get illithium. This alloy is the best I could manage.~ */ GOTO 30
END

IF ~~ THEN BEGIN 20 // from: 19.1 19.0
  SAY #29061 /* ~Fine, fine, I don't really care. Let's have a look at what you have brought. Ahh, illithium. It is a fine specimen, isn't it? Smelted to remove impurities, I see.~ */
  IF ~!IsValidForPartyDialog("Keldorn")~ THEN GOTO 22
  IF ~IsValidForPartyDialog("Keldorn")~ THEN EXTERN ~KELDORJ~ 169
END

IF ~~ THEN BEGIN 21 // from: 14.0
  SAY #29063 /* ~Ahh, illithium ore in its rawest form. Can you feel the primal energy wafting off of it? It practically screams for a firm hand to shape it... mold it... caress it...~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 22 // from: 20.0
  SAY #29065 /* ~It is smooth, yes? Almost translucent as well. Such a magnificent material. Done and done, I will shape this for your church. They will be pleased with the result, I am sure.~ */
  IF ~~ THEN GOTO 23
END

IF ~~ THEN BEGIN 23 // from: 22.0
  SAY #29067 /* ~Now out with you. I will polish away this grime of your hands and see what is inside waiting for me. Go, and I will deliver it when it is ready.~ */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #29071 /* ~Wait.~ */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #29072 /* ~Wait just one moment. I must polish this?~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #29073 /* ~This is not illithium! You have cheated my art!  Illithium holds no oil or grime! A handprint on illithium is an impossibility!~ [SARLES08] */
  IF ~~ THEN REPLY #29076 /* ~Come now, Sir Sarles. It has the same consistency. Could you not make do?~ */ GOTO 27
  IF ~~ THEN REPLY #29077 /* ~Illithium is unattainable! It was this or nothing!~ */ GOTO 28
  IF ~~ THEN REPLY #29078 /* ~You were pleased a moment ago. Perhaps you simply are out of ideas!~ */ GOTO 29
  IF ~~ THEN REPLY #29081 /* ~I apologize most profusely. I tried to honor your wishes as best I could.~ */ GOTO 30
END

IF ~~ THEN BEGIN 27 // from: 26.0
  SAY #29082 /* ~Make do? Make do!? Did the gods make do when they created the Realms? Did they use substandard materials?! No, they would not stoop so low!~ */
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 28 // from: 26.1
  SAY #29097 /* ~Then it should have been nothing! I have made my wishes clear, and you have made a mockery of them!~ */
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 29 // from: 26.2
  SAY #29093 /* ~Such an insult! These hands have created works of art that would make your heart stop with joy! They will work many more wonders, but not here!~ */
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 30 // from: 26.3 19.2
  SAY #29087 /* ~And yet you have failed miserably! I would have trusted my artistic visions to you, and you have chosen to swindle me?!~ */
  IF ~~ THEN GOTO 31
END

IF ~~ THEN BEGIN 31 // from: 30.0 29.0 28.0 27.0
  SAY #29094 /* ~The most important element of illithium is that it will bear no dirt or grime! Cast as illithium, my work need never show the taint of another mortal's hands!~ */
  IF ~~ THEN REPLY #29100 /* ~I was assured it had the same attributes as your metal.~ */ GOTO 32
  IF ~~ THEN REPLY #29101 /* ~A master of the forge told me there would be no difference.~ */ GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.1 31.0
  SAY #29096 /* ~Perhaps in strength or feel, but what does a fumbling forge-monkey know about the beauty of the ever smudgeless surface of true illithium? This... this is garbage!~ */
  IF ~~ THEN GOTO 33
END

IF ~~ THEN BEGIN 33 // from: 32.0
  SAY #29106 /* ~I will not work for you, nor any other! This city has insulted my work! I will leave at once! Coachman! My bags! My muse!~ */
  IF ~~ THEN DO ~SetGlobal("SarlesPissed","GLOBAL",1)
EscapeArea()
~ UNSOLVED_JOURNAL #2051 /* ~Gain the services of Sir Sarles for the temple.

Well, it seems that Jerlia was wrong... Sir Sarles was able to tell the difference between the alloy and the real thing.  The sculptor left the city in a fit, and all I can do is bring this shapeless lump of metal to the temple and report my failure.~ */ EXIT
END

IF WEIGHT #0 ~GlobalGT("Stripped","GLOBAL",0)
~ THEN BEGIN 34 // from:
  SAY #37874 /* ~I have received word from your institution that you are no longer speaking for them in this matter. Since you are now no one of importance, I suggest that you leave.~ */
  IF ~~ THEN EXIT
END
