// creator  : weidu.exe (version 23600)
// argument : RAGEFA.DLG
// game     : .
// source   : ./override/RAGEFA.DLG
// dialog   : lang\en_us/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 #2701 /* ~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:
  SAY #2702 /* ~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 #2703 /* ~Strong words, mage! Have ye the will to back them up?!~ */ GOTO 2
  IF ~  ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2704 /* ~Dare you speak of me as bandit, when you commit such crimes as you do?!~ */ GOTO 5
  IF ~  Global("HelpRamazith","GLOBAL",1)
!Dead("Ramazith")
~ THEN REPLY #2705 /* ~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 #2729 /* ~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 #2706 /* ~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 #2707 /* ~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 #26806 /* ~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 #2708 /* ~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 #2709 /* ~What nonsense is this?! Explain yourself before I dispense with you!~ */
  IF ~~ THEN REPLY #2710 /* ~I explain nothing! You will release the nymph to me or die!~ */ GOTO 2
  IF ~~ THEN REPLY #2711 /* ~You hold this beauteous creature captive and still claim the moral high ground? It's a contradiction!~ */ GOTO 6
  IF ~  Global("HelpRamazith","GLOBAL",1)
!Dead("Ramazith")
~ THEN REPLY #2712 /* ~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 #2713 /* ~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 care for her!~ */
  IF ~~ THEN REPLY #2714 /* ~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)
!Dead("Ramazith")
~ THEN REPLY #2715 /* ~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 #2716 /* ~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~ 385
  IF ~Global("X#RAGEFA6","GLOBAL",0)
InParty("kivan")
InMyArea("kivan")
!StateCheck("kivan",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#RAGEFA6","GLOBAL",1)~ EXTERN ~KIVANJ~ 381
  IF ~Global("X#RAGEFA6","GLOBAL",0)
InParty("dynaheir")
InMyArea("dynaheir")
!StateCheck("dynaheir",CD_STATE_NOTVALID)
~ THEN DO ~SetGlobal("X#RAGEFA6","GLOBAL",1)~ EXTERN ~DYNAHJ~ 223
END

IF ~~ THEN BEGIN 7 // from: 6.2
  SAY #2717 /* ~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 #2718 /* ~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~ 127
END

IF ~~ THEN BEGIN 9 // from:
  SAY #2719 /* ~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 #2720 /* ~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 #2721 /* ~But this is MY home.~ */
  IF ~  Global("HelpRamazith","GLOBAL",1)
!Dead("Ramazith")
~ THEN REPLY #2722 /* ~She will die in your "care." Ramazith is right to want her release.~ */ GOTO 3
  IF ~~ THEN REPLY #2723 /* ~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 #2724 /* ~This Abela will die with you. Free her if you truly feel as you do.~ */ GOTO 13
  IF ~  CheckStatGT(LastTalkedToBy,6,WIS)
~ THEN REPLY #2730 /* ~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 #2725 /* ~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 #2726 /* ~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 #2727 /* ~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~ 96
END

IF ~~ THEN BEGIN 15 // from:
  SAY #2728 /* ~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 #6108 /* ~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 #6109 /* ~Have you not bothered me enough? Leave me be, and get out of my home.~ */
  IF ~~ THEN EXIT
END
