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

BEGIN ~HUSAM2~

IF ~GlobalLT("HusamMove","GLOBAL",5)
GlobalGT("HusamMove","GLOBAL",0)
~ THEN BEGIN 0 // from:
  SAY #16801 /* ~Calm down, boy.  Tell me why your village needs help.~ */
  IF ~~ THEN REPLY #16909 /* ~That huge round thing appeared in the northwest part o' the slums a few weeks ago.  I wonder what th' guards is going to do about it?~ */ DO ~~ GOTO 1
  IF ~~ THEN REPLY #16910 /* ~Have ye seen th' sphere in the north end o' the slums?~ */ DO ~~ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #16802 /* ~Child, you escape? I did not foresee this! I am not done with you! You.. you have angered me! Do you know what that takes!?~ [IRENIC08] */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #16911 /* ~That big ball appeared out o' nowhere a few weeks back!  Me gramma's house used t' be there... I wonder if it's still inside.~ */
  IF ~~ THEN DO ~SetGlobal("HusamMove","GLOBAL",5)
EscapeArea()
~ EXIT
END

IF ~Global("HusamMove","GLOBAL",55)
~ THEN BEGIN 3 // from:
  SAY #16912 /* ~They should be burnin' up that big ball, they should!  It's evil, I just knows it!~ */
  IF ~~ THEN REPLY #16949 /* ~I'll try, Hendak.  Wait here.~ */ DO ~~ GOTO 4
  IF ~~ THEN REPLY #16950 /* ~By Helm's arse... your sickly little fleabag actually won. Take yer bloody winnings and begone, then.~ */ DO ~CreateCreature("SHADOW",[313.1889])
CreateCreature("SHADOW",[368.1887])
CreateCreature("SHADOW",[426.1902])
CreateCreature("SHADOW",[489.1908])
CreateCreature("SHADOW",[550.1905])
CreateCreature("SHADOW",[528.1962])
SetGlobal("HusamMove","GLOBAL",99)
Wait(4)
Dialogue([PC])~ EXIT
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #16913 /* ~Oh, hello.  Have you taken a look at the planar sphere?  It's absolutely marvelous!~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~Global("HusamMove","GLOBAL",99)~ THEN BEGIN 5 // from:
  SAY #16914 /* ~One can hardly miss it.  Exactly what is a planar sphere?~ */
  IF ~~ THEN REPLY #16915 /* ~I suppose so.  I'll be on my way.~ */ DO ~SetGlobal("HusamMove","GLOBAL",100)
Enemy()
~ EXIT
  IF ~~ THEN REPLY #16916 /* ~Um-hmmm.  Mmm.~ */ DO ~~ GOTO 6
END

IF ~~ THEN BEGIN 6 // from: 5.1
  SAY #16917 /* ~It is meant to be a planar traveling device of some sort, or at least that's what Lavok's apprentice is reported to have said.~ */
  IF ~~ THEN REPLY #16918 /* ~Who is this Lavok?  Did he come back with the sphere?~ */ DO ~~ GOTO 7
  IF ~~ THEN REPLY #16919 /* ~How does one get inside it?~ */ DO ~~ GOTO 8
  IF ~~ THEN REPLY #16920 /* ~Five hundred years ago?  How long has this thing been here?~ */ DO ~~ GOTO 9
  IF ~~ THEN REPLY #16921 /* ~Well, that's very interesting and all, but I'll be on my way.~ */ DO ~~ GOTO 10
END

IF ~~ THEN BEGIN 7 // from: 6.0
  SAY #16922 /* ~Er, until now, I suppose.  If Lavok is actually inside this or not, well, nobody knows.~ */
  IF ~~ THEN REPLY #16923 /* ~Well, now, that's what nobody seems to be able to figure out.  I can't see any kind of entrance.  Even the Cowled Wizards seem to be confused, and they've been here numerous times to study it.~ */ DO ~SetGlobal("HusamMove","GLOBAL",10)
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #16924 /* ~There's been no word or any kind of action from the sphere, since.  It's a rather intriguing mystery.~ */ DO ~~ GOTO 11
END

IF ~~ THEN BEGIN 8 // from: 6.1
  SAY #16925 /* ~Nobody knows?  Can't you get inside?~ */
  IF ~~ THEN REPLY #16926 /* ~Just how long has this sphere been here?~ */ DO ~SetGlobal("HusamMove","GLOBAL",10)
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #16927 /* ~Well that is interesting.  Excuse me.~ */ DO ~~ GOTO 11
END

