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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
OR(5)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
//InPartySlot(LastTalkedToBy,0)
Alignment(Player1,MASK_GOOD)
Global("BeholderPlot","GLOBAL",0)~ THEN BEGIN 0 // from:
  SAY #28005 /* ~No, no, no, this will not do at all. We cannot have the slim of faith lured away by such talk. They must be nurtured, that they might choose the righteous path.~ [THADDI02] */
  IF ~!Kit(Player1,GODHELM)
!Kit(Player1,GODTALOS)
!Kit(Player1,GODLATHANDER)
~ THEN GOTO 1
  IF ~Kit(Player1,GODLATHANDER)
~ THEN GOTO 55
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #10634 /* ~You there, you are certainly on your way to visit the temple of the Morninglord.  I would ask your service for a time, in exchange for the favor of the temple.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 55.0 1.0
  SAY #10636 /* ~Meet me at the Temple of Lathander and we shall discuss this further. I must prepare the faithful for what must be done. Come soon.~ */
  IF ~~ THEN DO ~//DialogueInterrupt(FALSE)
//MoveToPointNoInterrupt([2844.1560])
//MoveToPointNoInterrupt([2858.1542])
OpenDoor("DOR0902b")
//DialogueInterrupt(TRUE)
EscapeAreaMove("AR0902",577,650,14)
~ UNSOLVED_JOURNAL #34391 /* ~Investigate and destroy the Cult of the Eyeless.

After witnessing the eyeless priest's speech, I was approached by a cleric of Lathander who bade me to come to the temple of Lathander to speak with him further regarding performing a service for the temple and investigating this new cult.~ */ EXIT
END

IF WEIGHT #1 ~OR(5)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
InPartySlot(LastTalkedToBy,0)
Alignment(Player1,MASK_GOOD)
ReputationGT(Player1,14)
Global("BeholderPlot","GLOBAL",0)
Global("NoHelpBeholder","GLOBAL",0)
~ THEN BEGIN 3 // from:
  SAY #28008 /* ~There you are. I knew you would come. You have the look of a servant of what is right, a <PRO_MANWOMAN> of good faith and charity.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 5.0 3.0
  SAY #28024 /* ~I think you will agree that your faith and ours are not at odds; we should help each other.  In times of darkness, protectors of the dawn must work together.~ */
  IF ~~ THEN REPLY #28027 /* ~What is it that you need? I will help if I can.~ */ GOTO 6
  IF ~~ THEN REPLY #28028 /* ~I can make no promises until I have heard what is required.~ */ GOTO 7
  IF ~~ THEN REPLY #28029 /* ~Do not assume kinship solely on appearance. I will decide my alliances.~ */ GOTO 8
END

IF WEIGHT #2 ~OR(5)
Class(Player1,CLERIC)
Class(Player1,FIGHTER_CLERIC)
Class(Player1,CLERIC_MAGE)
Class(Player1,CLERIC_THIEF)
Class(Player1,FIGHTER_MAGE_CLERIC)
InPartySlot(LastTalkedToBy,0)
Alignment(Player1,MASK_GOOD)
ReputationLT(Player1,15)
Global("BeholderPlot","GLOBAL",0)
Global("NoHelpBeholder","GLOBAL",0)
~ THEN BEGIN 5 // from:
  SAY #28033 /* ~I had worried you would not come.  Your reputation is far from clear.  Despite this, you have the look of a servant of light, a <MANWOMAN> of charity.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 6 // from: 8.0 7.0 4.0
  SAY #25210 /* ~Undoubtedly you overheard that false prophet in the street?  His tales of a new lord are most disturbing, and I worry for the safety of those that would follow.~ */
  IF ~~ THEN REPLY #25228 /* ~Are there signs of trouble? I do not want to step on the toes of a legitimate faith.~ */ GOTO 9
  IF ~~ THEN REPLY #25250 /* ~Anything I can do to help the faithful. What is it that I should do?~ */ GOTO 13
  IF ~~ THEN REPLY #25251 /* ~He seemed to prey on people's need for security. Can you not offer the same?~ */ GOTO 11
