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

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

IF ~~ THEN BEGIN 0 // from: SHAGHO01:1.0
  SAY #41518 /* ~But it is not possible.  We were servants to the beloved Amuana, her guardians and protectors... and we failed our task.  Until our lady is at peace, we cannot and will not leave her.~ */
  IF ~~ THEN REPLY #41532 /* ~Who is this Amuana and why is she not at peace?~ */ EXTERN ~SHAGHO01~ 4
  IF ~~ THEN REPLY #41533 /* ~Why should I help you?~ */ GOTO 8
  IF ~~ THEN REPLY #41534 /* ~I have no time to offer you aid, spirits.~ */ GOTO 10
END

IF ~~ THEN BEGIN 1 // from: SHAGHO01:2.0
  SAY #41523 /* ~You must put our beloved Amuana at rest!  She is defiled by the Dark, and we can do nothing but watch in our horror.  Only once Amuana is at rest will we go on!~ */
  IF ~~ THEN REPLY #41535 /* ~Who is this Amuana and why is she not at peace?~ */ EXTERN ~SHAGHO01~ 4
  IF ~~ THEN REPLY #41536 /* ~Why should I help you?~ */ GOTO 8
  IF ~~ THEN REPLY #41537 /* ~I have no time to offer you aid, spirits.~ */ GOTO 10
END

IF ~~ THEN BEGIN 2 // from: SHAGHO01:3.0
  SAY #41527 /* ~We are shamed by what we cannot do!  Please... we will not leave this plane until our Prophetess is at rest!  She is defiled!  Defiled!~ */
  IF ~~ THEN REPLY #41538 /* ~Who is this Amuana and why is she not at peace?~ */ EXTERN ~SHAGHO01~ 4
  IF ~~ THEN REPLY #41539 /* ~Why should I help you?~ */ GOTO 8
  IF ~~ THEN REPLY #41540 /* ~I have no time to offer you aid, spirits.~ */ GOTO 10
END

IF ~~ THEN BEGIN 3 // from: SHAGHO01:4.0
  SAY #41543 /* ~Once, long ago, this was a place of darkness and vile creatures that spilled into this world from the blackness.  Amaunator invaded this place, brought his light to it and drove away the shadows!~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(1)~ EXTERN ~SHAGHO01~ 5
END

IF ~~ THEN BEGIN 4 // from: SHAGHO01:5.0
  SAY #41545 /* ~But our Amaunator has lost his power over the ages.  The Keeper of the Sun is no longer worshipped as he once was... and the wards began to weaken.~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 6
END

IF ~~ THEN BEGIN 5 // from: SHAGHO01:6.0
  SAY #41547 /* ~But it was too late... too late.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #41548 /* ~The wards were destroyed, and the shadows crept over the temples and murdered us all.  A Shade Lord now rules, here, and even a vile Shadow Dragon stalks these halls.~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 7
END

IF ~~ THEN BEGIN 7 // from: SHAGHO01:7.0
  SAY #41550 /* ~They gnaw on her remains, good <PRO_MANWOMAN>... the shadow wolves defile her with their teeth and saliva.  We... we failed our task.~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 8
END

IF ~~ THEN BEGIN 8 // from: 2.1 1.1 0.1
  SAY #41555 /* ~We have nothing to offer you.  No gold or silver, nothing that the living would desire... we possess nothing but our lost duty...~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(1)~ EXTERN ~SHAGHO01~ 9
END

IF ~~ THEN BEGIN 9 // from: SHAGHO01:9.0
  SAY #41557 /* ~But this we do not know... we simply beg you to assist our charge in the name of the Keeper!~ */
  IF ~~ THEN REPLY #41558 /* ~Very well.  Tell me of this Amuana, then.~ */ EXTERN ~SHAGHO01~ 4
  IF ~~ THEN REPLY #41559 /* ~I have no time to help you, spirits.~ */ GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.1 2.2 1.2 0.2 SHAGHO01:15.2
  SAY #41560 /* ~But our Child of the Light may possess the power to aid you against the darkness!  And we cannot call her without her bones!~ */
  IF ~~ THEN DO ~SetNumTimesTalkedTo(1)~ EXTERN ~SHAGHO01~ 10
END

IF ~~ THEN BEGIN 11 // from: SHAGHO01:11.0
  SAY #41565 /* ~Her bones yet remain in the lair of the shadow wolves... find them and bring them to us, we implore you!~ */
  IF ~~ THEN DO ~SetGlobal("amuanajob","GLOBAL",1)~ UNSOLVED_JOURNAL #20256 /* ~Investigate the deaths in the Umar Hills.

