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

BEGIN ~KAMIR~

IF ~NumTimesTalkedTo(0)
CheckStatGT(LastTalkedToBy(),14,42)
~ THEN BEGIN 0 // from:
  SAY #26575 /* ~I extend greetings, my <LADYLORD>, on this darkest of days.  My name is Kamir, Paladin of Helm.  I beg your forgiveness if my demeanor is not more welcoming.~ */
  IF ~~ THEN REPLY #26578 /* ~What brings you to this place?~ */ GOTO 2
  IF ~~ THEN REPLY #26579 /* ~I shall not disturb you.~ */ GOTO 3
  IF ~~ THEN REPLY #26580 /* ~I'll leave you to wallow in your maudlin self-pity, then, and find my amusements elsewhere.~ */ GOTO 4
END

IF ~NumTimesTalkedTo(0)
CheckStatLT(LastTalkedToBy,15,42)
~ THEN BEGIN 1 // from:
  SAY #26581 /* ~Hold, there... you have an aura of suspicion about you.  I warn you that I am Kamir, Paladin of Helm... I will brook no trespass on this, my darkest of days.~ */
  IF ~~ THEN REPLY #26582 /* ~Why?  Tell me what you are doing here.~ */ GOTO 2
  IF ~~ THEN REPLY #26583 /* ~I mean no trespass.  I shall leave you be.~ */ GOTO 3
  IF ~~ THEN REPLY #26588 /* ~You can choke on your nobility if that's the kind of greeting you give.  I'll go elsewhere.~ */ GOTO 4
END

IF ~~ THEN BEGIN 2 // from: 1.0 0.0
  SAY #26589 /* ~I am no more unique than most who come here.  My son lies in yon wee grave.  I... I failed my oath to protect the lad, and he has been taken from me.~ */
  IF ~~ THEN REPLY #26591 /* ~I am sure there is no need to blame yourself.~ */ DO ~SetGlobal("TalkedToKamir","GLOBAL",1)
~ GOTO 5
  IF ~~ THEN REPLY #26592 /* ~You failed your oath?  Then you should be sorry.~ */ GOTO 9
  IF ~~ THEN REPLY #26593 /* ~I see.  I'll leave you to your mourning, then.~ */ GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 16.1 15.1 11.2 10.3 9.1 8.2 2.2 1.1 0.1
  SAY #26590 /* ~You are most decent.  I... am not ready to leave just yet.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 15.2 11.1 10.2 9.2 1.2 0.2
  SAY #26594 /* ~I would answer such cruelty with a challenge if my heart were not leaden with grief.  Take your pettiness and go elsewhere.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 15.0 9.0 2.0
  SAY #26623 /* ~You know not of what you speak, though I am sure you mean well.  I took the boy under my protection when his mother was slain by foul orcs in the mountains.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #26627 /* ~I knew not her name, and could not save her from her injuries after I killed the orcs.  She gave her son to me... I swore an oath to look after him as my own.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #26630 /* ~And I have.  I mean... I mean that I did.  I love... loved the lad dearly.  Stefan I named him.  Strong, honest boy.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #26631 /* ~But I was called by duty to Tethyr... on my return I discovered Stefan had been slain by brigands.  I... I should have... should been there for him...~ */
  IF ~~ THEN REPLY #26633 /* ~You did all that you could.  You are not to be blamed.~ */ GOTO 10
  IF ~~ THEN REPLY #26637 /* ~You are right.  You should have done better for your son.~ */ GOTO 11
  IF ~~ THEN REPLY #26638 /* ~I'll leave you be.~ */ GOTO 3
END

IF ~~ THEN BEGIN 9 // from: 2.1
  SAY #26639 /* ~I am sorry enough for failing my vow.  I do not need a stranger to grind it in further.  If that is all you wish to do, then I ask you to leave me be.~ */
  IF ~~ THEN REPLY #26640 /* ~Tell me about this oath, then... surely it cannot be that bad.~ */ DO ~SetGlobal("TalkedToKamir","GLOBAL",1)
~ GOTO 5
  IF ~~ THEN REPLY #26641 /* ~Fine, I'll go.~ */ GOTO 3
  IF ~~ THEN REPLY #26642 /* ~I tire of this maudlin whining... I'll leave you to it.~ */ GOTO 4
END

IF ~~ THEN BEGIN 10 // from: 8.0
  SAY #26643 /* ~But I am.  I failed my vow.  And I know no way in which I can atone for my failure.  If... if there was only some way... I would embrace it, gladly.~ */
  IF ~Global("TalkedToArenthis","GLOBAL",1)
~ THEN REPLY #26650 /* ~I may know of a way.  There is an orphan girl not far from here, accompanied by a priest of Lathander.  Perhaps you could atone by caring for her.~ */ GOTO 12
  IF ~Global("TalkedToArenthis","GLOBAL",0)
~ THEN REPLY #26655 /* ~I'm sorry, I do not know how to help you.~ */ GOTO 13
  IF ~~ THEN REPLY #26656 /* ~This is sickening it is so melodramatic.  I'll leave you to it.~ */ GOTO 4
  IF ~~ THEN REPLY #26657 /* ~I see.  I shall leave you alone, then.~ */ GOTO 3
END

IF ~~ THEN BEGIN 11 // from: 8.1
  SAY #26659 /* ~I am sorry enough for failing my vow.  I do not need a stranger to grind it in further.  If that is all you wish to do, then I ask you to leave me be.~ */
  IF ~Global("TalkedToArenthis","GLOBAL",1)