END

IF ~~ THEN BEGIN 7 // from: 4.1
  SAY #25327 /* ~That is a fair request, though certainly you will see the need as I do. You are like us at the temple, and a relationship between us would be good for both.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 8 // from: 4.2
  SAY #25373 /* ~Very well, though I see no reason for us to be at odds.  I can see in your manner we share a common nature of faith. It is why you were selected from the crowd.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 9 // from: 6.0
  SAY #25407 /* ~And neither would we. Certainly the emergence of a new deity is not unheard of, and there is much room for complimentary faiths in the Realms.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 12.1 9.0
  SAY #25519 /* ~We are confident this is not the case. Signs from the Morninglord have been worrying, and the loss of our members to this cult makes it our duty to investigate.~ */
  IF ~~ THEN REPLY #28035 /* ~Then I will help if I can. Can you give me details of what is required?~ */ GOTO 13
  IF ~~ THEN REPLY #28036 /* ~This prophet preyed on the people's need for security. Can you not offer this?~ */ GOTO 11
  IF ~~ THEN REPLY #28037 /* ~This does not concern me. I will not risk the wrath of a new faith. I refuse to help.~ */ GOTO 19
END

IF ~~ THEN BEGIN 11 // from: 10.1 6.2
  SAY #28047 /* ~Many of the spiritually young have trouble realizing what faith actually is. There is rarely instant gratification, save what you take from it yourself.~ */
  IF ~~ THEN GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #28049 /* ~Despite the number of deities, physical manifestations are rare.  These people think they wish a lord that walks with them, but that is not the way of the gods.~ */
  IF ~~ THEN REPLY #28054 /* ~Then this man's claims are doubly disturbing. I will help, but what must I do?~ */ GOTO 13
  IF ~~ THEN REPLY #28055 /* ~But if this turns out to be a legitimate faith, what then?~ */ GOTO 10
  IF ~~ THEN REPLY #28056 /* ~I cannot risk angering a people's faith. I will not help.~ */ GOTO 19
END

IF ~~ THEN BEGIN 13 // from: 21.1 12.0 10.0 6.1
  SAY #28061 /* ~We tried to talk with someone that took up this new faith, but once gone, they never return.  You must infiltrate as friend or foe, and see what is going on.~ */
  IF ~~ THEN GOTO 14
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #28065 /* ~We have information that the core of their worshippers are underground and relatively close, though our scrying has only allowed us to see as far as the sewers.~ */
  IF ~~ THEN GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #28071 /* ~As distasteful as it may seem, you must pass through the sewers. Obviously they're not huddled amidst the pipes, so there must be a passage away. The sewer entrances are marked on your map.~ */
  IF ~~ THEN REPLY #28075 /* ~Then ask nothing more. I will follow into the depths and return with answers.~ */ GOTO 16
  IF ~~ THEN REPLY #28076 /* ~And what is the reward? I am a <MANWOMAN> of faith, but I must eat as well.~ */ GOTO 18
  IF ~Global("chapter","GLOBAL",2)
Global("ShadowWork","GLOBAL",1)~ THEN REPLY #46128 /* ~I must gather a large amount of gold to rescue a friend of mine, so any reward you could offer would be appreciated.~ */ GOTO 18
  IF ~~ THEN REPLY #28077 /* ~Err... I change my mind. I won't anger a deity, especially if it involves the sewers.~ */ GOTO 19
END

IF ~~ THEN BEGIN 16 // from: 21.2 18.1 15.0
  SAY #28088 /* ~May the Morninglord light the way.  We have healing and tools for you here should you need them. Merely ask one of our acolytes and they shall provide.~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #28094 /* ~We would send more help, but our resources are needed elsewhere.  That said, Keldorn, an ally and one of Torm's best, is waiting in the sewers.  I wish you well.~ */
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Viconia")
!IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("BeholderPlot","GLOBAL",1)
SetGlobal("NoHelpBeholder","GLOBAL",0)
EraseJournalEntry(34386)~ UNSOLVED_JOURNAL #34413 /* ~Investigate and destroy the Cult of the Eyeless.

