// creator  : weidu.exe (version 23100)
// argument : KRUIN.DLG
// game		 : .
// source	 : ./override/KRUIN.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~KRUIN~

IF ~True()~ THEN BEGIN 0 // from:
  SAY #59814 /* ~Aha!  It is the wielder, the thief and the defiler!  All in one being... strange.  I thought there would be three.  You there!  Have you no twin <BROTHERSISTER>s?~ */
  IF ~~ THEN REPLY #59815 /* ~Are you talking to me?~ */ DO ~SetGlobal("KruinTalked","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #59816 /* ~What kind of babbling nonsense is this?~ */ DO ~SetGlobal("KruinTalked","GLOBAL",1)~ GOTO 1
  IF ~~ THEN REPLY #59817 /* ~What do you want, Githyanki?~ */ DO ~SetGlobal("KruinTalked","GLOBAL",1)~ GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.2 0.1 0.0
  SAY #59818 /* ~A question with a question!  I see <HISHER> mind is far deeper than I expected.  Layers and layers of duplicity and deceit.  I must be subtle with this one.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #59819 /* ~Perhaps I should start again before <HESHE> gets suspicious.  Hm.  Yes, I think this would be best.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #59820 /* ~(ahem!)  You there, <RACE> <MANWOMAN>!  My freedom from limbo has a price: I must track down the thief of one of our most holy of holies.~ */
  IF ~~ THEN REPLY #59821 /* ~You know, I heard you the first time.~ */ GOTO 4
  IF ~~ THEN REPLY #59822 /* ~What are you talking about?  I have no idea.~ */ GOTO 5
  IF ~CheckStatGT(LastTalkedToBy,9,INT)~ THEN REPLY #59823 /* ~You don't mean the Silver Sword Blade, do you?~ */ GOTO 6
  IF ~~ THEN REPLY #59824 /* ~Back off, Githyanki!  You'll take nothing of mine!~ */ GOTO 7
END

IF ~~ THEN BEGIN 4 // from: 3.0
  SAY #59825 /* ~You did?  Really?   You know, being a wild mage isn't all it's cracked up to be.  My mentor always said:  "See the spoon, see the spoon."  But I only saw frogs.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 5 // from: 3.1
  SAY #59826 /* ~(sigh)  I'm trying very hard to communicate.  They chose me because I have the most experience with humans.  It got me out of limbo, and that's a GOOD thing.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 6 // from: 3.2
  SAY #59827 /* ~Ack!  You know what it's called?!  I trained three years as a wild mage before they let me in on that one.  My mentor tended to grunt... training was a bitch.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 7 // from: 3.3
  SAY #59828 /* ~I don't want anything of YOURS... just what's ours.  The Githyanki don't take just anyone from their limbo prison...  I have experience with humans.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 7.0 6.0 5.0 4.0
  SAY #59829 /* ~So now.  I've been very patient because you ARE a lesser being.  I'm trying not to overwhelm you with my psionics just by accident.  See how nice I am?~ */
  IF ~~ THEN GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.0
  SAY #59830 /* ~So hand over the Silver Sword Blade and we'll all be happy.  Well, maybe you won't be happy, but you won't be DEAD and that's got to be better, right?~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #59831 /* ~So are you going to hand over the sacred blade or not?~ */
  IF ~~ THEN REPLY #59832 /* ~If it's that important to your people, then here.  Take it.~ */ DO ~TakePartyItem("misc8u")~ GOTO 11
  IF ~~ THEN REPLY #59833 /* ~Very well.  I don't want any trouble.~ */ DO ~TakePartyItem("misc8u")~ GOTO 11
  IF ~~ THEN REPLY #59834 /* ~No, I will not.  It is mine, now.~ */ GOTO 12
  IF ~~ THEN REPLY #59835 /* ~Never!  I'll kill you with it, first!~ */ GOTO 12
END

IF ~~ THEN BEGIN 11 // from: 12.0 10.1 10.0
  SAY #59836 /* ~Most kind of you, dear <RACE>.  Now I'm free to go about my merry way... until the next time I end up in Limbo.  (sigh)  Nothing's quite so bad as a wild surge.~ */
  IF ~~ THEN DO ~CreateVisualEffectObject("SPFLESHS",Myself)
ApplySpell(Myself,WIZARD_INVISIBILITY)
Wait(1)
DisplayStringHead(Myself,5385)
Wait(1)
DestroySelf()~ EXIT
END

IF ~~ THEN BEGIN 12 // from: 10.3 10.2
  SAY #59837 /* ~I did say I was a wild mage, right?  If I end up having to cast a spell here, I won't be held responsible for it. So hand over the blade, or do I start casting?~ */
  IF ~~ THEN REPLY #59838 /* ~Fine, fine.  Take it and begone!~ */ DO ~TakePartyItem("misc8u")~ GOTO 11
  IF ~~ THEN REPLY #59839 /* ~Do your worst.~ */ GOTO 13
END

IF ~~ THEN BEGIN 13 // from: 12.1
  SAY #59840 /* ~Yeeesh... I wouldn't say that.  My worst can be pretty bad...~ */
  IF ~~ THEN DO ~StartCutSceneMode()
CreateCreatureOffscreen("gith02",0)
CreateCreatureOffscreen("gith02",0)
CreateCreatureOffscreen("gith03",0)
CreateCreatureOffscreen("gith04",0)
CreateCreatureOffscreen("gith04",0)
CreateCreatureOffscreen("gith05",0)
CreateCreatureOffscreen("gith06",0)
Enemy()
EndCutSceneMode()
~ EXIT
END
