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

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

IF WEIGHT #1 /* Triggers after states #: 10 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #3027 /* ~Ranger-Protector of the Umar Hills

A witch claiming to be Umar has threatened Imnesvale, but I have no time to go to their rescue.  The mayor of Imnesvale was angry enough that he stripped me of my position and the use of the cabin.~ */
  IF ~~ THEN REPLY #3030 /* ~Ruling the de'Arnise Keep and Lands

Nalia has asked me to caretake her family's lands so that the Roenalls do not have the opportunity to take it from her whether she likes it or not.  Her father's major domo will assist me, running the day-to-day activities of the keep and collecting the taxes for me when I visit.  The major domo estimates that after the keep's maintenance is paid and money for the new garrison is deducted, I should make about 500 gp per week... which I can collect whenever I like.  I can also raise taxes, but I must be careful of angering the people.

I will also be needed to return every now and again in order to make decisions that the major domo cannot make, himself.  The whole thing seems simple enough, really.~ */ GOTO 6
  IF ~~ THEN REPLY #3031 /* ~Ruling the de'Arnise Keep and Lands

A runner has come to me, stating that I must return to the de'Arnise keep as soon as possible... no more than a week... as Lord Farthington Roenall, the head of the family that wished to take Nalia's family's keep, desires to see me.~ */ GOTO 5
  IF ~~ THEN REPLY #3034 /* ~Ruling the de'Arnise Keep and Lands

The de'Arnise Keep has been conquered by the Roenall forces, despite everything I tried to do.  Our resistance just took too long and it wasn't enough.  Lord Roenall has banished me from the land permanently.~ */ GOTO 11
END

IF WEIGHT #2 /* Triggers after states #: 10 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #3028 /* ~Ranger-Protector of the Umar Hills

Mairyn, the forest spirit, appeared again and told me of the sorceress that has been poisoning her forest with infernal magic.  The sorceress, claiming to be Umar, has set herself up in the now-empty Shadow Portal dungeon.~ */
  IF ~~ THEN REPLY #3029 /* ~Ranger-Protector of the Umar Hills

I have killed the sorceress who had assumed the name of Umar to scare off the villagers, and Mairyn has granted me a gift from the goddess Mielikki.  The cabin is now mine to use for the remainder of my quest... and I have a feeling things will be more peaceful in the valley for some time to come.~ */ GOTO 6
  IF ~~ THEN REPLY #3032 /* ~Ruling the de'Arnise Keep and Lands

Apparently, there has been a major flood in the lands around the de'Arnise keep.  A runner has been sent to ask me to return as soon as possible, within a week or less, in order to restore order there.~ */ GOTO 5
  IF ~~ THEN REPLY #3033 /* ~Ruling the de'Arnise Keep and Lands

It appears the Roenalls have finally decided to take extreme action to claim the de'Arnise lands and remove me from the castle.  A runner reports that Roenall armed forces have been spotted approaching the keep... I will need to return there as soon as possible.~ */ GOTO 11
END

IF WEIGHT #3 /* Triggers after states #: 10 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #3035 /* ~With the death of your Djinni, the summoning ring vanishes.~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF WEIGHT #4 /* Triggers after states #: 10 even though they appear after this state */
~NumTimesTalkedTo(1)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 3 // from:
  SAY #3036 /* ~Ruling the de'Arnise Keep and Lands

The Roenalls have finally been defeated.  And with Lord Farthington dead, I doubt they will be returning anytime soon.  My claim as the legitimate ruler of the castle has been strengthened... and hopefully things will be peaceful in the de'Arnise keep from now on.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #5 /* Triggers after states #: 10 even though they appear after this state */
~NumTimesTalkedTo(1)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 4 // from:
  SAY #3039 /* ~Ruling the de'Arnise Keep and Lands

I have taken too long to deal with the problem at the de'Arnise keep... the Roenall family has apparently stepped in to deal with the situation and there was little that the locals would do to object.  I have been locked out of the keep and am certainly not welcome by the new ruling family.~ */
  IF ~~ THEN REPLY #3040 /* ~Last Night I had a Dream.