I have agreed to investigate the cult of this 'Unseeing Eye' for Mornmaster Arval, high priest of the temple of Lathander.  I must investigate as I see fit, infiltrating 'as friend or foe.'  The temple of the cult lies far below ground, apparently, and there should be a passage to it from the sewers... although the Mornmaster could not say exactly where.  The Mornmaster also offered me the services of his church, with regards to healing and equipment, should I need them.~ */ EXIT
  IF ~IsValidForPartyDialog("Anomen")~ THEN DO ~SetGlobal("BeholderPlot","GLOBAL",1)
SetGlobal("NoHelpBeholder","GLOBAL",0)
EraseJournalEntry(34386)~ UNSOLVED_JOURNAL #34413 /* ~Investigate and destroy the Cult of the Eyeless.

I have agreed to investigate the cult of this 'Unseeing Eye' for Mornmaster Arval, high priest of the temple of Lathander.  I must investigate as I see fit, infiltrating 'as friend or foe.'  The temple of the cult lies far below ground, apparently, and there should be a passage to it from the sewers... although the Mornmaster could not say exactly where.  The Mornmaster also offered me the services of his church, with regards to healing and equipment, should I need them.~ */ EXTERN ~ANOMENJ~ 232
  IF ~!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Viconia")~ THEN DO ~SetGlobal("BeholderPlot","GLOBAL",1)
SetGlobal("NoHelpBeholder","GLOBAL",0)
EraseJournalEntry(34386)~ UNSOLVED_JOURNAL #34413 /* ~Investigate and destroy the Cult of the Eyeless.

I have agreed to investigate the cult of this 'Unseeing Eye' for Mornmaster Arval, high priest of the temple of Lathander.  I must investigate as I see fit, infiltrating 'as friend or foe.'  The temple of the cult lies far below ground, apparently, and there should be a passage to it from the sewers... although the Mornmaster could not say exactly where.  The Mornmaster also offered me the services of his church, with regards to healing and equipment, should I need them.~ */ EXTERN ~VICONIJ~ 71
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Viconia")
IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("BeholderPlot","GLOBAL",1)
SetGlobal("NoHelpBeholder","GLOBAL",0)
EraseJournalEntry(34386)~ UNSOLVED_JOURNAL #34413 /* ~Investigate and destroy the Cult of the Eyeless.

I have agreed to investigate the cult of this 'Unseeing Eye' for Mornmaster Arval, high priest of the temple of Lathander.  I must investigate as I see fit, infiltrating 'as friend or foe.'  The temple of the cult lies far below ground, apparently, and there should be a passage to it from the sewers... although the Mornmaster could not say exactly where.  The Mornmaster also offered me the services of his church, with regards to healing and equipment, should I need them.~ */ EXTERN ~JAHEIRAJ~ 424
END

IF ~~ THEN BEGIN 18 // from: 15.2 15.1
  SAY #28099 /* ~Lathander promotes the adventurer's spirit, and wealth is included.  The favor of the Morninglord includes many intangibles, ample reward for the task at hand.~ */
  IF ~~ THEN REPLY #28106 /* ~So... nothing then. Needless to say, this is not enough. I won't do it.~ */ GOTO 19
  IF ~~ THEN REPLY #28107 /* ~I will help as best I can.~ */ GOTO 16
END

IF ~~ THEN BEGIN 19 // from: 21.0 18.0 15.3 12.2 10.2
  SAY #28110 /* ~Your refusal of the adventurer's impulse is unfortunate. Perhaps Lathander would not be served by your employ anyway. Disappointing.~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 20 // from: 19.0
  SAY #28111 /* ~Regardless, the offer stands for now.  We cannot pursue this alone. Return when you are of a mind to help. Do not deny how your faith is aligned.~ */
  IF ~~ THEN DO ~SetGlobal("NoHelpBeholder","GLOBAL",1)
~ EXIT
END

