// creator  : weidu.exe (version 23100)
// argument : _RAGEFA.DLG
// game		 : .
// source	 : ./override/_RAGEFA.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

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

IF WEIGHT #1 /* Triggers after states #: 16 even though they appear after this state */
~NumberOfTimesTalkedTo(0)
See("abela")
!Dead("abela")
~ THEN BEGIN 0 // from:
  SAY #80248 /* ~Now know thee well I cannot let thee leave.  We are meant to be together, whether ye know it or no.~ */
  IF ~~ THEN EXTERN ~_ABELA~ 0
END

IF ~~ THEN BEGIN 1 // from: _VICONJ:71.0
  SAY #80313 /* ~What!?  What bandit dares enter the home of Ragefast?!  Identify your purpose here, that I might know what to put on thy tombstone!~ */
  IF ~~ THEN REPLY #80314 /* ~Strong words mage!  Have ye the will to back them up?!~ */ GOTO 2
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #80315 /* ~Dare you speak of me as bandit, when you commit such crimes as you do?!~ */ GOTO 5
  IF ~Global("HelpRamazith","GLOBAL",1)
~ THEN REPLY #80316 /* ~I should like as little trouble as possible!  If you simply hand over the Nymph I shall return to Ramazith.~ */ GOTO 3
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #80315 /* ~Dare you speak of me as bandit, when you commit such crimes as you do?!~ */ GOTO 4
END

IF ~~ THEN BEGIN 2 // from: 5.0 1.0
  SAY #80317 /* ~I know not what has brought thee here, but six shall carry thee out!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 11.0 6.1 5.2 1.2
  SAY #80318 /* ~Ramazith sent thee!?  That treacherous eel will not have Abela!  What he suggests is against all tenets of decency!  His foul plan dies here with thee!~ */
  IF ~~ THEN DO ~Enemy()
~ UNSOLVED_JOURNAL #80261 /* ~The captive nymph

Ragefast thinks that Ramazith has evil plans in store for the nymph Abela.~ */ EXIT
END

IF ~~ THEN BEGIN 4 // from: 1.3
  SAY #80319 /* ~What gall thou must possess, to accuse me of crimes within my own household!  Especially when it's you who has entered without consent!  You shalt die as a thief should for violating my home!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 5 // from: 1.1
  SAY #80320 /* ~What nonsense is this?!  Explain yourself before I dispense with you!~ */
  IF ~~ THEN REPLY #80321 /* ~I explain nothing!  You will release the nymph to me or die!~ */ GOTO 2
  IF ~~ THEN REPLY #80322 /* ~You hold this beauteous creature captive, and still claim the moral high ground?  It's a contradiction!~ */ GOTO 6
  IF ~Global("HelpRamazith","GLOBAL",1)
~ THEN REPLY #80323 /* ~I and Ramazith have now both witnessed the cruel confinement you place upon this creature.~ */ GOTO 3
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #80324 /* ~No!  This wondrous being is my love and life!  I would be hers as well, but it takes time!  She will grow to care for me, as I her!~ */
  IF ~~ THEN REPLY #80325 /* ~One does not cage those he cares for!  You may break her spirit and she will serve you, but this is not love!  Listen to her!~ */ GOTO 8
  IF ~Global("HelpRamazith","GLOBAL",1)
~ THEN REPLY #80326 /* ~This is an impossible goal!  Best for her that you release her to me, that I might free her under the sight of Ramazith.~ */ GOTO 3
  IF ~~ THEN REPLY #80327 /* ~Your twisted feelings cloud your sight!  Release her, before you both come to harm!~ */ GOTO 7
  IF ~Global("X#RAGEFA6","GLOBAL",0)
InParty("jaheira")
InMyArea("jaheira")
!StateCheck("jaheira",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#RAGEFA6","GLOBAL",1)~ EXTERN ~_JAHEIJ~ 380
  IF ~Global("X#RAGEFA6","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#RAGEFA6","GLOBAL",1)~ EXTERN ~_KIVANJ~ 376
  IF ~Global("X#RAGEFA6","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#RAGEFA6","GLOBAL",1)~ EXTERN ~_DYNAHJ~ 222
END

IF ~~ THEN BEGIN 7 // from: 6.2
  SAY #80328 /* ~My feelings are genuine, and none shall harm the angelic Abela!  I will let no one come between us!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 8 // from: 6.0
  SAY #80329 /* ~She will learn to be happy here!  We shall grow old together.~ */
  IF ~~ THEN EXTERN ~_ABELA~ 1
  IF ~Global("X#VicRagefast","GLOBAL",0)
InParty("viconia")
InMyArea("viconia")
!StateCheck("viconia",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#VicRagefast","GLOBAL",1)~ EXTERN ~_VICONJ~ 119
END

IF ~~ THEN BEGIN 9 // from:
  SAY #80330 /* ~Abela, thy beauty is as brilliant now as the day I found you.  Say not such things.~ */
  IF ~~ THEN EXTERN ~_ABELA~ 2
END

IF ~~ THEN BEGIN 10 // from:
  SAY #80331 /* ~But we were meant for each other!  Thy very words had said so!~ */
  IF ~~ THEN EXTERN ~_ABELA~ 3
END

IF ~~ THEN BEGIN 11 // from:
  SAY #80332 /* ~But this is MY home...~ */
  IF ~Global("HelpRamazith","GLOBAL",1)
~ THEN REPLY #80333 /* ~She will die in your 'care.'  Ramazith is right to want her release.~ */ GOTO 3
  IF ~~ THEN REPLY #80334 /* ~Whine if you wish, but tonight she is free!  Stand in the way and you perish with your foolish dreams.~ */ GOTO 12
  IF ~CheckStatLT(LastTalkedToBy,7,WIS)
~ THEN REPLY #80335 /* ~This Abela will die with you.  Free her if you truly feel as you do.~ */ GOTO 13
  IF ~CheckStatGT(LastTalkedToBy,6,WIS)
~ THEN REPLY #80335 /* ~This Abela will die with you.  Free her if you truly feel as you do.~ */ GOTO 14
END

IF ~~ THEN BEGIN 12 // from: 11.1
  SAY #80336 /* ~My innermost thoughts are displayed before you, and I must suffer your mockery?  Trifle with me no longer!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 11.2
  SAY #80337 /* ~I would sooner we both died here, than lose her beauty in my life!  You will pay for this pain stranger!  'Twas not your place to meddle with me!~ */
  IF ~~ THEN DO ~Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from: 11.3
  SAY #80338 /* ~I... it is so.  Forgive me Abela, I have been a fool.  I release you from my enchantments, and you are free to leave.  Please do not think too harshly of me.  I am but a foolish old man.~ */
  IF ~~ THEN EXTERN ~_ABELA~ 4
  IF ~Global("X#GarRag","GLOBAL",0)
InParty("garrick")
InMyArea("garrick")
!StateCheck("garrick",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#GarRag","GLOBAL",1)~ EXTERN ~_GARRIJ~ 104
END

IF ~~ THEN BEGIN 15 // from:
  SAY #80339 /* ~I know not why you have turned on me, but your life is forfeit for it!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 16 // from:
  SAY #80340 /* ~I've led a rather cloistered life, so I know little of the outside world.  I wish I could tell you more friend, but my knowledge is limited to my studies.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~True()
~ THEN BEGIN 17 // from:
  SAY #80341 /* ~Have you not bothered me enough?  Leave me be, and get out of my home.~ */
  IF ~~ THEN EXIT
END
