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

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

IF WEIGHT #0 ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #23048 /* ~Greetings to you, my friend.  Is there something that I can help you with?~ */
  IF ~~ THEN REPLY #23050 /* ~I be Garuk, my friend... the good Sassar helped me flee from the cult several weeks ago and we have been running and hiding e'er since.~ */ GOTO 1
  IF ~~ THEN REPLY #23051 /* ~Could you perhaps tell me a little about the Harpers?~ */ GOTO 2
  IF ~~ THEN REPLY #23052 /* ~Who are you and what do you do here?~ */ GOTO 3
  IF ~~ THEN REPLY #23053 /* ~What is this place?~ */ GOTO 4
  IF ~~ THEN REPLY #23054 /* ~I don't think so, thank you anyway.~ */ GOTO 5
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #23061 /* ~A little, but it may not make total sense. Harpers follow the Code and maintain the Balance. Both great evil and great good must be kept from getting out of hand.~ */
  IF ~~ THEN REPLY #23070 /* ~We respect wisdom, not power or station. A good king that expands his realm too far puts others at risk as surely as an evil king who terrorizes. We intervene to maintain balance.~ */ GOTO 4
  IF ~~ THEN REPLY #23071 /* ~You're right, I don't understand.~ */ GOTO 7
  IF ~~ THEN REPLY #23073 /* ~How do you organize all of that?~ */ GOTO 2
  IF ~~ THEN REPLY #23076 /* ~Hhhhhhhere is the secret place, where none may come that are not one and the same.~ */ GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 1.2 0.1
  SAY #23077 /* ~I see.  Could you perhaps tell me a little about the Harpers?~ */
  IF ~~ THEN REPLY #23078 /* ~Could you tell me a little about this place?~ */ GOTO 6
  IF ~~ THEN REPLY #23081 /* ~I see.  Well, I'll be on my way.~ */ GOTO 3
  IF ~~ THEN REPLY #23082 /* ~We use this building as our base in the city, of course. Don't speak of it, as secrecy is our weapon. Many think us meddlers and would give much to end our existence.~ */ GOTO 5
END

IF ~~ THEN BEGIN 3 // from: 4.1 2.1 1.3 0.2
  SAY #23094 /* ~Who are you, then, and what do you do here?~ */
  IF ~~ THEN REPLY #23157 /* ~I make my own way, and I do nobody's errands.  Begone!~ */ GOTO 6
  IF ~~ THEN REPLY #23159 /* ~Oh, please help us!  You are the only one we can turn to... the only one the entire city can turn to!  You would save so many!  Ooooh!~ */ GOTO 5
  IF ~~ THEN REPLY #23160 /* ~You... you would turn us away?  But how will we ever get the rod?  Oh, the beholder will come, first, for it, I just know he will!~ */ GOTO 9
  IF ~~ THEN REPLY #23161 /* ~I am Zaelas, and I have been assisting Sassar in researching the rod below... I truly thank you for helping us!~ */ GOTO 8
END

IF ~~ THEN BEGIN 4 // from: 1.0 0.3
  SAY #23136 /* ~We are the past that guards the present. We harp as specters that others would find rest here.~ */
  IF ~~ THEN REPLY #23137 /* ~Oh, please!  Now that we have run from the cult we are truly blinded!  I have been helping Sassar research the rod, but we cannot retrieve it!~ */ GOTO 5
  IF ~~ THEN REPLY #23138 /* ~The cult will come for us... they'll throw us in the Pit of the Faithless!  Please help us, kind <LADYLORD>!  Speak to Sassar again and tell him you'll help us!~ */ GOTO 3
  IF ~~ THEN REPLY #23139 /* ~And this place? What is it?~ */ GOTO 6
END

IF ~~ THEN BEGIN 5 // from: 4.0 3.1 2.2 0.4
  SAY #23140 /* ~There was a thief captured here not long ago. What happened to him?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 4.2 3.0 2.0
  SAY #23143 /* ~What is there here that someone would want to steal?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 7 // from: 1.1
  SAY #23148 /* ~How does someone become a Harper?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 8 // from: 3.3
  SAY #23162 /* ~As they take flight from the law, so we have given flight but nowhere to flee. A gilded cage for a form free to soar, that they might know loss in confinement.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 9 // from: 14.3 10.0 3.2
  SAY #23163 /* ~Bow down to the Unseeing Eye... quake before his holy gaze!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 19 20 21 even though they appear after this state */