IF WEIGHT #3 ~Global("NoHelpBeholder","GLOBAL",1)
!Dead("UnseeingEye")
~ THEN BEGIN 21 // from:
  SAY #28145 /* ~The Morninglord welcomes you back into his light. Have you reconsidered your decision? Will you take up our cause as your own and help us?~ */
  IF ~~ THEN REPLY #28149 /* ~My decision is unchanged.~ */ GOTO 19
  IF ~~ THEN REPLY #28150 /* ~Go back over what was required of me.~ */ GOTO 13
  IF ~~ THEN REPLY #28151 /* ~Yes, I will help you.~ */ GOTO 16
END

IF WEIGHT #4 ~Global("BeholderPlot","GLOBAL",1)
~ THEN BEGIN 22 // from:
  SAY #28156 /* ~You return. I trust you bring good news? Have you met with this cult? Are they to be believed in their claims?~ [THADDI06] */
  IF ~~ THEN REPLY #28158 /* ~I have nothing to say just yet.~ */ GOTO 23
  IF ~Global("TalkedToCult","GLOBAL",1)
!Dead("UnseeingEye")
~ THEN REPLY #28159 /* ~I have met with some. They put out their eyes in reverence to their lord!~ */ GOTO 24
  IF ~!Dead("UnseeingEye")
Global("KnowBeholder","GLOBAL",1)
~ THEN REPLY #28160 /* ~This cult worships a beholder! I think the majority are magically enslaved!~ */ GOTO 25
  IF ~Dead("UnseeingEye")
~ THEN REPLY #28162 /* ~It was a beholder cult! I have destroyed the beast and all of its plans!~ */ DO ~EraseJournalEntry(2025)
EraseJournalEntry(2028)
EraseJournalEntry(2065)
EraseJournalEntry(2069)
EraseJournalEntry(34387)
EraseJournalEntry(34388)
EraseJournalEntry(34391)
EraseJournalEntry(34399)
EraseJournalEntry(34407)
EraseJournalEntry(34413)
EraseJournalEntry(34416)
EraseJournalEntry(34417)
EraseJournalEntry(34418)
EraseJournalEntry(34419)
EraseJournalEntry(34420)
EraseJournalEntry(34422)
EraseJournalEntry(30375)
SetGlobal("BeholderPlot","GLOBAL",2)
SetGlobalTimer("Vakola","GLOBAL",TWO_DAYS)
ReputationInc(1)
AddXPObject(Player1,45750)
AddXPObject(Player2,45750)
AddXPObject(Player3,45750)
AddXPObject(Player4,45750)
AddXPObject(Player5,45750)
AddXPObject(Player6,45750)
~ SOLVED_JOURNAL #47712 /* ~Investigate and destroy the Cult of the Eyeless.

I completed the task for the church and found the source of the cult of this Unseeing Eye.  The cult was run by a blind Beholder, yet the creature was still immensely powerful and I was lucky to be able to destroy it.  The entire cult has been routed as a result of the Beholder's death.~ */ GOTO 29
END

IF ~~ THEN BEGIN 23 // from: 24.2 22.0
  SAY #28173 /* ~Keep looking. We know there are spiritually vulnerable people in danger, and all must be done to help them.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 24 // from: 22.1
  SAY #28175 /* ~Disturbing news, though the false prophet on the street said as much. We had hoped he was not speaking literally. Is there anything else you can tell us?~ */
  IF ~Global("KnowBeholder","GLOBAL",1)
~ THEN REPLY #28177 /* ~This cult worships a beholder! I think the majority are magically enslaved!~ */ GOTO 25
  IF ~Dead("UnseeingEye")
~ THEN REPLY #28178 /* ~It was a beholder cult! I have destroyed the beast and all of its plans!~ */ DO ~SetGlobal("BeholderPlot","GLOBAL",2)
SetGlobalTimer("Vakola","GLOBAL",TWO_DAYS)
ReputationInc(1)
~ GOTO 29
  IF ~!Dead("UnseeingEye")
~ THEN REPLY #28179 /* ~Not at this time.~ */ GOTO 23
END

