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

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

IF ~~ THEN BEGIN 0 // from:
  SAY #1643 /* ~Thanks, you've been a great help. I don't know if I got what I needed, but thanks nonetheless.~ */
  IF ~~ THEN REPLY #1648 /* ~Thanks, you've been a great help. I don't know if I got what I needed, but thanks nonetheless.~ */ GOTO 1
  IF ~~ THEN REPLY #1649 /* ~Thanks. What were you saying about Ployer?~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #1644 /* ~Don't know, but a Harper makes many enemies. Don't rightly want to meet the fool brave or stupid enough to kill one of their number. Harpers never forget.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #1645 /* ~Belgrade wooed nobles; he was never in the slums except the day he was dead.  Dumped in the northeast maybe, but there were too many tracks to tell for sure.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 3 // from:
  SAY #1646 /* ~Thanks. What were you saying about Ployer?~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 4 // from: 2.0
  SAY #1647 /* ~Do you know where he went that day? Where he might have been going?~ */
  IF ~~ THEN JOURNAL #7127 /* ~~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from:
  SAY #2313 /* ~Bah, you are no more than common thugs, beneath my notice. I will observe from afar.~ */
  IF ~~ THEN GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.0
  SAY #2314 /* ~It appears as if construction for a second level was started but never finished.~ */
  IF ~~ THEN EXTERN ~BELT~ 5
END

IF ~~ THEN BEGIN 7 // from:
  SAY #2315 /* ~Marilith~ */
  IF ~~ THEN DO ~SetGlobal("NobleDopple","GLOBAL",1)
~ EXIT
END

IF WEIGHT #2 /* Triggers after states #: 11 13 even though they appear after this state */
~Dead("Liia")
Dead("Belt")
Global("SarevokBehavior","GLOBAL",0)
~ THEN BEGIN 8 // from:
  SAY #2316 /* ~Marilith~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0200",FALSE)
TriggerActivation("Door0109a",FALSE)
TriggerActivation("Door0109b",FALSE)
TriggerActivation("Door0111",FALSE)
SetGlobalTimer("EndGame","GLOBAL",1)
CreateCreature("ANGELO",[469.707])
ActionOverride("Angelo",Enemy())
Wait(1)
CreateCreature("FLAME",[469.707])
CreateCreature("FLAME",[469.707])
CreateCreature("FLAME",[469.707])
CreateCreature("FLAME",[469.707])
CreateCreature("FLAME",[469.707])
CreateCreature("FLAME",[469.707])
Shout(2)
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 9 // from:
  SAY #2317 /* ~It appears as if, some time ago, a large creature burned and dug its way down, forming this pit. The faint stench of carrion wafts up from the hole.~ */
  IF ~~ THEN EXTERN ~LIIA~ 7
END

IF ~~ THEN BEGIN 10 // from:
  SAY #2318 /* ~As you move near the edge of the pit, you knock loose a pebble and it falls down the hole. A moment later you hear an indignant snort.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",4)
TriggerActivation("Door0200",FALSE)
TriggerActivation("Door0109a",FALSE)
TriggerActivation("Door0109b",FALSE)
TriggerActivation("Door0111",FALSE)
SetGlobalTimer("SarevokRun","GLOBAL",10)
Shout(2)
Enemy()
~ EXIT
END

IF WEIGHT #1 /* Triggers after states #: 13 even though they appear after this state */
~GlobalTimerExpired("SarevokRun","GLOBAL")
Global("SarevokBehavior","GLOBAL",4)
~ THEN BEGIN 11 // from:
  SAY #2319 /* ~Idle hands in Imnesvale.

I have, perhaps foolishly, agreed to buy three bastard swords and some Baalor's ale for three youngsters in the village of Imnesvale.  Mind you, how much trouble could they get into?  One of the local merchants named Min Minling should have what they need.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",1)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 12 // from:
  SAY #2320 /* ~Idle hands in Imnesvale.

I have agreed to buy three young prospective adventurers a few bastard swords from the local merchants.  Truly, how much trouble could they get into?~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("SarevokBehavior","GLOBAL",2)
~ THEN BEGIN 13 // from:
  SAY #9304 /* ~What if the girls can't live without a father anymore? What if I can't live without a husband?~ */
  IF ~~ THEN REPLY #9305 /* ~I love you like I love the Church but the Church is the harsher taskmaster... we knew that when we married.~ */ GOTO 14
  IF ~Gender(LastTalkedToBy,MALE)
~ THEN REPLY #9306 /* ~I know, I know, and I love you in the same fashion, with all my heart...~ */ GOTO 15
  IF ~~ THEN REPLY #9307 /* ~Then if we have love, Maria, what could ever come between us?~ */ GOTO 17
  IF ~~ THEN REPLY #9308 /* ~What is it you require to permit my passage? Gold? Is that it? I'll pay if you wish. Will 500 do?~ */ GOTO 18
  IF ~Gender(LastTalkedToBy,FEMALE)
~ THEN REPLY #9325 /* ~Be wary, then. She began alone, but she has supporters. They will not talk or bargain. I must go. I cannot be seen like this.~ */ GOTO 16
END