IF ~~ THEN BEGIN 9 // from: 6.2
  SAY #16928 /* ~Who is this Lavok, anyway?~ */
  IF ~~ THEN REPLY #16929 /* ~How long has the sphere been here?~ */ DO ~SetGlobal("HusamMove","GLOBAL",10)
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #16930 /* ~The Cowled Wizards?~ */ DO ~~ GOTO 11
END

IF ~~ THEN BEGIN 10 // from: 6.3
  SAY #16931 /* ~Well, I suppose I'll be going, then.~ */
  IF ~~ THEN REPLY #16932 /* ~Who is this Lavok person again?~ */ DO ~SetGlobal("HusamMove","GLOBAL",10)
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #16933 /* ~A mystery?  Can't you get inside the thing?~ */ DO ~~ GOTO 11
END

IF ~~ THEN BEGIN 11 // from: 10.1 9.1 8.1 7.1
  SAY #16934 /* ~Indeed it is.  I'll be on my way.~ */
  IF ~~ THEN REPLY #16935 /* ~Every mage I've seen has been quite upset about their failure, as well.  Just goes to show you that magic can't solve all your problems.~ */ DO ~SetGlobal("HusamMove","GLOBAL",10)
EscapeArea()
~ EXIT
  IF ~~ THEN REPLY #16936 /* ~Where would I be able to find these Cowled Wizards?~ */ DO ~~ GOTO 12
END

IF ~~ THEN BEGIN 12 // from: 11.1
  SAY #16937 /* ~I suppose not.  Thanks for all the information.~ */
  IF ~~ THEN DO ~SetGlobal("HusamMove","GLOBAL",6)
DialogInterrupt(FALSE)
MoveToPoint([1173.1352])
DialogInterrupt(TRUE)
Wait(10)~ EXIT
END

IF ~Global("HusamMove","GLOBAL",6)
Global("KillAssasins","GLOBAL",0)
~ THEN BEGIN 13 // from:
  SAY #16938 /* ~Mmm.  Oh, er, yes, the wizards.  Well, I'm not quite sure.  I think they're in the government sector, somewhere, but who knows exactly?  Mmm.  You'll have to excuse me.~ */
  IF ~~ THEN DO ~SetGlobal("KillAssasins","GLOBAL",1)
~ JOURNAL #24104 /* ~What you want with Bunkin? Be quick cuz Bunkin busy lookin' pretty.~ */ EXIT
END

IF ~Global("HusamMove","GLOBAL",6)
Global("KillAssasins","GLOBAL",1)
~ THEN BEGIN 14 // from:
  SAY #16939 /* ~Could you tell me who this Lavok is?~ */
  IF ~Dead("Slythe")
Dead("Krystin")
~ THEN REPLY #16940 /* ~So how long has the sphere been here?~ */ DO ~SetGlobal("KillAssasins","GLOBAL",2)
~ GOTO 16
  IF ~~ THEN REPLY #16941 /* ~Well, thank you, I'll be on my way.~ */ DO ~~ GOTO 15
END

IF ~~ THEN BEGIN 15 // from: 14.1
  SAY #16942 /* ~Mmm.  Mm-hmmm.  I see, yes.  Oh, hello there again.~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 16 // from: 14.0
  SAY #16943 /* ~Greetings.  I was wondering if you could tell me about this sphere?~ */
  IF ~~ THEN REPLY #16944 /* ~I was just passing by.  Excuse me.~ */ DO ~SetGlobal("KillAssasins","GLOBAL",1)~ GOTO 20
  IF ~PartyHasItem("SCRL2K")
~ THEN REPLY #16945 /* ~Lavok was a wizard and merchant of great wealth.  He built this planar sphere, but it disappeared three years after construction began, along with all his confidantes.~ */ DO ~~ GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.1
  SAY #16946 /* ~Imprisonment~ */
  IF ~~ THEN DO ~SetGlobal("HusamMove","GLOBAL",7)
EscapeArea()
~ EXIT
END

IF ~~ THEN BEGIN 18 // from:
  SAY #16947 /* ~Trapped~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 19 // from:
  SAY #16948 /* ~Phantasmal Killer~ */
  IF ~~ THEN DO ~~ EXIT
END

IF ~~ THEN BEGIN 20 // from: 16.0
  SAY #24103 /* ~I can do nothing more to assist you.~ */
  IF ~~ THEN EXIT
END