IF ~~ THEN BEGIN 25 // from: 24.0 22.2
  SAY #28181 /* ~A beholder cult?  In Athkatla?  Terrifying news.  Such a creature must be powerful to remain hidden.  Why would it come here?  There must be more to this.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #28186 /* ~I am going to ask you to do something that I would not ask of any but the bravest of the faithful. This beast must be destroyed.~ */
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Korgan")
!IsValidForPartyDialog("Minsc")~ THEN GOTO 27
  IF ~IsValidForPartyDialog("Anomen")~ THEN EXTERN ~ANOMENJ~ 235
  IF ~!IsValidForPartyDialog("Anomen")
IsValidForPartyDialog("Korgan")~ THEN EXTERN ~KORGANJ~ 104
  IF ~!IsValidForPartyDialog("Anomen")
!IsValidForPartyDialog("Korgan")
IsValidForPartyDialog("Minsc")~ THEN EXTERN ~MINSCJ~ 137
END

IF ~~ THEN BEGIN 27 // from: 26.0 ANOMENJ:235.0
  SAY #28188 /* ~Such cults never enlist their followers honestly.  In this case, not only are they enslaved but their eyes are put out.  You must end this however you can.~ */
  IF ~~ THEN GOTO 28
END

IF ~~ THEN BEGIN 28 // from: 27.0
  SAY #28191 /* ~May the Morninglord go with you, and bring you to the dawn through the darkness ahead.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #34419 /* ~Investigate and destroy the Cult of the Eyeless.

I have informed the Mornmaster about the nature of the beholder cult and he has commanded me to destroy the creature and stop the blindings and enslavement of its followers.  I do not know how this can be done, but I must find a way.~ */ EXIT
END

IF ~~ THEN BEGIN 29 // from: 24.1 22.3
  SAY #28196 /* ~A beholder cult in Athkatla?  You have done a greater service than we had expected.  I will dispense what priests we can spare to help with the survivors.~ */
  IF ~Global("PlayerHasStronghold","GLOBAL",0)~ THEN GOTO 30
  IF ~Global("PlayerHasStronghold","GLOBAL",1)~ THEN GOTO 62
END

IF ~~ THEN BEGIN 30 // from: 29.0
  SAY #28200 /* ~To your reward then, for you have performed admirably. You are to receive the greatest gift that we can bestow, one that transcends mere coin or purse.~ */
  IF ~~ THEN REPLY #28214 /* ~No reward is necessary. I only did what I should have done.~ */ DO ~GiveGoldForce(8000)~ GOTO 31
  IF ~~ THEN REPLY #28215 /* ~Good, I have been waiting for this.~ */ DO ~GiveGoldForce(8000)~ GOTO 31
  IF ~Global("chapter","GLOBAL",2)
Global("ShadowWork","GLOBAL",1)~ THEN REPLY #46129 /* ~I do need the gold, even if only to help my friend Imoen.~ */ DO ~GiveGoldForce(8000)~ GOTO 31
END

IF ~~ THEN BEGIN 31 // from: 30.2 30.1 30.0
  SAY #28206 /* ~In this there is allegiance. Your faith is aligned as ours, though it lacks direction.~ */
  IF ~~ THEN GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.0
  SAY #28208 /* ~You will have sanctuary here, with a room of your own to serve as a home. This is a great gift.~ */
  IF ~~ THEN REPLY #28216 /* ~It would be a great honor to serve.~ */ GOTO 33
  IF ~~ THEN REPLY #28217 /* ~I must decline.~ */ GOTO 38
END

IF ~~ THEN BEGIN 33 // from: 38.1 32.0
  SAY #28222 /* ~Know that there are also duties to aspire to. Strive always to aid, to foster new hope, new ideas, and new prosperity for all humankind and its allies.~ */
  IF ~~ THEN GOTO 34
END

IF ~~ THEN BEGIN 34 // from: 33.0
  SAY #28225 /* ~Perfect yourself, guarding against pride, for it is a sacred duty to foster new growth, nurture, and work for rebirth and renewal.  Be fertile in mind and body.~ */
  IF ~~ THEN GOTO 35
END