IF ~~ THEN BEGIN 14 // from: 13.0
  SAY #9309 /* ~That is why I have given warning.  I do not fully trust our new leader. Faldorn is... violent, but she... replaced our Great Druid, and none will challenge her.~ */
  IF ~~ THEN REPLY #9311 /* ~She still obeys the rituals of ascension?  Perhaps I should 'discuss' this with her.~ */ GOTO 20
  IF ~Gender(LastTalkedToBy,MALE)
~ THEN REPLY #9312 /* ~So you follow her regardless? Certainly you cannot condone her actions?~ */ GOTO 15
  IF ~~ THEN REPLY #9313 /* ~That's twice you've threatened me! I'll not run from the likes of you!~ */ GOTO 18
  IF ~Gender(LastTalkedToBy,FEMALE)
~ THEN REPLY #9316 /* ~Typical of a city-dweller.  I have no need of coins in the sanctity of Nature.  She provides for me. Leave with your arrogant wealth before you regret it.~ */ GOTO 16
END

IF ~~ THEN BEGIN 15 // from: 17.1 14.1 13.1
  SAY #9310 /* ~Faldorn! I know of her! She was a Shadow Druid I met near the Cloakwood Mines of Baldur's Gate!~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0123",FALSE)
ActionOverride("Galdor",Enemy())
ActionOverride("Semaj",Enemy())
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 17.2 14.3 13.4
  SAY #9314 /* ~I have not followed her orders as she might have wished. If I had, you and I would not be speaking. I warn people away when I can but I am not skilled enough to openly oppose her.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0123",FALSE)
ActionOverride("Galdor",Enemy())
ActionOverride("Semaj",Enemy())
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 17 // from: 13.2
  SAY #9315 /* ~You have spoken with Cernd? I had hoped he or another would be sent to help. He serves the Grand Druid in the north. He will know what to do with this Faldorn.~ */
  IF ~~ THEN REPLY #9317 /* ~That is not for you to know. Our affairs are our own business and they will be dealt with in accordance with the rituals of the ages already set in place.~ */ GOTO 19
  IF ~Gender(LastTalkedToBy,MALE)
~ THEN REPLY #9318 /* ~Damn you, I am giving you a chance to get out of here before you come to harm! I wish you no ill, but I must keep up the appearance!~ */ GOTO 15
  IF ~Gender(LastTalkedToBy,FEMALE)
~ THEN REPLY #9319 /* ~Backing down from a fight then? I think you should learn not to make threats you cannot enforce!~ */ GOTO 16
  IF ~~ THEN REPLY #9320 /* ~Cernd said there was something odd going on here. What has happened?~ */ GOTO 21
END

IF ~~ THEN BEGIN 18 // from: 14.2 13.3
  SAY #9321 /* ~What has happened here to cause this? I would not consider these attacks the traditional role of a druid.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0123",FALSE)
ActionOverride("Galdor",Enemy())
ActionOverride("Semaj",Enemy())
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 19 // from: 17.0
  SAY #9322 /* ~Quiet! Oh... damn it all, they've heard. Others do not stop to chat. Do not say I didn't warn you. I gave you a chance, but no, you wanted to butt heads. So be it, I tried.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0123",FALSE)
ActionOverride("Galdor",Enemy())
ActionOverride("Semaj",Enemy())
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 20 // from: 14.0
  SAY #9323 /* ~What has happened here to cause this? I would not consider these attacks the traditional role of a druid.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0123",FALSE)
ActionOverride("Galdor",Enemy())
ActionOverride("Semaj",Enemy())
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 21 // from: 17.3
  SAY #9324 /* ~Then you might end this! We have not experienced a Shadow Druid before; we are not strong enough to defeat her. I... I must go; she would harshly punish treachery.~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",3)
TriggerActivation("Door0123",FALSE)
ActionOverride("Galdor",Enemy())
ActionOverride("Semaj",Enemy())
Enemy()
~ EXIT
END

IF ~~ THEN BEGIN 22 // from:
  SAY #2920 /* ~Jan, how come you're always telling stories?~ */
  IF ~~ THEN DO ~~ EXTERN ~GORION~ 4
END

IF ~~ THEN BEGIN 23 // from:
  SAY #2984 /* ~Ye quiver and wither like all the others.  Ye're a gutless coward.  And so ye'll stay.~ */
  IF ~~ THEN DO ~~ EXTERN ~GORION~ 5
END

IF ~~ THEN BEGIN 24 // from:
  SAY #17334 /* ~I have decided not to free you.  It is too much trouble.~ */
  IF ~~ THEN EXTERN ~BELT~ 10
END

IF ~~ THEN BEGIN 25 // from:
  SAY #11814 /* ~They may know how the master exits the complex. Will you take these cells to revive them and learn what you can, in return for this path to freedom I have offered ye?~ */
  IF ~~ THEN DO ~SetGlobal("SarevokBehavior","GLOBAL",10)
Wait(1)
ActionOverride("Belt",ForceSpell(Player1,SAREVOK_STRIKE))
ActionOverride("Liia",ForceSpell(Player1,SAREVOK_STRIKE))
Wait(2)
Kill(Player1)
~ EXIT
END