I have encountered two ghosts who claim to have been the protectors of the Child of Light, Amuana, a servant to the sun god and killed by the Shade Lord.  Her bones were thrown to the shade wolves, defiling her remains, and the spirits have pleaded for me to return her bones to them so that they may all be at peace.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: SHAGHO01:12.0
  SAY #41567 /* ~But the Child of Light may help you yet from beyond the veil.  Alas, we cannot call her without her bones to guide us.  Please... we beg of you to aid our poor Amuana!~ */
  IF ~~ THEN REPLY #41568 /* ~Very well... I will retrieve her bones, if I can.~ */ EXTERN ~SHAGHO01~ 11
  IF ~~ THEN REPLY #41569 /* ~I have no time to do this for you.~ */ EXTERN ~SHAGHO01~ 13
END

IF ~~ THEN BEGIN 13 // from: SHAGHO01:13.0
  SAY #41571 /* ~All we ask is that you bring the bones, the remains, of our poor lost charge to us.  That is all we ask!  We have waited so long for someone... anyone...~ */
  IF ~~ THEN UNSOLVED_JOURNAL #20256 /* ~Investigate the deaths in the Umar Hills.

I have encountered two ghosts who claim to have been the protectors of the Child of Light, Amuana, a servant to the sun god and killed by the Shade Lord.  Her bones were thrown to the shade wolves, defiling her remains, and the spirits have pleaded for me to return her bones to them so that they may all be at peace.~ */ EXIT
END

IF ~~ THEN BEGIN 14 // from: SHAGHO01:14.0
  SAY #41573 /* ~Please... find them!  Bring them to us from the wolves' lair so that we may end our duty at long, long last!~ */
  IF ~~ THEN UNSOLVED_JOURNAL #20256 /* ~Investigate the deaths in the Umar Hills.

I have encountered two ghosts who claim to have been the protectors of the Child of Light, Amuana, a servant to the sun god and killed by the Shade Lord.  Her bones were thrown to the shade wolves, defiling her remains, and the spirits have pleaded for me to return her bones to them so that they may all be at peace.~ */ EXIT
END

IF ~~ THEN BEGIN 15 // from: SHAGHO01:20.0 SHAGHO01:16.0
  SAY #41579 /* ~Her defilement at the hands of the Shade Lord is now ended!  Our duty is at an end.  Please... Amuana... forgive us!  Forgive our lapse and let us cross over at last!~ */
  IF ~~ THEN DO ~CreateCreature("shagrl01",[1916.1629],2)
ActionOverride("shagho01",Kill(Myself))
Kill(Myself)~ EXIT
END

IF WEIGHT #0 ~NumTimesTalkedTo(0)
!PartyHasItem("misc6q")~ THEN BEGIN 16 // from:
  SAY #41580 /* ~Wh-what is this?  Visitors!  Visitors at long last!~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 0
END

IF WEIGHT #2 /* Triggers after states #: 20 even though they appear after this state */
~!PartyHasItem("misc6q")
Global("amuanajob","GLOBAL",1)~ THEN BEGIN 17 // from:
  SAY #41581 /* ~You have returned... yet, alas, I do not sense her bones with you...~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 14
END

IF WEIGHT #3 /* Triggers after states #: 20 even though they appear after this state */
~!PartyHasItem("misc6q")
Global("amuanajob","GLOBAL",0)~ THEN BEGIN 18 // from:
  SAY #41582 /* ~Ah, <MANWOMAN> of the sun lands, you have returned!~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 15
END

IF WEIGHT #4 /* Triggers after states #: 20 even though they appear after this state */
~PartyHasItem("misc6q")~ THEN BEGIN 19 // from:
  SAY #41583 /* ~You have returned to us... and I sense the remains of our Child of Light are with you!  Salvation at last, at long last!~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 16
END

IF WEIGHT #1 ~NumTimesTalkedTo(0)
PartyHasItem("misc6q")~ THEN BEGIN 20 // from:
  SAY #43839 /* ~Oh Light! Can it be? You come, <MANWOMAN> bearing the bones of the Child Prophetess Amuana! Her defilement is at an end.~ */
  IF ~~ THEN REPLY #43840 /* ~These old bones? I found them being gnawed upon in a room full of shadow wolves. You may have them if you wish.~ */ GOTO 21
  IF ~~ THEN REPLY #43841 /* ~Explain yourselves. Who are you, spirits, and who is this Amuana whose bones you say I possess?~ */ GOTO 21
END

IF ~~ THEN BEGIN 21 // from: 20.1 20.0 SHAGHO01:21.1 SHAGHO01:21.0
  SAY #43842 /* ~Once, long ago, this was a place of darkness and vile creatures that spilled into this world from the blackness.  Amaunator invaded this place, brought his light to it and drove away the shadows!~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 17
END

IF ~~ THEN BEGIN 22 // from: SHAGHO01:17.0
  SAY #43844 /* ~But our Amaunator has lost his power over the ages.  The Keeper of the Sun is no longer worshipped as he once was... and the wards began to weaken.~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 18
END

IF ~~ THEN BEGIN 23 // from: SHAGHO01:18.0
  SAY #43847 /* ~But it was too late... too late.~ */
  IF ~~ THEN EXTERN ~SHAGHO01~ 19
END