IF ~~ THEN BEGIN 35 // from: 34.0
  SAY #28227 /* ~Consider always the consequences of your actions so that the least effort may bring the greatest and best reward.~ */
  IF ~~ THEN GOTO 36
END

IF ~~ THEN BEGIN 36 // from: 35.0
  SAY #28230 /* ~Wherever you go, sow seeds of plants, tend the growing things you find, and plant seeds of hope, new ideas, and plans for a rosy future in the minds of all.~ */
  IF ~~ THEN JOURNAL #55567 /* ~Cleric Stronghold.

I have been welcomed into service of the Temple of Lathander. I am to be given space in the Temple, a sanctuary whenever I need. I may store any possessions that I wish to within the Temple containers. As a servant of Lathander, I am responsible for the well being of the flock. I am to find Acolyte Lara within the Temple immediately. Lara will tell me of my responsibilities and give me my first assignment.~ */ FLAGS 128 GOTO 37
END

IF ~~ THEN BEGIN 37 // from: 36.0
  SAY #28233 /* ~Whenever possible, see each dawn.  Welcome to the house of Lathander, <CHARNAME>.  Find Acolyte Lara here in the temple; she will tell you of your duties.~ */
  IF ~Global("chapter","GLOBAL",2)~ THEN REPLY #42443 /* ~Before I go, might I ask you a question?~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("JoinLathander","GLOBAL",1)
CreateCreature("LATLARA",[1785.913],4)
~ GOTO 48
  IF ~~ THEN REPLY #42444 /* ~Thank you, I shall take my leave of you, now.~ */ DO ~SetGlobal("PlayerHasStronghold","GLOBAL",1)
SetGlobal("JoinLathander","GLOBAL",1)
CreateCreature("LATLARA",[1785.913],4)~ EXIT
END

IF ~~ THEN BEGIN 38 // from: 32.1
  SAY #28236 /* ~Must you? Is it fear which holds you back? One should not dread the change that a new day brings. Are you sure of this decision?~ */
  IF ~~ THEN REPLY #28237 /* ~I am sure. I do not wish to join with you.~ */ GOTO 39
  IF ~~ THEN REPLY #28238 /* ~You are right, of course. I will join with you. It is an honor.~ */ GOTO 33
END

IF ~~ THEN BEGIN 39 // from: 38.0
  SAY #28241 /* ~Unfortunate, but it is your choice to make. You will be welcome here, even if you do not count yourself among the fold. Good luck to you, <CHARNAME>, good luck.~ */
  IF ~~ THEN GOTO 42
END

IF WEIGHT #5 ~Global("BeholderPlot","GLOBAL",2)
Global("JoinLathander","GLOBAL",0)
~ THEN BEGIN 40 // from:
  SAY #28244 /* ~It is unfortunate you have chosen to walk apart from us. The Morninglord would have been served well by your courage.~ */
  IF ~OR(2)
!Global("Chapter","GLOBAL",6)
Global("ArvalDecided","LOCALS",1)~ THEN EXIT
  IF ~Global("Chapter","GLOBAL",6)
Global("ArvalDecided","LOCALS",0)~ THEN REPLY #61132 /* ~Mornmaster, I have come to ask for the church's aid in a matter of importance.~ */ GOTO 56
END

IF WEIGHT #6 ~Global("BeholderPlot","GLOBAL",2)
Global("JoinLathander","GLOBAL",1)
Global("Stripped","GLOBAL",0)
~ THEN BEGIN 41 // from:
  SAY #28245 /* ~You have done well and given us pride with your actions. You shall continue to do the Morninglord honor in his service.~ [THADDI07] */
  IF ~OR(2)
!Global("Chapter","GLOBAL",6)
Global("ArvalDecided","LOCALS",1)~ THEN EXIT
  IF ~Global("Chapter","GLOBAL",6)
Global("ArvalDecided","LOCALS",0)~ THEN REPLY #53243 /* ~Mornmaster, I have come to ask for the church's aid in a matter of importance.~ */ GOTO 56
END

