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

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

IF WEIGHT #3 /* Triggers after states #: 4 9 even though they appear after this state */
~True()
~ THEN BEGIN 0 // from:
  SAY #8473 /* ~I am not 'about' anything.  I've no ulterior motive outside the betterment of a squire.  Best you listen to the wisdom of those who have gone before you.~ */
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #8482 /* ~Delryn Family Shield~ */ GOTO 1
  IF ~ReactionGT(LastTalkedToBy,NEUTRAL_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #8483 /* ~Delryn Family Shield~ */ GOTO 3
  IF ~ReactionLT(LastTalkedToBy,FRIENDLY_LOWER)
ReactionGT(LastTalkedToBy,HOSTILE_UPPER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #8484 /* ~Squire Anomen, it is time that I had a word with you.  I must say that you do not always act in a manner befitting a squire of the Order.  You must learn to show deference to your leaders and elders.~ [KELDOR51] */ GOTO 6
  IF ~ReactionLT(LastTalkedToBy,NEUTRAL_LOWER)
Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #8485 /* ~~ */ GOTO 5
  IF ~Global("AcceptedJob","GLOBAL",1)
~ THEN REPLY #8486 /* ~Delryn Family Shield +1

This is Anomen's family shield, given to him by his father.  In addition to the magical protection the shield radiates an aura that grants the wielder fire and cold resistance.  To protect against ranged attacks, Anomen can use the shield to erect a field of energy.  This protection from normal missiles can be used three times per day.

STATISTICS

AC Bonus : +2
Fire Resistance: + 30%
Cold Resistance: + 30%

Abilities: 3 times per day can cast protection from missiles on bearer

Usable By:
 Anomen~ */ GOTO 2
  IF ~Global("AcceptedJob","GLOBAL",0)
~ THEN REPLY #17544 /* ~Very well, then.  I shall do what I can.~ */ EXIT
END

IF ~~ THEN BEGIN 1 // from: 7.1 5.1 4.2 0.0
  SAY #8474 /* ~I shall take, Sir Keldorn, what path I deem appropriate.  I have not bothered you so it seems rude that you find the time to bother me.~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 2 // from: 7.0 5.0 4.1 0.4
  SAY #8475 /* ~Book of Rituals~ */
  IF ~~ THEN DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 3 // from: 0.1
  SAY #8476 /* ~Very well.  I see that you are not prepared to learn.~ */
  IF ~~ THEN DO ~SetGlobal("CyrdemacMoves","GLOBAL",1)
MoveToPoint([675.784])
~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 9 even though they appear after this state */
~Global("CyrdemacMoves","GLOBAL",1)
~ THEN BEGIN 4 // from:
  SAY #8477 /* ~Book of Rituals~ */
  IF ~~ THEN REPLY #8487 /* ~Firecam Full-Plate Armor~ */ GOTO 5
  IF ~~ THEN REPLY #8488 /* ~Firecam Full-Plate Armor~ */ GOTO 2
  IF ~~ THEN REPLY #8489 /* ~Firecam Full-Plate Armor

Full plate armor is the best armor a warrior can buy, both in appearance and protection.  This armor increases the wearer's armor class by one above that of normal Full-Plate.  While equipped the suit provides the wearer with a +1 bonus to all saving throws and grants the wearer with limited free action (able to pass through webs and other effects).  This suit was designed for Keldorn and few other than he can wear it.

STATISTICS:

Armor Class: 0
Weight: 70
Saving Throws:  +1 Bonus
Special: Limited Free Action
Usable By:
 Keldorn~ */ GOTO 1
END

IF ~~ THEN BEGIN 5 // from: 4.0 0.3
  SAY #8478 /* ~Sword of Arvoreen~ */
  IF ~~ THEN REPLY #8490 /* ~Sir Keldorn, I thought that I made it clear the last time you brought this up, I have no need of further lessons... especially from you.  I near my knighthood now.~ [ANOMEN56] */ GOTO 2
  IF ~~ THEN REPLY #8491 /* ~Hallowed Redeemer~ */ GOTO 1
  IF ~~ THEN REPLY #17543 /* ~Hm.  Why not report them and let the garrison handle this, Hendak?~ */ DO ~Shout(1)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.2
  SAY #8479 /* ~Sword of Arvoreen~ */
  IF ~~ THEN REPLY #8492 /* ~Hallowed Redeemer~ */ GOTO 7
  IF ~~ THEN REPLY #8493 /* ~Hallowed Redeemer

Keldorn distinguished himself early in his career as a paladin, and received this blade as a boon from Torm.  It is exceptionally accurate, but also protects him in battle with a special Fireshield, and any that strike him while he wields it suffer Torm's wrath in the form of magical damage. None but Keldorn may use this sword.

STATISTICS:

Equipped Abilities: 5 points of magic damage to any who deal out any damage to the wielder.

THAC0:  +2 bonus
Damage:  1D10 + 2
Damage type:  slashing
Weight: 8
Speed Factor: 8
Proficiency Type: Two Handed Sword
Type:  2-handed
Usable By:
 Keldorn~ */ GOTO 8
  IF ~~ THEN REPLY #8494 /* ~You are brave and strong.  Do not fool yourself into believing that your time of learning is through.  All of life is a school of sorts.~ */ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.2 6.0
  SAY #8480 /* ~Murder!  Death!!  KILL!!!~ [SSWORD31] */
  IF ~~ THEN REPLY #8495 /* ~If that is so then there is no reason that you need to be my teacher.  Life will take care of it for you.~ */ GOTO 2
  IF ~~ THEN REPLY #8496 /* ~In this you are correct, I need not be your teacher.  Learn the lesson where you will, but learn it.  If you do not, the future will be unlike you envision it.~ */ GOTO 1
END

IF ~~ THEN BEGIN 8 // from: 6.1
  SAY #8481 /* ~Sword of Arvoreen

Another gift to Mazzy from Arvoreen, this short sword may only be used by halflings.  The enchantments that exist within this sword give it the ability to slow any opponent struck by it.

STATISTICS:

Abilities: Target must save vs. wand or have movement rated slowed by 2 (for 45 seconds).  Wielder of the sword is immune to slow and stun effects.
THAC0: +2 bonus
Damage:  1D6 + 2
Damage type:  piercing
Weight: 3
Speed Factor: 1
Proficiency Type: Short Sword
Type:  1-handed
Not Usable By:
 Non-Halflings
 Cleric~ */
  IF ~~ THEN DO ~SetGlobal("CyrdemacMoves","GLOBAL",1)
MoveToPoint([675.784])
~ EXIT
END

IF WEIGHT #0 ~StateCheck(Myself,STATE_CHARMED)
~ THEN BEGIN 9 // from:
  SAY #8499 /* ~My thanks, Sir Keldorn.  You are a fine example of honor and chivalry, and all in the Order look up to you.  I feel that I must apologize for being rude to you before.  The brashness of youth, as you have said.~ [ANOMEN57] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 10 // from:
  SAY #8962 /* ~And you let this all happen? I thought you were the child's nanny?~ */
  IF ~~ THEN EXIT
END