I had a dream about Imoen and Irenicus.  At least, I think it was them.  Imoen was acting very strange, and spoke of how she seemed to be losing sight of her own identity.  Irenicus said that she would learn, and then he asked if I clung to the past or if I could "see through the pain."  I think the dream was referring to the experiments Irenicus was doing on me.  Something about my potential and what I could "take for my own" if I wanted.  Obviously I shall have to seek answers from Irenicus himself.  The shade in the dream was of no real help.~ */ GOTO 6
  IF ~~ THEN REPLY #3041 /* ~You cannot save during combat.~ */ GOTO 5
  IF ~~ THEN REPLY #3042 /* ~The backstab seems to have failed.~ */ GOTO 11
END

IF ~~ THEN BEGIN 5 // from: 7.2 4.1 1.1 0.1
  SAY #3043 /* ~This short sword has been forged by hands both magical and highly skilled.  Neither nick nor stain mar the flawless blade.  When used in battle the blade radiates magic and gifts the wielder with increased skill.

STATISTICS:

THAC0:  +2 bonus
Damage:  1D6 +2
Damage type:  piercing
Speed Factor: 1
Weight:  2
Proficiency Type: Short Sword
Type:  1-handed
Requires: 5 Strength
Not Usable By:
 Druid
 Cleric 
 Mage
 Beast Master~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 4.0 1.0 0.0
  SAY #3044 /* ~Really?~ [AERIE62] */
  IF ~~ THEN DO ~DialogInterrupt(FALSE)
SetGlobal("AloraLoots","Global",1)
MoveToPoint([769.849])
DialogInterrupt(TRUE)
~ EXIT
END

IF WEIGHT #6 /* Triggers after states #: 10 even though they appear after this state */
~Global("AloraLoots","Global",1)
~ THEN BEGIN 7 // from:
  SAY #3046 /* ~Ah, my spirit always flies so free in this place.~ [MAZZY55] */
  IF ~~ THEN REPLY #3047 /* ~It rides the skies with the solars, Aerie... One day I shall be a paladin atop a white griffon, and you will be a valiant flying squire.  Wouldn't that be wonderful?~ */ GOTO 9
  IF ~~ THEN REPLY #3048 /* ~I... I don't have my wings anymore, Mazzy, and... and I'm never going to get them back. They're gone.~ */ GOTO 8
  IF ~~ THEN REPLY #3049 /* ~Dream a little, girl, especially here where the gods are listening.  Faith is such a beautiful thing to hold on to, Aerie.~ */ GOTO 5
END

IF ~~ THEN BEGIN 8 // from: 7.1
  SAY #3050 /* ~But it won't give me wings...~ */
  IF ~~ THEN DO ~EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.0
  SAY #3051 /* ~No, it probably won't... But it gives you a chance to dream, at least, doesn't it?~ */
  IF ~~ THEN DO ~JoinParty()
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 10 // from:
  SAY #5748 /* ~Yet here you stand, still alive. The rewards will outweigh the risks. At least, I hope so. Mook and her memory will serve as a reminder of the danger.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 11 // from: 4.2 1.2 0.2
  SAY #14199 /* ~Nature's bounty might be appreciated more if it was accessible to the common man.~ */
  IF ~~ THEN DO ~CreateCreature("FLAM",[802.905])
CreateCreature("FLAM",[850.886])
EscapeArea()
~ EXIT
END

IF WEIGHT #7 ~false()~ THEN BEGIN 12 // from:
  SAY #14201 /* ~I hold nature to be my sole reason for existing, but I must consider all views.~ */
  IF ~~ THEN DO ~CreateCreature("FLAM",[802.905])
CreateCreature("FLAM",[850.886])
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 13 // from:
  SAY #14358 /* ~I was actually looking for a place to spend the night.~ */
  IF ~~ THEN DO ~LeaveParty()
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 14 // from:
  SAY #14359 /* ~Well, ye won't be spendin' the night here, I can tell ye that.  Get ye to the slums, ye can spend your nights at the Copper Coronet, more like.~ */
  IF ~~ THEN DO ~LeaveParty()
SetDialog("Alorap")
~ EXIT
END