IF ~~ THEN BEGIN 42 // from: 39.0
  SAY #28247 /* ~Oh! You may wish to speak with Dawnbringer Sain on your way out. He may have a task for you. We can still work together, even if you are apart.~ */
  IF ~~ THEN REPLY #42442 /* ~Before I go, might I ask you a question or two?~ */ GOTO 48
  IF ~~ THEN REPLY #42445 /* ~I shall take my leave of you, now, then.~ */ EXIT
END

IF ~~ THEN BEGIN 43 // from:
  SAY #29131 /* ~Dawnbringer, I see you have the latest in your artistic acquisitions. Another tribute to the Morninglord from a local artisan?~ */
  IF ~~ THEN EXTERN ~SCSAIN~ 27
END

IF ~~ THEN BEGIN 44 // from:
  SAY #29133 /* ~I don't see why. This new piece is a welcome understatement. Looks as though it represents the shadows receding from the dawn. Fine work.~ */
  IF ~~ THEN GOTO 45
END

IF ~~ THEN BEGIN 45 // from: 44.0
  SAY #29138 /* ~Looks a bit like an illithium derivative?  Good.  Smudge it up occasionally.  We need make-work cleaning to keep the penitents busy.  Carry on, Dawnbringer.~ */
  IF ~~ THEN EXTERN ~SCSAIN~ 28
END

IF WEIGHT #8 /* Triggers after states #: 47 even though they appear after this state */
~!InPartySlot(LastTalkedToBy,0)
~ THEN BEGIN 46 // from:
  SAY #33187 /* ~The light shines and I see that you are not the true leader of your group. If you will, I must speak my matters to <PRO_HESHE> that you follow.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #7 ~Global("Stripped","GLOBAL",3)
~ THEN BEGIN 47 // from:
  SAY #37865 /* ~You have shamed us all. You shall not again feel the smile of the Morninglord. Get out!~ [THADDI08] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 48 // from: 63.0 42.0 37.0
  SAY #42446 /* ~Of course, my <BROTHERSISTER>.  If I know the answer, I shall certainly provide it to you.~ */
  IF ~~ THEN REPLY #42447 /* ~I am searching for a friend named Imoen who is being held by the Cowled Wizards.  Do you know anything of them?~ */ GOTO 50
  IF ~~ THEN REPLY #42448 /* ~Can you tell me anything of the Shadow Thieves here in the city?~ */ GOTO 52
  IF ~~ THEN REPLY #42449 /* ~Perhaps I will just be on my way.~ */ GOTO 49
END

IF ~~ THEN BEGIN 49 // from: 54.1 51.1 48.2
  SAY #42450 /* ~As you desire.  May Lathander light your way, my <BROTHERSISTER>.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 50 // from: 54.0 48.0
  SAY #42451 /* ~Nothing that you do not know of them already, I suspect.  The Council outlaws magic here, and yet the wizards roam freely and act upon whatever plots they wish.~ */
  IF ~~ THEN GOTO 51
END

IF ~~ THEN BEGIN 51 // from: 50.0
  SAY #42452 /* ~They act for the Council, but they do as they wish.  We do not associate with them at all, so I know little else.  I grieve if your friend has suffered.~ */
  IF ~~ THEN REPLY #42457 /* ~Can you tell me anything of the Shadow Thieves here in the city?~ */ GOTO 52
  IF ~~ THEN REPLY #42458 /* ~I shall take my leave of you, then.~ */ GOTO 49
END

IF ~~ THEN BEGIN 52 // from: 51.0 48.1
  SAY #42453 /* ~Lathander's faithful do not associate with brigands, but we are pleased that the Shadow Thieves are entangled in a war with another organization in the city.~ */
  IF ~~ THEN GOTO 53
END

IF ~~ THEN BEGIN 53 // from: 52.0
  SAY #42454 /* ~But it is troubling that we know nothing of this other organization.  They are a mystery, even though they are obviously competing with the Shadow Thieves.~ */
  IF ~~ THEN GOTO 54
END