~ THEN REPLY #26660 /* ~Perhaps you can make up for it.  There is a girl recently orphaned near here with a cleric of Lathander.  Go and care for her as you cared for your son.~ */ GOTO 12
  IF ~~ THEN REPLY #26662 /* ~I think you are a stupid man to cling so firmly to your idiotic oath.  I'll leave you to it.~ */ GOTO 4
  IF ~~ THEN REPLY #26663 /* ~Fine, I'll leave you alone.~ */ GOTO 3
END

IF ~~ THEN BEGIN 12 // from: 16.0 11.0 10.0
  SAY #26666 /* ~An... an orphan, you say?  Perhaps... perhaps that would be a way... to atone for my failure.  Thank you, my <LADYLORD>... I shall go and talk to them at once.~ */
  IF ~~ THEN DO ~AddexperienceParty(12250)
SetGlobal("KamirWard","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 10.1
  SAY #26668 /* ~It is no matter.  I do not expect you to.  But please... leave me to my grief a little longer.  I... I am not ready to leave my son just yet.~ */
  IF ~~ THEN UNSOLVED_JOURNAL #34385 /* ~Help Kamir the paladin.

There is a paladin in the graveyard named Kamir who is mourning the loss of his adopted son, whom he failed to protect and, in so doing, broke a vow.  The paladin seemed to be a complete wreck over the matter.~ */ EXIT
END

IF ~Global("TalkedToKamir","GLOBAL",1)
Global("TalkedToArenthis","GLOBAL",0)
Global("KamirWard","GLOBAL",0)
~ THEN BEGIN 14 // from:
  SAY #26727 /* ~Hail once again, my <LADYLORD>.  I... please.  I ask that you leave me to grieve for my son in peace.~ */
  IF ~~ THEN EXIT
END

IF ~Global("TalkedToKamir","GLOBAL",0)
~ THEN BEGIN 15 // from:
  SAY #26728 /* ~My <LADYLORD>,   I ask that you leave me alone with my grief.  Your presence reminds me of my failure to uphold my oath, and it wracks my breast with pain.~ */
  IF ~~ THEN REPLY #26729 /* ~Tell me about this oath, then... surely it cannot be that bad.~ */ DO ~SetGlobal("TalkedToKamir","GLOBAL",1)
~ GOTO 5
  IF ~~ THEN REPLY #26730 /* ~All right... I shall leave you be.~ */ GOTO 3
  IF ~~ THEN REPLY #26731 /* ~Oh, boo-hoo.  My, you are a piece of work.~ */ GOTO 4
END

IF ~Global("TalkedToKamir","GLOBAL",1)
Global("TalkedToArenthis","GLOBAL",1)
Global("KamirWard","GLOBAL",0)
!Dead("Arenthis")
!StateCheck("Arenthis",STATE_SLEEPING)
!Dead("Risa")
!StateCheck("Risa",STATE_SLEEPING)~ THEN BEGIN 16 // from:
  SAY #26732 /* ~Hail again, my <LADYLORD>.  I do not wish to be rude... but my heart pains with the loss of my son and my inability to atone for my failure.  Please... leave me be.~ */
  IF ~~ THEN REPLY #26734 /* ~Actually, I may have a solution, Kamir.  There is an orphan girl not far from here, with a priest of Lathander.  Perhaps you could atone by caring for her.~ */ GOTO 12
  IF ~~ THEN REPLY #26735 /* ~All right, I shall leave you alone, then.~ */ GOTO 3
END

IF ~Global("KamirWard","GLOBAL",2)
~ THEN BEGIN 17 // from:
  SAY #26736 /* ~Greetings... greetings to you both.  I... I understand that the girl is in need of a guardian?~ */
  IF ~~ THEN EXTERN ~ARENTHIS~ 14
END

IF ~~ THEN BEGIN 18 // from:
  SAY #26740 /* ~Hello, Risa.  I am happy to meet you.~ */
  IF ~~ THEN EXTERN ~MOURNER7~ 3
END

IF ~~ THEN BEGIN 19 // from: MOURNER7:3.0
  SAY #26742 /* ~I am a paladin, little one... something like a knight.  I hold myself to strict standards within the worship of Helm.  Do you know who Helm is?~ */
  IF ~~ THEN EXTERN ~MOURNER7~ 4
END

IF ~~ THEN BEGIN 20 // from: MOURNER7:4.0
  SAY #26744 /* ~Then I... then I suppose I shall have to... teach you.  Yes.  I could teach you.  Would you like that, Risa?~ */
  IF ~~ THEN EXTERN ~MOURNER7~ 5
END

IF ~~ THEN BEGIN 21 // from: MOURNER7:5.0
  SAY #26746 /* ~Nay.  Sadly, my son has recently died.~ */
  IF ~~ THEN EXTERN ~MOURNER7~ 6
END

IF ~~ THEN BEGIN 22 // from: MOURNER7:6.0
  SAY #26748 /* ~Yes, I am.  I miss him very much.  I think he would approve, however, of me taking care of you.  That is... if you are willing.~ */
  IF ~~ THEN EXTERN ~MOURNER7~ 7
END

IF ~~ THEN BEGIN 23 // from: MOURNER7:7.0
  SAY #26750 /* ~Come... I shall show you the church.  Thank you, cleric... and thank you, too, my <LADYLORD>.  I am... most appreciative.~ */
  IF ~~ THEN DO ~EraseJournalEntry(34382)
EraseJournalEntry(34383)
EraseJournalEntry(34384)
EraseJournalEntry(34385)
AddexperienceParty(3000)
SetGlobal("KamirWard","GLOBAL",3)~ SOLVED_JOURNAL #47710 /* ~Locate a caretaker for the orphan, Risa.

I managed to bring together two people who I met in the Graveyard District... a paladin named Kamir whose son had died and a little girl named Risa whose parents had died.  The paladin agreed to raise the girl and they left together.~ */ EXIT
END