~True()
~ THEN BEGIN 10 // from:
  SAY #23164 /* ~We must fight against the faithless who refuse to cast off their unholy orbs and embrace the One True God!~ */
  IF ~~ THEN REPLY #23180 /* ~Be careful, pilgrim!  The faithless are everywhere!~ */ GOTO 9
  IF ~~ THEN REPLY #23183 /* ~Hold!  Identify yourself, pilgrim!~ */ GOTO 11
  IF ~PartyGoldGT(49)
~ THEN REPLY #23186 /* ~I... am but a worshipper of the Unseeing Eye, on a task for Gaal.~ */ GOTO 12
  IF ~PartyGoldGT(299)
~ THEN REPLY #23189 /* ~'The eye is blind'?~ */ DO ~TakePartyGold(300)
~ GOTO 13
  IF ~PartyHasItem("misc2o")
~ THEN REPLY #23190 /* ~Yes, Gaal has mentioned you.  You would be better served to cast aside those evil orbs of yours, however.  But Gaal has spoken... move along.~ */ GOTO 14
  IF ~PartyHasItem("misc2o")
~ THEN REPLY #23191 /* ~Brothers!  Sisters!  One of the faithless is among us!~ */ GOTO 15
END

IF ~~ THEN BEGIN 11 // from: 10.1
  SAY #23178 /* ~You have your eyes, pilgrim.  Cast them off and join us in divine exultation!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 12 // from: 10.2
  SAY #23192 /* ~Er... indeed.  And the blindness is most holy.  Move along, pilgrim.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 13 // from: 10.3
  SAY #23193 /* ~Praise be to the Unseeing Eye!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 14 // from: 10.4
  SAY #23194 /* ~The Eye is the true god who exists among us!  I have witnessed his coming and he is beautiful!~ */
  IF ~~ THEN REPLY #23195 /* ~Many have gone to the lower places and attempted to retrieve the Holy Artifact for the Unseeing Eye... but they were found to be unfaithful.  I hope I am selected next!  I will not fail my God!~ */ GOTO 16
  IF ~~ THEN REPLY #23196 /* ~My former life no longer has any meaning.  I have devoted myself utterly to the service of the True God.~ */ GOTO 18
  IF ~~ THEN REPLY #23197 /* ~You should be wary not to go into the great cave of the God, fellow believer.  It is a dangerous place, even to the faithful!  Only Gaal may go there.~ */ GOTO 15
  IF ~~ THEN REPLY #23198 /* ~The faithless who cannot endure the removal of their eyes are thrown into the Pit of the Faithless... there, the demons consume them and they writhe in pain forever!~ */ GOTO 9
  IF ~~ THEN REPLY #23199 /* ~'Ware the Pit of the Faithless!  Those who are unworthy are thrown down to be consumed by the demons!~ */ GOTO 17
END

IF ~~ THEN BEGIN 15 // from: 14.2 10.5
  SAY #23200 /* ~I... my eyes... they hurt...~ */
  IF ~~ THEN DO ~GiveItem("POTN06",LastTalkedToBy)
TakePartyItem("Misc2o")
SetGlobal("ScrewedRiggilo","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 14.0
  SAY #23201 /* ~Sing your praises to the Unseeing Eye!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 14.4
  SAY #23202 /* ~The Eye is the true god who exists among us!  All those who disbelieve shall be cast into the Pit!~ */
  IF ~~ THEN DO ~SetGlobal("HateOn","GLOBAL",1)
~ EXIT
END

IF ~~ THEN BEGIN 18 // from: 14.1
  SAY #23203 /* ~Many have gone to the lower places and attempted to retrieve the Holy Artifact for the Unseeing Eye... but they were found to be unfaithful.  I hope I am selected next!  I will not fail my God!~ */
  IF ~~ THEN DO ~SetGlobal("ScrewedRiggilo","GLOBAL",1)
TakePartyItem("Misc2o")
~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 20 even though they appear after this state */
~Global("ScrewedRiggilo","GLOBAL",1)
!Global("FreedTheBitch","GLOBAL",1)
~ THEN BEGIN 19 // from:
  SAY #23204 /* ~My former life no longer has any meaning.  I have devoted myself utterly to the service of the True God.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("HateOn","GLOBAL",1)
~ THEN BEGIN 20 // from:
  SAY #23205 /* ~You should be wary not to go into the great cave of the God, fellow believer.  It is a dangerous place, even to the faithful!  Only Gaal may go there.~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF WEIGHT #3 ~Global("FreedTheBitch","GLOBAL",1)
~ THEN BEGIN 21 // from:
  SAY #23206 /* ~The faithless who cannot endure the removal of their eyes are thrown into the Pit of the Faithless... there, the demons consume them and they writhe in pain forever!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END