IF ~~ THEN BEGIN 54 // from: 53.0
  SAY #42455 /* ~If Amn is fortunate, both of these organizations will destroy each other and we shall have some peace, here, at last.~ */
  IF ~~ THEN REPLY #42456 /* ~I am searching for a friend named Imoen who is being held by the Cowled Wizards.  Do you know anything of them?~ */ GOTO 50
  IF ~~ THEN REPLY #42459 /* ~I shall take my leave of you, then.~ */ GOTO 49
END

IF ~~ THEN BEGIN 55 // from: 0.1
  SAY #52606 /* ~You there. You are a Priest of Lathander. The Morninglord has need of your services for a time.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 56 // from: 41.1 40.1
  SAY #53244 /* ~Oh?  What is the problem?  Illuminate me and I shall tell you whether the Church of Lathander may render assistance to you.~ */
  IF ~Global("JoinLathander","GLOBAL",1)~ THEN REPLY #53245 /* ~There is a powerful vampire by the name of Bodhi that I must face... and I hope that the church can aid me in the battle.~ */ GOTO 57
  IF ~Global("JoinLathander","GLOBAL",0)
Alignment(Player1,MASK_GOOD)
ReputationGT(Player1,14)~ THEN REPLY #53246 /* ~There is a powerful vampire by the name of Bodhi that I must face... and I hope that the church can aid me in the battle.~ */ GOTO 57
  IF ~Global("JoinLathander","GLOBAL",0)
OR(2)
!Alignment(Player1,MASK_GOOD)
ReputationLT(Player1,15)~ THEN REPLY #53247 /* ~There is a powerful vampire by the name of Bodhi that I must face... and I hope that the church can aid me in the battle.~ */ GOTO 60
END

IF ~~ THEN BEGIN 57 // from: 56.1 56.0
  SAY #53248 /* ~Ah.  I know this creature... it is the one that lurks within the crypts beneath the graveyard, yes?  It is good that you seek to face such an evil.~ */
  IF ~~ THEN GOTO 58
END

IF ~~ THEN BEGIN 58 // from: 57.0
  SAY #53249 /* ~If you haven't, seek the paladins of the Radiant Heart.  They are more suited to battle, than we, and will prove more help.  Lathander watch over you, friend.~ */
  IF ~~ THEN GOTO 59
END

IF ~~ THEN BEGIN 59 // from: 61.0 58.0
  SAY #53251 /* ~Go in peace, <PRO_BROTHERSISTER>.~ */
  IF ~~ THEN DO ~SetGlobal("ArvalDecided","LOCALS",1)~ SOLVED_JOURNAL #10269 /* ~Allies recruited for the struggle against Bodhi.

I asked the Temple of Lathander to help fight Bodhi, but they said they couldn't.  They suggested that I approach the Most Noble Order of the Radiant Heart, if I haven't already.~ */ EXIT
END

IF ~~ THEN BEGIN 60 // from: 56.2
  SAY #53253 /* ~I know of this creature, the one you speak of.  It dwells in the crypts beneath the graveyard and spreads its evil like the plague.~ */
  IF ~~ THEN GOTO 61
END

IF ~~ THEN BEGIN 61 // from: 60.0
  SAY #53254 /* ~I offer only advice, as no Lathanderite will risk their life for you.  There are other ways to combat evil.  Seek paladins; they are champions of holy battle.~ */
  IF ~~ THEN GOTO 59
END

IF ~~ THEN BEGIN 62 // from: 29.1
  SAY #58789 /* ~And now for you: the Morninglord is pleased, you will be rewarded with his favor. Not as grand a boon as it might have been, but you have other obligations.~ */
  IF ~~ THEN DO ~GiveItemCreate("BLUN20",LastTalkedToBy,0,0,0)
GiveGoldForce(7000)
~ GOTO 63
END

IF ~~ THEN BEGIN 63 // from: 62.0
  SAY #58790 /* ~Take this with our blessing.  May you find what you seek with its aid.~ */
  IF ~~ THEN REPLY #58791 /* ~Might I ask a question?~ */ GOTO 48
  IF ~~ THEN REPLY #58792 /* ~I thank you. I take my leave.~ */ EXIT
END
