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

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

IF WEIGHT #2 /* Triggers after states #: 14 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
~ THEN BEGIN 0 // from:
  SAY #2847 /* ~Lesser Air Elemental~ */
  IF ~HasWeaponEquiped(LastTalkedToBy)
~ THEN REPLY #2864 /* ~When asked about her past, NALIA is a bit hesitant.  She comes from a wealthy land-owning family headed by Lord de'Arnise, and while she speaks of her relatives with affection, the fact of her upbringing seems to embarrass her at the same time.  Nalia clearly identifies more with the 'poorer classes'... but also looks upon them with the eyes of the privileged.  She has been educated and taught the magical arts, as per her dead mother's wishes, but Nalia states that her years of sneaking out of the castle have taught her the other side of life as well.  She still has much to learn about life beyond her caste, however, and she knows it... and she is sure adventuring is the answer.~ */ GOTO 3
  IF ~~ THEN REPLY #2865 /* ~Enough, I will no longer listen to the babbling of ignorant children.~ [DPJON136] */ DO ~~ GOTO 16
  IF ~!HasWeaponEquiped(LastTalkedToBy)
~ THEN REPLY #2869 /* ~Must I be interrupted at every turn!  Enough of this!~ [DPJON137] */ GOTO 5
END

IF WEIGHT #3 /* Triggers after states #: 14 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN BEGIN 1 // from:
  SAY #2848 /* ~Greater Air Elemental~ */
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2866 /* ~This is an unsanctioned use of magical energy!~ [CSCOW102] */ GOTO 5
  IF ~~ THEN REPLY #2867 /* ~Earth Elemental~ */ GOTO 16
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2868 /* ~All involved will be held!  This disturbance is over!~ [CSCOW501] */ GOTO 3
END

IF WEIGHT #4 /* Triggers after states #: 14 even though they appear after this state */
~NumTimesTalkedTo(0)
ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN BEGIN 2 // from:
  SAY #2849 /* ~Greater Air Elemental~ */
  IF ~!HasWeaponEquiped(LastTalkedToBy)
~ THEN REPLY #2870 /* ~You have been involved in illegal use of magic.  You will come with us!~ */ GOTO 5
  IF ~HasWeaponEquiped(LastTalkedToBy)
~ THEN REPLY #2871 /* ~Earth Elemental~ */ GOTO 3
  IF ~~ THEN REPLY #2872 /* ~You see those tiny mushrooms hidden away, there... and how they glow? They are of the foxfire family and are the material component for the 'faerie fire' spell.~ [CERND50] */ GOTO 16
END

IF ~~ THEN BEGIN 3 // from: 2.1 1.2 0.0
  SAY #2850 /* ~Lesser Earth Elemental~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #5 /* Triggers after states #: 14 even though they appear after this state */
~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
~ THEN BEGIN 4 // from:
  SAY #2851 /* ~Lesser Earth Elemental~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: 2.0 1.0 0.2
  SAY #2852 /* ~Oh, please Cernd. I--I would like that very much.~ */
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2873 /* ~Fire Elemental~ */ GOTO 12
  IF ~~ THEN REPLY #2874 /* ~Fire Elemental~ */ GOTO 6
  IF ~~ THEN REPLY #2875 /* ~Ah, over there rests a stand of simple Wood Ferns. I have seen them grow as high as my chest, some years.~ [CERND51] */ GOTO 7
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2876 /* ~Greater Fire Elemental~ */ GOTO 13
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #2853 /* ~Greater Earth Elemental~ */
  IF ~~ THEN DO ~Wait(10)
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
~ EXIT
END

IF ~~ THEN BEGIN 7 // from: 5.2
  SAY #2854 /* ~So godchild, you have escaped.  You are more resourceful than I had thought.~ [DPJON133] */
  IF ~~ THEN REPLY #2877 /* ~Greater Fire Elemental~ */ GOTO 8
  IF ~~ THEN REPLY #2878 /* ~Lesser Fire Elemental~ */ GOTO 9
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
~ THEN REPLY #2879 /* ~Lesser Fire Elemental~ */ GOTO 10
  IF ~ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
~ THEN REPLY #2880 /* ~Genie~ */ GOTO 11
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #2855 /* ~You're not going to torture us any longer.~ [CSIMO01] */
  IF ~~ THEN DO ~Wait(10)
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
~ EXIT
END

IF ~~ THEN BEGIN 9 // from: 7.1
  SAY #2856 /* ~Greater Earth Elemental~ */
  IF ~~ THEN DO ~Wait(10)
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
~ EXIT
END

IF ~~ THEN BEGIN 10 // from: 7.2
  SAY #2857 /* ~Torture?  Silly girl, you just don't understand what I'm doing, do you?~ [DPJON134] */
  IF ~~ THEN DO ~Wait(10)
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
~ EXIT
END

IF ~~ THEN BEGIN 11 // from: 7.3
  SAY #2858 /* ~I don't care what you're doing!  Let us go!~ [CSIMO02] */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 5.0
  SAY #2859 /* ~I won't let you leave, not when I'm so close to unlocking your power.~ [DPJON135] */
  IF ~~ THEN DO ~Wait(10)
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
~ EXIT
END

IF ~~ THEN BEGIN 13 // from: 5.3
  SAY #2860 /* ~Then it shall be so.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 14 // from:
  SAY #9119 /* ~I shall not forget this, gnome!  Your blood will stain my blade, yet!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 15 // from:
  SAY #9120 /* ~I did, actor... So you can stop pushing your weight around and leave the fighting to those of us who can handle the front line.~ [ANOMEN46] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 16 // from: 2.2 1.1 0.1
  SAY #14380 /* ~There's a few places ye could go to shop for things.  Hardy folk like yourselves might wish to try the Adventurer's Mart, I think.  If ye looks on yer map, it's over in the western Promenade.~ */
  IF ~~ THEN DO ~Wait(10)
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
CreateCreature("FLAMEN",[0.0])
~ EXIT
END
