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

BEGIN ~UDSVIR01~ 1 // non-zero flags may indicate non-pausing dialogue

IF ~~ THEN BEGIN 0 // from: 2.1 2.0
  SAY #50777 /* ~(ahem) You there, you who are there! Stand and identify yourself and your purpose!~ */
  IF ~~ THEN REPLY #50780 /* ~<CHARNAME>, and I'm not here to cause trouble. I come in peace, as they say.~ */ GOTO 3
  IF ~~ THEN REPLY #50782 /* ~There is no need for your hostile tone. Perhaps we can do some trading?~ */ GOTO 3
  IF ~~ THEN REPLY #50783 /* ~Who I am is none of your business. Let me pass.~ */ GOTO 3
  IF ~~ THEN REPLY #50784 /* ~My purpose? My purpose is disposing of little annoyances like you.~ */ GOTO 6
END

IF ~~ THEN BEGIN 1 // from:
  SAY #50778 /* ~There are few Drow that come this way peacefully!~ */
  IF ~~ THEN EXIT
END

IF ~NumTimesTalkedTo(0)~ THEN BEGIN 2 // from:
  SAY #50779 /* ~Edo, od golver d'tanyon! Da sugden os tera!~ */
  IF ~~ THEN REPLY #50785 /* ~I'm sorry, but your meaning escapes me.~ */ GOTO 0
  IF ~~ THEN REPLY #50786 /* ~Stop your grunting and speak common, deep gnome.~ */ GOTO 0
END

IF ~~ THEN BEGIN 3 // from: 7.0 0.2 0.1 0.0
  SAY #50787 /* ~Hmm... you are not a resident of this place, are you. Strangers from above then? Come here you should not, though useful you may be.~ */
  IF ~~ THEN GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #50788 /* ~You may enter, but on your best behavior be. Go and speak to the Lord of our fair granitehome. He will see to your wellbeing.~ */
  IF ~OR(4)
Dead("Viconia")
!InParty("Viconia")
!See("Viconia")
StateCheck("Viconia",STATE_SLEEPING)
~ THEN UNSOLVED_JOURNAL #57761 /* ~Svirfneblin Village. 

I met the leader of the guards for a small village of svirfneblin. He advised that I may pass through as I wish, so long as I speak with their leader first.~ */ EXIT
  IF ~!Dead("Viconia")
InParty("Viconia")
See("Viconia")
!StateCheck("Viconia",STATE_SLEEPING)
~ THEN UNSOLVED_JOURNAL #57761 /* ~Svirfneblin Village. 

I met the leader of the guards for a small village of svirfneblin. He advised that I may pass through as I wish, so long as I speak with their leader first.~ */ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.1
  SAY #50789 /* ~And know this: I see the darkness you travel with. Friends of the Drow we are not, but we will tolerate her here for now. Respect our peace.~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 6 // from: 0.3
  SAY #50790 /* ~Halt your threat or there will be blood in the stone tonight. We are peaceful towards the surface and darkness alike.~ */
  IF ~~ THEN GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #50791 /* ~We will defend as a group if we must, and all our granitehome be hostile to you. Now, do you restate your intent?~ */
  IF ~~ THEN REPLY #50792 /* ~I meant no offense. My apologies.~ */ GOTO 3
  IF ~~ THEN REPLY #50793 /* ~I restate nothing. It is you that threaten. Defend yourselves!~ */ GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.1
  SAY #50794 /* ~Alarm! De ston fall duth nada!! To arms all!~ */
  IF ~~ THEN DO ~SetGlobal("SvirHostile","GLOBAL",1)~ EXIT
END

IF ~Global("PlayerLooksLikeDrow","GLOBAL",0)~ THEN BEGIN 9 // from:
  SAY #50795 /* ~We have peace through respect and watchful eyes. Respect it and we respect you.~ */
  IF ~~ THEN EXIT
END

IF ~Global("PlayerLooksLikeDrow","GLOBAL",1)~ THEN BEGIN 10 // from:
  SAY #50796 /* ~Hail, dark ones. You are welcome to pass if the peace is respected. We live too close for constant warring.~ */
  IF ~~ THEN EXIT
END
